LoongArch: dts: Add PWM support to Loongson-2K0500
authorBinbin Zhou <zhoubinbin@loongson.cn>
Thu, 5 Jun 2025 12:34:34 +0000 (20:34 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Fri, 6 Jun 2025 10:51:16 +0000 (18:51 +0800)
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>
arch/loongarch/boot/dts/loongson-2k0500.dtsi

index 3b38ff8853a7d935d5d8cd42118fa08fda6529b0..760c60eebb896c103abf98d2641e429757140efb 100644 (file)
                        interrupts = <3>;
                };
 
+               pwm@1ff5c000 {
+                       compatible = "loongson,ls2k0500-pwm", "loongson,ls7a-pwm";
+                       reg = <0x0 0x1ff5c000 0x0 0x10>;
+                       interrupt-parent = <&liointc0>;
+                       interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk LOONGSON2_APB_CLK>;
+                       #pwm-cells = <3>;
+                       status = "disabled";
+               };
+
+               pwm@1ff5c010 {
+                       compatible = "loongson,ls2k0500-pwm", "loongson,ls7a-pwm";
+                       reg = <0x0 0x1ff5c010 0x0 0x10>;
+                       interrupt-parent = <&liointc0>;
+                       interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk LOONGSON2_APB_CLK>;
+                       #pwm-cells = <3>;
+                       status = "disabled";
+               };
+
+               pwm@1ff5c020 {
+                       compatible = "loongson,ls2k0500-pwm", "loongson,ls7a-pwm";
+                       reg = <0x0 0x1ff5c020 0x0 0x10>;
+                       interrupt-parent = <&liointc0>;
+                       interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk LOONGSON2_APB_CLK>;
+                       #pwm-cells = <3>;
+                       status = "disabled";
+               };
+
+               pwm@1ff5c030 {
+                       compatible = "loongson,ls2k0500-pwm", "loongson,ls7a-pwm";
+                       reg = <0x0 0x1ff5c030 0x0 0x10>;
+                       interrupt-parent = <&liointc0>;
+                       interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk LOONGSON2_APB_CLK>;
+                       #pwm-cells = <3>;
+                       status = "disabled";
+               };
+
+               pwm@1ff5c040 {
+                       compatible = "loongson,ls2k0500-pwm", "loongson,ls7a-pwm";
+                       reg = <0x0 0x1ff5c040 0x0 0x10>;
+                       interrupt-parent = <&liointc0>;
+                       interrupts = <25 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk LOONGSON2_APB_CLK>;
+                       #pwm-cells = <3>;
+                       status = "disabled";
+               };
+
+               pwm@1ff5c050 {
+                       compatible = "loongson,ls2k0500-pwm", "loongson,ls7a-pwm";
+                       reg = <0x0 0x1ff5c050 0x0 0x10>;
+                       interrupt-parent = <&liointc0>;
+                       interrupts = <25 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk LOONGSON2_APB_CLK>;
+                       #pwm-cells = <3>;
+                       status = "disabled";
+               };
+
+               pwm@1ff5c060 {
+                       compatible = "loongson,ls2k0500-pwm", "loongson,ls7a-pwm";
+                       reg = <0x0 0x1ff5c060 0x0 0x10>;
+                       interrupt-parent = <&liointc0>;
+                       interrupts = <25 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk LOONGSON2_APB_CLK>;
+                       #pwm-cells = <3>;
+                       status = "disabled";
+               };
+
+               pwm@1ff5c070 {
+                       compatible = "loongson,ls2k0500-pwm", "loongson,ls7a-pwm";
+                       reg = <0x0 0x1ff5c070 0x0 0x10>;
+                       interrupt-parent = <&liointc0>;
+                       interrupts = <25 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk LOONGSON2_APB_CLK>;
+                       #pwm-cells = <3>;
+                       status = "disabled";
+               };
+
+               pwm@1ff5c080 {
+                       compatible = "loongson,ls2k0500-pwm", "loongson,ls7a-pwm";
+                       reg = <0x0 0x1ff5c080 0x0 0x10>;
+                       interrupt-parent = <&liointc0>;
+                       interrupts = <26 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk LOONGSON2_APB_CLK>;
+                       #pwm-cells = <3>;
+                       status = "disabled";
+               };
+
+               pwm@1ff5c090 {
+                       compatible = "loongson,ls2k0500-pwm", "loongson,ls7a-pwm";
+                       reg = <0x0 0x1ff5c090 0x0 0x10>;
+                       interrupt-parent = <&liointc0>;
+                       interrupts = <26 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk LOONGSON2_APB_CLK>;
+                       #pwm-cells = <3>;
+                       status = "disabled";
+               };
+
+               pwm@1ff5c0a0 {
+                       compatible = "loongson,ls2k0500-pwm", "loongson,ls7a-pwm";
+                       reg = <0x0 0x1ff5c0a0 0x0 0x10>;
+                       interrupt-parent = <&liointc0>;
+                       interrupts = <26 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk LOONGSON2_APB_CLK>;
+                       #pwm-cells = <3>;
+                       status = "disabled";
+               };
+
+               pwm@1ff5c0b0 {
+                       compatible = "loongson,ls2k0500-pwm", "loongson,ls7a-pwm";
+                       reg = <0x0 0x1ff5c0b0 0x0 0x10>;
+                       interrupt-parent = <&liointc0>;
+                       interrupts = <26 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk LOONGSON2_APB_CLK>;
+                       #pwm-cells = <3>;
+                       status = "disabled";
+               };
+
+               pwm@1ff5c0c0 {
+                       compatible = "loongson,ls2k0500-pwm", "loongson,ls7a-pwm";
+                       reg = <0x0 0x1ff5c0c0 0x0 0x10>;
+                       interrupt-parent = <&liointc0>;
+                       interrupts = <27 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk LOONGSON2_APB_CLK>;
+                       #pwm-cells = <3>;
+                       status = "disabled";
+               };
+
+               pwm@1ff5c0d0 {
+                       compatible = "loongson,ls2k0500-pwm", "loongson,ls7a-pwm";
+                       reg = <0x0 0x1ff5c0d0 0x0 0x10>;
+                       interrupt-parent = <&liointc0>;
+                       interrupts = <27 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk LOONGSON2_APB_CLK>;
+                       #pwm-cells = <3>;
+                       status = "disabled";
+               };
+
+               pwm@1ff5c0e0 {
+                       compatible = "loongson,ls2k0500-pwm", "loongson,ls7a-pwm";
+                       reg = <0x0 0x1ff5c0e0 0x0 0x10>;
+                       interrupt-parent = <&liointc0>;
+                       interrupts = <27 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk LOONGSON2_APB_CLK>;
+                       #pwm-cells = <3>;
+                       status = "disabled";
+               };
+
+               pwm@1ff5c0f0 {
+                       compatible = "loongson,ls2k0500-pwm", "loongson,ls7a-pwm";
+                       reg = <0x0 0x1ff5c0f0 0x0 0x10>;
+                       interrupt-parent = <&liointc0>;
+                       interrupts = <27 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk LOONGSON2_APB_CLK>;
+                       #pwm-cells = <3>;
+                       status = "disabled";
+               };
+
                gmac0: ethernet@1f020000 {
                        compatible = "snps,dwmac-3.70a";
                        reg = <0x0 0x1f020000 0x0 0x10000>;