Skip to content

Commit b2a5df7

Browse files
XBursttsbogend
authored andcommitted
MIPS: Ingenic: Add PWM nodes for X1830.
Add PWM node for X1830 SoC from Ingenic. Signed-off-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent f998c20 commit b2a5df7

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

arch/mips/boot/dts/ingenic/x1830.dtsi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,20 @@
120120
clocks = <&tcu TCU_CLK_WDT>;
121121
clock-names = "wdt";
122122
};
123+
124+
pwm: pwm@40 {
125+
compatible = "ingenic,x1830-pwm", "ingenic,jz4740-pwm";
126+
reg = <0x40 0x80>;
127+
128+
#pwm-cells = <3>;
129+
130+
clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>,
131+
<&tcu TCU_CLK_TIMER2>, <&tcu TCU_CLK_TIMER3>,
132+
<&tcu TCU_CLK_TIMER4>, <&tcu TCU_CLK_TIMER5>,
133+
<&tcu TCU_CLK_TIMER6>, <&tcu TCU_CLK_TIMER7>;
134+
clock-names = "timer0", "timer1", "timer2", "timer3",
135+
"timer4", "timer5", "timer6", "timer7";
136+
};
123137
};
124138

125139
rtc: rtc@10003000 {

0 commit comments

Comments
 (0)