Skip to content

Commit f549d89

Browse files
SuperDavidWurkhuangtao
authored andcommitted
arm64: dts: rockchip: add pwm support for rk3328
Change-Id: I20d150fb258f9eb7f09623189551b982b641e7ad Signed-off-by: david.wu <[email protected]>
1 parent 891c3e1 commit f549d89

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3328.dtsi

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,51 @@
388388
status = "disabled";
389389
};
390390

391+
pwm0: pwm@ff1b0000 {
392+
compatible = "rockchip,rk3328-pwm";
393+
reg = <0x0 0xff1b0000 0x0 0x10>;
394+
#pwm-cells = <3>;
395+
pinctrl-names = "default";
396+
pinctrl-0 = <&pwm0_pin>;
397+
clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
398+
clock-names = "pwm", "pclk";
399+
status = "disabled";
400+
};
401+
402+
pwm1: pwm@ff1b0010 {
403+
compatible = "rockchip,rk3328-pwm";
404+
reg = <0x0 0xff1b0010 0x0 0x10>;
405+
#pwm-cells = <3>;
406+
pinctrl-names = "default";
407+
pinctrl-0 = <&pwm1_pin>;
408+
clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
409+
clock-names = "pwm", "pclk";
410+
status = "disabled";
411+
};
412+
413+
pwm2: pwm@ff1b0020 {
414+
compatible = "rockchip,rk3328-pwm";
415+
reg = <0x0 0xff1b0020 0x0 0x10>;
416+
#pwm-cells = <3>;
417+
pinctrl-names = "default";
418+
pinctrl-0 = <&pwm2_pin>;
419+
clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
420+
clock-names = "pwm", "pclk";
421+
status = "disabled";
422+
};
423+
424+
pwm3: pwm@ff1b0030 {
425+
compatible = "rockchip,rk3328-pwm";
426+
reg = <0x0 0xff1b0030 0x0 0x10>;
427+
interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
428+
#pwm-cells = <3>;
429+
pinctrl-names = "default";
430+
pinctrl-0 = <&pwmir_pin>;
431+
clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>;
432+
clock-names = "pwm", "pclk";
433+
status = "disabled";
434+
};
435+
391436
amba {
392437
compatible = "simple-bus";
393438
#address-cells = <2>;

0 commit comments

Comments
 (0)