|
|
@ -6,6 +6,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
/dts-v1/; |
|
|
|
/dts-v1/; |
|
|
|
#include <st/f0/stm32f072Xb.dtsi> |
|
|
|
#include <st/f0/stm32f072Xb.dtsi> |
|
|
|
|
|
|
|
#include <st/f0/stm32f072c(8-b)tx-pinctrl.dtsi> |
|
|
|
#include <dt-bindings/led/led.h> |
|
|
|
#include <dt-bindings/led/led.h> |
|
|
|
|
|
|
|
|
|
|
|
/ { |
|
|
|
/ { |
|
|
@ -82,8 +83,28 @@ |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&clk_hsi { |
|
|
|
|
|
|
|
status = "okay"; |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&pll { |
|
|
|
|
|
|
|
status = "okay"; |
|
|
|
|
|
|
|
prediv = <1>; |
|
|
|
|
|
|
|
mul = <6>; |
|
|
|
|
|
|
|
clocks = <&clk_hsi>; |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&rcc { |
|
|
|
|
|
|
|
clocks = <&pll>; |
|
|
|
|
|
|
|
clock-frequency = <DT_FREQ_M(48)>; |
|
|
|
|
|
|
|
ahb-prescaler = <1>; |
|
|
|
|
|
|
|
apb1-prescaler = <1>; |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
&usb { |
|
|
|
&usb { |
|
|
|
status = "okay"; |
|
|
|
status = "okay"; |
|
|
|
|
|
|
|
pinctrl-0 = <&usb_dm_pa11 &usb_dp_pa12>; |
|
|
|
|
|
|
|
pinctrl-names = "default"; |
|
|
|
cdc_acm_uart: cdc_acm_uart { |
|
|
|
cdc_acm_uart: cdc_acm_uart { |
|
|
|
compatible = "zephyr,cdc-acm-uart"; |
|
|
|
compatible = "zephyr,cdc-acm-uart"; |
|
|
|
label = "CDC_ACM_0"; |
|
|
|
label = "CDC_ACM_0"; |
|
|
@ -97,7 +118,7 @@ |
|
|
|
&flash0 { |
|
|
|
&flash0 { |
|
|
|
/* |
|
|
|
/* |
|
|
|
* For more information, see: |
|
|
|
* For more information, see: |
|
|
|
* http: //docs.zephyrproject.org/latest/guides/dts/index.html#flash-partitions |
|
|
|
* http://docs.zephyrproject.org/latest/guides/dts/index.html#flash-partitions |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
partitions { |
|
|
|
partitions { |
|
|
|
compatible = "fixed-partitions"; |
|
|
|
compatible = "fixed-partitions"; |
|
|
@ -105,7 +126,7 @@ |
|
|
|
#size-cells = <1>; |
|
|
|
#size-cells = <1>; |
|
|
|
|
|
|
|
|
|
|
|
/* Set 6Kb of storage at the end of the 128Kb of flash */ |
|
|
|
/* Set 6Kb of storage at the end of the 128Kb of flash */ |
|
|
|
storage_partition: partition@3e800 { |
|
|
|
storage_partition: partition@1e800 { |
|
|
|
label = "storage"; |
|
|
|
label = "storage"; |
|
|
|
reg = <0x0001e800 0x00001800>; |
|
|
|
reg = <0x0001e800 0x00001800>; |
|
|
|
}; |
|
|
|
}; |
|
|
|