Basic board setup
This commit is contained in:
76
boards/other/pico_stm32/pico_stm32.dts
Normal file
76
boards/other/pico_stm32/pico_stm32.dts
Normal file
@@ -0,0 +1,76 @@
|
||||
/dts-v1/;
|
||||
|
||||
#include <st/f1/stm32f103X8.dtsi>
|
||||
#include <st/f1/stm32f103c(8-b)tx-pinctrl.dtsi>
|
||||
|
||||
/ {
|
||||
model = "Pico STM32 board";
|
||||
compatible = "other,pico-stm32";
|
||||
|
||||
chosen {
|
||||
zephyr,console = &usart1;
|
||||
zephyr,shell-uart = &usart1;
|
||||
zephyr,sram = &sram0;
|
||||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
green_led: led_2 {
|
||||
gpios = <&gpioa 8 GPIO_ACTIVE_HIGH>;
|
||||
label = "PA8";
|
||||
};
|
||||
};
|
||||
|
||||
aliases {
|
||||
led0 = &green_led;
|
||||
die-temp0 = &die_temp;
|
||||
};
|
||||
};
|
||||
|
||||
&clk_lsi {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&clk_hse {
|
||||
clock-frequency = <DT_FREQ_M(16)>; /* 16 MHz quartz */
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pll {
|
||||
mul = <9>;
|
||||
clocks = <&clk_hse>;
|
||||
xtpre;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rcc {
|
||||
clocks = <&pll>;
|
||||
clock-frequency = <DT_FREQ_M(72)>;
|
||||
ahb-prescaler = <1>;
|
||||
apb1-prescaler = <2>;
|
||||
apb2-prescaler = <1>;
|
||||
adc-prescaler = <2>;
|
||||
};
|
||||
|
||||
&usart1 {
|
||||
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
|
||||
pinctrl-names = "default";
|
||||
current-speed = <115200>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&die_temp {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
/* zephyr_udc0: &usb { */
|
||||
/* pinctrl-0 = <&usb_dm_pa11 &usb_dp_pa12>; */
|
||||
/* pinctrl-names = "default"; */
|
||||
/* status = "okay"; */
|
||||
|
||||
/* cdc_acm_uart0: cdc_acm_uart0 { */
|
||||
/* compatible = "zephyr,cdc-acm-uart"; */
|
||||
/* }; */
|
||||
/* }; */
|
||||
Reference in New Issue
Block a user