@@ -148,6 +148,26 @@ eiointc: interrupt-controller@1fe11600 {
interrupts = <3>;
};
+ pwm@1ff5c000 {
+ compatible = "loongson,ls2k0500-pwm", "loongson,ls7a-pwm";
+ reg = <0x0 0x1ff5c000 0x0 0x10>;
+ interrupt-parent = <&eiointc>;
+ interrupts = <20>;
+ 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 = <&eiointc>;
+ interrupts = <21>;
+ clocks = <&clk LOONGSON2_APB_CLK>;
+ #pwm-cells = <3>;
+ status = "disabled";
+ };
+
gmac0: ethernet@1f020000 {
compatible = "snps,dwmac-3.70a";
reg = <0x0 0x1f020000 0x0 0x10000>;
The module is supported, enable it. Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> --- arch/loongarch/boot/dts/loongson-2k0500.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)