Skip to content

Commit

Permalink
dts: arm: stm32: Enable PWM support for STM32F2 in dtsi
Browse files Browse the repository at this point in the history
Enabling PWM on timer1 for STM32F2 platform in dtsi.

Adding other timers nodes for PWM capability.

Signed-off-by: Sidhdharth Yadav <sidhdharth.yadav@hcl.com>
  • Loading branch information
sarthsmart authored and MaureenHelm committed Apr 16, 2021
1 parent c6cc927 commit c92775a
Showing 1 changed file with 144 additions and 0 deletions.
144 changes: 144 additions & 0 deletions dts/arm/st/f2/stm32f2.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,150 @@
#io-channel-cells = <1>;
};

timers1: timers@40010000 {
compatible = "st,stm32-timers";
reg = <0x40010000 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00000001>;
interrupts = <24 0>, <25 0>, <26 0>, <27 0>;
interrupt-names = "brk", "up", "trgcom", "cc";
status = "disabled";
label = "TIMERS_1";

pwm {
compatible = "st,stm32-pwm";
status = "disabled";
st,prescaler = <0>;
label = "PWM_1";
#pwm-cells = <3>;
};
};

timers2: timers@40000000 {
compatible = "st,stm32-timers";
reg = <0x40000000 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000001>;
interrupts = <28 0>;
interrupt-names = "global";
status = "disabled";
label = "TIMERS_2";

pwm {
compatible = "st,stm32-pwm";
status = "disabled";
st,prescaler = <0>;
label = "PWM_2";
#pwm-cells = <3>;
};
};

timers3: timers@40000400 {
compatible = "st,stm32-timers";
reg = <0x40000400 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000002>;
interrupts = <29 0>;
interrupt-names = "global";
status = "disabled";
label = "TIMERS_3";

pwm {
compatible = "st,stm32-pwm";
status = "disabled";
st,prescaler = <0>;
label = "PWM_3";
#pwm-cells = <3>;
};
};

timers4: timers@40000800 {
compatible = "st,stm32-timers";
reg = <0x40000800 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000004>;
interrupts = <30 0>;
interrupt-names = "global";
status = "disabled";
label = "TIMERS_4";

pwm {
compatible = "st,stm32-pwm";
status = "disabled";
st,prescaler = <0>;
label = "PWM_4";
#pwm-cells = <3>;
};
};

timers5: timers@40000c00 {
compatible = "st,stm32-timers";
reg = <0x40000c00 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000008>;
interrupts = <50 0>;
interrupt-names = "global";
status = "disabled";
label = "TIMERS_5";

pwm {
compatible = "st,stm32-pwm";
status = "disabled";
st,prescaler = <0>;
label = "PWM_5";
#pwm-cells = <3>;
};
};

timers8: timers@40010400 {
compatible = "st,stm32-timers";
reg = <0x40010400 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00000002>;
interrupts = <43 0>, <44 0>, <45 0>, <46 0>;
interrupt-names = "brk", "up", "trgcom", "cc";
status = "disabled";
label = "TIMERS_8";

pwm {
compatible = "st,stm32-pwm";
status = "disabled";
st,prescaler = <0>;
label = "PWM_8";
#pwm-cells = <3>;
};
};

timers9: timers@40014000 {
compatible = "st,stm32-timers";
reg = <0x40014000 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00010000>;
interrupts = <24 0>;
interrupt-names = "global";
status = "disabled";
label = "TIMERS_9";

pwm {
compatible = "st,stm32-pwm";
status = "disabled";
st,prescaler = <0>;
label = "PWM_9";
#pwm-cells = <3>;
};
};

timers12: timers@40001800 {
compatible = "st,stm32-timers";
reg = <0x40001800 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000040>;
interrupts = <43 0>;
interrupt-names = "global";
status = "disabled";
label = "TIMERS_12";

pwm {
compatible = "st,stm32-pwm";
status = "disabled";
st,prescaler = <0>;
label = "PWM_12";
#pwm-cells = <3>;
};
};

backup_sram: memory@40024000 {
compatible = "st,stm32-backup-sram";
reg = <0x40024000 DT_SIZE_K(4)>;
Expand Down

0 comments on commit c92775a

Please sign in to comment.