Skip to content

Commit

Permalink
dts: arm: st: wba: add pwm support
Browse files Browse the repository at this point in the history
Add PWM support for STM32WBA

Signed-off-by: Guillaume Gautier <[email protected]>
  • Loading branch information
gautierg-st authored and carlescufi committed Jul 12, 2023
1 parent 5e25880 commit 1c26ba1
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions dts/arm/st/wba/stm32wba.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <zephyr/dt-bindings/reset/stm32wba_reset.h>
#include <zephyr/dt-bindings/gpio/gpio.h>
#include <zephyr/dt-bindings/i2c/i2c.h>
#include <zephyr/dt-bindings/pwm/pwm.h>

#include <freq.h>

Expand Down Expand Up @@ -248,6 +249,12 @@
interrupt-names = "brk", "up", "trgcom", "cc";
st,prescaler = <0>;
status = "disabled";

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

timers2: timers@40000000 {
Expand All @@ -259,6 +266,12 @@
interrupt-names = "global";
st,prescaler = <0>;
status = "disabled";

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

timers3: timers@40000400 {
Expand All @@ -270,6 +283,12 @@
interrupt-names = "global";
st,prescaler = <0>;
status = "disabled";

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

timers16: timers@40014400 {
Expand All @@ -280,6 +299,12 @@
interrupts = <51 0>;
interrupt-names = "global";
status = "disabled";

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

timers17: timers@40014800 {
Expand All @@ -290,6 +315,12 @@
interrupts = <52 0>;
interrupt-names = "global";
status = "disabled";

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

};
Expand Down

0 comments on commit 1c26ba1

Please sign in to comment.