From 0e8d97f186df24c259f2e89ca9b7c6a5330ea18e Mon Sep 17 00:00:00 2001 From: Florian Vaussard Date: Wed, 28 Feb 2018 22:15:00 +0100 Subject: [PATCH] dts: stm32f0: Add PWM nodes Add available PWM nodes to the existing STM32F0 device trees. Signed-off-by: Florian Vaussard --- dts/arm/st/stm32f0.dtsi | 120 ++++++++++++++++++++++++++++++++++++++ dts/arm/st/stm32f072.dtsi | 15 +++++ dts/arm/st/stm32f091.dtsi | 15 +++++ 3 files changed, 150 insertions(+) diff --git a/dts/arm/st/stm32f0.dtsi b/dts/arm/st/stm32f0.dtsi index a254244a858..ba2df682dee 100644 --- a/dts/arm/st/stm32f0.dtsi +++ b/dts/arm/st/stm32f0.dtsi @@ -159,6 +159,126 @@ status = "disabled"; label = "SPI_1"; }; + + 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"; + }; + }; + + 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"; + }; + }; + + 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"; + }; + }; + + 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"; + }; + }; }; }; diff --git a/dts/arm/st/stm32f072.dtsi b/dts/arm/st/stm32f072.dtsi index 95333de524f..fedf0e5c801 100644 --- a/dts/arm/st/stm32f072.dtsi +++ b/dts/arm/st/stm32f072.dtsi @@ -20,6 +20,21 @@ }; }; + 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"; + }; + }; + spi2: spi@40003800 { compatible = "st,stm32-spi-fifo"; #address-cells = <1>; diff --git a/dts/arm/st/stm32f091.dtsi b/dts/arm/st/stm32f091.dtsi index b34a577896e..17b3695d95d 100644 --- a/dts/arm/st/stm32f091.dtsi +++ b/dts/arm/st/stm32f091.dtsi @@ -8,6 +8,21 @@ / { soc { + 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"; + }; + }; + spi2: spi@40003800 { compatible = "st,stm32-spi-fifo"; #address-cells = <1>;