Skip to content

Commit 1cf8060

Browse files
AaronDotchenhuacai
authored andcommitted
LoongArch: dts: Add PWM support to Loongson-2K2000
The module is supported, enable it. Reviewed-by: Yanteng Si <si.yanteng@linux.dev> Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent abd000d commit 1cf8060

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

arch/loongarch/boot/dts/loongson-2k2000.dtsi

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,66 @@
165165
interrupt-parent = <&eiointc>;
166166
};
167167

168+
pwm@100a0000 {
169+
compatible = "loongson,ls2k2000-pwm", "loongson,ls7a-pwm";
170+
reg = <0x0 0x100a0000 0x0 0x10>;
171+
interrupt-parent = <&pic>;
172+
interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
173+
clocks = <&clk LOONGSON2_MISC_CLK>;
174+
#pwm-cells = <3>;
175+
status = "disabled";
176+
};
177+
178+
pwm@100a0100 {
179+
compatible = "loongson,ls2k2000-pwm", "loongson,ls7a-pwm";
180+
reg = <0x0 0x100a0100 0x0 0x10>;
181+
interrupt-parent = <&pic>;
182+
interrupts = <25 IRQ_TYPE_LEVEL_HIGH>;
183+
clocks = <&clk LOONGSON2_MISC_CLK>;
184+
#pwm-cells = <3>;
185+
status = "disabled";
186+
};
187+
188+
pwm@100a0200 {
189+
compatible = "loongson,ls2k2000-pwm", "loongson,ls7a-pwm";
190+
reg = <0x0 0x100a0200 0x0 0x10>;
191+
interrupt-parent = <&pic>;
192+
interrupts = <26 IRQ_TYPE_LEVEL_HIGH>;
193+
clocks = <&clk LOONGSON2_MISC_CLK>;
194+
#pwm-cells = <3>;
195+
status = "disabled";
196+
};
197+
198+
pwm@100a0300 {
199+
compatible = "loongson,ls2k2000-pwm", "loongson,ls7a-pwm";
200+
reg = <0x0 0x100a0300 0x0 0x10>;
201+
interrupt-parent = <&pic>;
202+
interrupts = <27 IRQ_TYPE_LEVEL_HIGH>;
203+
clocks = <&clk LOONGSON2_MISC_CLK>;
204+
#pwm-cells = <3>;
205+
status = "disabled";
206+
};
207+
208+
pwm@100a0400 {
209+
compatible = "loongson,ls2k2000-pwm", "loongson,ls7a-pwm";
210+
reg = <0x0 0x100a0400 0x0 0x10>;
211+
interrupt-parent = <&pic>;
212+
interrupts = <38 IRQ_TYPE_LEVEL_HIGH>;
213+
clocks = <&clk LOONGSON2_MISC_CLK>;
214+
#pwm-cells = <3>;
215+
status = "disabled";
216+
};
217+
218+
pwm@100a0500 {
219+
compatible = "loongson,ls2k2000-pwm", "loongson,ls7a-pwm";
220+
reg = <0x0 0x100a0500 0x0 0x10>;
221+
interrupt-parent = <&pic>;
222+
interrupts = <39 IRQ_TYPE_LEVEL_HIGH>;
223+
clocks = <&clk LOONGSON2_MISC_CLK>;
224+
#pwm-cells = <3>;
225+
status = "disabled";
226+
};
227+
168228
rtc0: rtc@100d0100 {
169229
compatible = "loongson,ls2k2000-rtc", "loongson,ls7a-rtc";
170230
reg = <0x0 0x100d0100 0x0 0x100>;

0 commit comments

Comments
 (0)