Skip to content

Commit ff90897

Browse files
looongbininochisa
authored andcommitted
riscv: dts: sophgo: add pwm controller for SG2044
Add pwm device node for SG2044. Signed-off-by: Longbin Li <looong.bin@gmail.com> Reviewed-by: Chen Wang <unicorn_wang@outlook.com> Link: https://lore.kernel.org/r/20250608232836.784737-12-inochiama@gmail.com Signed-off-by: Inochi Amaoto <inochiama@gmail.com> Signed-off-by: Chen Wang <unicorn_wang@outlook.com> Signed-off-by: Chen Wang <wangchen20@iscas.ac.cn>
1 parent 162b265 commit ff90897

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

arch/riscv/boot/dts/sophgo/sg2044-sophgo-srd3-10.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@
6363
};
6464
};
6565

66+
&pwm {
67+
status = "okay";
68+
};
69+
6670
&sd {
6771
bus-width = <4>;
6872
no-sdio;

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,16 @@
347347
};
348348
};
349349

350+
pwm: pwm@704000c000 {
351+
compatible = "sophgo,sg2044-pwm";
352+
reg = <0x70 0x4000c000 0x0 0x1000>;
353+
#pwm-cells = <3>;
354+
clocks = <&clk CLK_GATE_APB_PWM>;
355+
clock-names = "apb";
356+
resets = <&rst RST_PWM>;
357+
status = "disabled";
358+
};
359+
350360
syscon: syscon@7050000000 {
351361
compatible = "sophgo,sg2044-top-syscon", "syscon";
352362
reg = <0x70 0x50000000 0x0 0x1000>;

0 commit comments

Comments
 (0)