Skip to content

Commit 255f83b

Browse files
unicornxinochisa
authored andcommitted
riscv: sophgo: dts: add pwm controller for SG2042 SoC
SG2042 has one PWM controller, which has 4 pwm output channels. Signed-off-by: Chen Wang <unicorn_wang@outlook.com> Link: https://lore.kernel.org/r/f376e16c0ee0cdac51bb91421d78defc0601627a.1738737617.git.unicorn_wang@outlook.com Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
1 parent 2014c95 commit 255f83b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

arch/riscv/boot/dts/sophgo/sg2042.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,15 @@
165165
};
166166
};
167167

168+
pwm: pwm@703000c000 {
169+
compatible = "sophgo,sg2042-pwm";
170+
reg = <0x70 0x3000c000 0x0 0x20>;
171+
#pwm-cells = <3>;
172+
clocks = <&clkgen GATE_CLK_APB_PWM>;
173+
clock-names = "apb";
174+
resets = <&rstgen RST_PWM>;
175+
};
176+
168177
pllclk: clock-controller@70300100c0 {
169178
compatible = "sophgo,sg2042-pll";
170179
reg = <0x70 0x300100c0 0x0 0x40>;

0 commit comments

Comments
 (0)