Skip to content

Commit 1b203bd

Browse files
henrikbrixandersenkartben
authored andcommitted
dts: riscv: neorv32: add PWM controller devicetree node
Add devicetree node for the NEORV32 PWM controller. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent d878027 commit 1b203bd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

dts/riscv/neorv32.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <skeleton.dtsi>
1010
#include <zephyr/dt-bindings/gpio/gpio.h>
11+
#include <zephyr/dt-bindings/pwm/pwm.h>
1112

1213
/ {
1314
chosen {
@@ -79,6 +80,14 @@
7980
reg = <0xffe00000 0x10000>;
8081
};
8182

83+
pwm: pwm@fff00000 {
84+
compatible = "neorv32,pwm";
85+
status = "disabled";
86+
reg = <0xfff00000 0x10000>;
87+
syscon = <&sysinfo>;
88+
#pwm-cells = <3>;
89+
};
90+
8291
clint: clint@fff40000 {
8392
compatible = "neorv32,clint", "sifive,clint0";
8493
status = "disabled";

0 commit comments

Comments
 (0)