dts: stm32f3: Add PWM nodes
Add available PWM nodes to the existing STM32F3 device trees. Signed-off-by: Florian Vaussard <florian.vaussard@gmail.com>
This commit is contained in:
parent
da0caab3fd
commit
bfa1941e1d
4 changed files with 289 additions and 0 deletions
|
@ -167,6 +167,111 @@
|
|||
status = "disabled";
|
||||
label= "USB";
|
||||
};
|
||||
|
||||
timers2: timers@40000000 {
|
||||
compatible = "st,stm32-timers";
|
||||
reg = <0x40000000 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000001>;
|
||||
status = "disabled";
|
||||
label = "TIMERS_2";
|
||||
|
||||
pwm {
|
||||
compatible = "st,stm32-pwm";
|
||||
status = "disabled";
|
||||
st,prescaler = <0>;
|
||||
label = "PWM_2";
|
||||
};
|
||||
};
|
||||
|
||||
timers3: timers@40000400 {
|
||||
compatible = "st,stm32-timers";
|
||||
reg = <0x40000400 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000002>;
|
||||
status = "disabled";
|
||||
label = "TIMERS_3";
|
||||
|
||||
pwm {
|
||||
compatible = "st,stm32-pwm";
|
||||
status = "disabled";
|
||||
st,prescaler = <10000>;
|
||||
label = "PWM_3";
|
||||
};
|
||||
};
|
||||
|
||||
timers6: timers@40001000 {
|
||||
compatible = "st,stm32-timers";
|
||||
reg = <0x40001000 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000010>;
|
||||
status = "disabled";
|
||||
label = "TIMERS_6";
|
||||
|
||||
pwm {
|
||||
compatible = "st,stm32-pwm";
|
||||
status = "disabled";
|
||||
st,prescaler = <10000>;
|
||||
label = "PWM_6";
|
||||
};
|
||||
};
|
||||
|
||||
timers7: timers@40001400 {
|
||||
compatible = "st,stm32-timers";
|
||||
reg = <0x40001400 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000020>;
|
||||
status = "disabled";
|
||||
label = "TIMERS_7";
|
||||
|
||||
pwm {
|
||||
compatible = "st,stm32-pwm";
|
||||
status = "disabled";
|
||||
st,prescaler = <10000>;
|
||||
label = "PWM_7";
|
||||
};
|
||||
};
|
||||
|
||||
timers15: timers@40014000 {
|
||||
compatible = "st,stm32-timers";
|
||||
reg = <0x40014000 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00010000>;
|
||||
status = "disabled";
|
||||
label = "TIMERS_15";
|
||||
|
||||
pwm {
|
||||
compatible = "st,stm32-pwm";
|
||||
status = "disabled";
|
||||
st,prescaler = <10000>;
|
||||
label = "PWM_15";
|
||||
};
|
||||
};
|
||||
|
||||
timers16: timers@40014400 {
|
||||
compatible = "st,stm32-timers";
|
||||
reg = <0x40014400 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00020000>;
|
||||
status = "disabled";
|
||||
label = "TIMERS_16";
|
||||
|
||||
pwm {
|
||||
compatible = "st,stm32-pwm";
|
||||
status = "disabled";
|
||||
st,prescaler = <10000>;
|
||||
label = "PWM_16";
|
||||
};
|
||||
};
|
||||
|
||||
timers17: timers@40014800 {
|
||||
compatible = "st,stm32-timers";
|
||||
reg = <0x40014800 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00040000>;
|
||||
status = "disabled";
|
||||
label = "TIMERS_17";
|
||||
|
||||
pwm {
|
||||
compatible = "st,stm32-pwm";
|
||||
status = "disabled";
|
||||
st,prescaler = <10000>;
|
||||
label = "PWM_17";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -46,5 +46,65 @@
|
|||
label = "GPIOE";
|
||||
};
|
||||
};
|
||||
|
||||
timers1: timers@40012c00 {
|
||||
compatible = "st,stm32-timers";
|
||||
reg = <0x40012c00 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00000800>;
|
||||
status = "disabled";
|
||||
label = "TIMERS_1";
|
||||
|
||||
pwm {
|
||||
compatible = "st,stm32-pwm";
|
||||
status = "disabled";
|
||||
st,prescaler = <10000>;
|
||||
label = "PWM_1";
|
||||
};
|
||||
};
|
||||
|
||||
timers4: timers@40000800 {
|
||||
compatible = "st,stm32-timers";
|
||||
reg = <0x40000800 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000004>;
|
||||
status = "disabled";
|
||||
label = "TIMERS_4";
|
||||
|
||||
pwm {
|
||||
compatible = "st,stm32-pwm";
|
||||
status = "disabled";
|
||||
st,prescaler = <10000>;
|
||||
label = "PWM_4";
|
||||
};
|
||||
};
|
||||
|
||||
timers8: timers@40013400 {
|
||||
compatible = "st,stm32-timers";
|
||||
reg = <0x40013400 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00002000>;
|
||||
status = "disabled";
|
||||
label = "TIMERS_8";
|
||||
|
||||
pwm {
|
||||
compatible = "st,stm32-pwm";
|
||||
status = "disabled";
|
||||
st,prescaler = <10000>;
|
||||
label = "PWM_8";
|
||||
};
|
||||
};
|
||||
|
||||
timers20: timers@40015000 {
|
||||
compatible = "st,stm32-timers";
|
||||
reg = <0x40015000 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00100000>;
|
||||
status = "disabled";
|
||||
label = "TIMERS_20";
|
||||
|
||||
pwm {
|
||||
compatible = "st,stm32-pwm";
|
||||
status = "disabled";
|
||||
st,prescaler = <10000>;
|
||||
label = "PWM_20";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -5,3 +5,22 @@
|
|||
*/
|
||||
|
||||
#include <st/stm32f3.dtsi>
|
||||
|
||||
/ {
|
||||
soc {
|
||||
timers1: timers@40012c00 {
|
||||
compatible = "st,stm32-timers";
|
||||
reg = <0x40012c00 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00000800>;
|
||||
status = "disabled";
|
||||
label = "TIMERS_1";
|
||||
|
||||
pwm {
|
||||
compatible = "st,stm32-pwm";
|
||||
status = "disabled";
|
||||
st,prescaler = <10000>;
|
||||
label = "PWM_1";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -39,5 +39,110 @@
|
|||
status = "disabled";
|
||||
label = "SPI_3";
|
||||
};
|
||||
|
||||
timers4: timers@40000800 {
|
||||
compatible = "st,stm32-timers";
|
||||
reg = <0x40000800 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000004>;
|
||||
status = "disabled";
|
||||
label = "TIMERS_4";
|
||||
|
||||
pwm {
|
||||
compatible = "st,stm32-pwm";
|
||||
status = "disabled";
|
||||
st,prescaler = <10000>;
|
||||
label = "PWM_4";
|
||||
};
|
||||
};
|
||||
|
||||
timers5: timers@40000c00 {
|
||||
compatible = "st,stm32-timers";
|
||||
reg = <0x40000c00 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000008>;
|
||||
status = "disabled";
|
||||
label = "TIMERS_5";
|
||||
|
||||
pwm {
|
||||
compatible = "st,stm32-pwm";
|
||||
status = "disabled";
|
||||
st,prescaler = <0>;
|
||||
label = "PWM_5";
|
||||
};
|
||||
};
|
||||
|
||||
timers12: timers@40001800 {
|
||||
compatible = "st,stm32-timers";
|
||||
reg = <0x40001800 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000040>;
|
||||
status = "disabled";
|
||||
label = "TIMERS_12";
|
||||
|
||||
pwm {
|
||||
compatible = "st,stm32-pwm";
|
||||
status = "disabled";
|
||||
st,prescaler = <10000>;
|
||||
label = "PWM_12";
|
||||
};
|
||||
};
|
||||
|
||||
timers13: timers@40001c00 {
|
||||
compatible = "st,stm32-timers";
|
||||
reg = <0x40001c00 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000080>;
|
||||
status = "disabled";
|
||||
label = "TIMERS_13";
|
||||
|
||||
pwm {
|
||||
compatible = "st,stm32-pwm";
|
||||
status = "disabled";
|
||||
st,prescaler = <10000>;
|
||||
label = "PWM_13";
|
||||
};
|
||||
};
|
||||
|
||||
timers14: timers@40002000 {
|
||||
compatible = "st,stm32-timers";
|
||||
reg = <0x40002000 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000100>;
|
||||
status = "disabled";
|
||||
label = "TIMERS_14";
|
||||
|
||||
pwm {
|
||||
compatible = "st,stm32-pwm";
|
||||
status = "disabled";
|
||||
st,prescaler = <10000>;
|
||||
label = "PWM_14";
|
||||
};
|
||||
};
|
||||
|
||||
timers18: timers@40009c00 {
|
||||
compatible = "st,stm32-timers";
|
||||
reg = <0x40009c00 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000200>;
|
||||
status = "disabled";
|
||||
label = "TIMERS_18";
|
||||
|
||||
pwm {
|
||||
compatible = "st,stm32-pwm";
|
||||
status = "disabled";
|
||||
st,prescaler = <10000>;
|
||||
label = "PWM_18";
|
||||
};
|
||||
};
|
||||
|
||||
timers19: timers@40015c00 {
|
||||
compatible = "st,stm32-timers";
|
||||
reg = <0x40015c00 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00080000>;
|
||||
status = "disabled";
|
||||
label = "TIMERS_19";
|
||||
|
||||
pwm {
|
||||
compatible = "st,stm32-pwm";
|
||||
status = "disabled";
|
||||
st,prescaler = <10000>;
|
||||
label = "PWM_19";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue