]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - arch/mips/boot/dts/ingenic/jz4740.dtsi
MIPS: ingenic: DTS: Add nodes for the watchdog/PWM/OST
[mirror_ubuntu-jammy-kernel.git] / arch / mips / boot / dts / ingenic / jz4740.dtsi
index a3301bab9231ae4a2f65859c5713f1b746b7239d..1520585c235c7e224339828da63f60bef11acefd 100644 (file)
 
                #clock-cells = <1>;
 
-               clocks = <&cgu JZ4740_CLK_RTC
-                         &cgu JZ4740_CLK_EXT
-                         &cgu JZ4740_CLK_PCLK
-                         &cgu JZ4740_CLK_TCU>;
+               clocks = <&cgu JZ4740_CLK_RTC>,
+                        <&cgu JZ4740_CLK_EXT>,
+                        <&cgu JZ4740_CLK_PCLK>,
+                        <&cgu JZ4740_CLK_TCU>;
                clock-names = "rtc", "ext", "pclk", "tcu";
 
                interrupt-controller;
                        clocks = <&tcu TCU_CLK_WDT>;
                        clock-names = "wdt";
                };
+
+               pwm: pwm@40 {
+                       compatible = "ingenic,jz4740-pwm";
+                       reg = <0x40 0x80>;
+
+                       #pwm-cells = <3>;
+
+                       clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>,
+                                <&tcu TCU_CLK_TIMER2>, <&tcu TCU_CLK_TIMER3>,
+                                <&tcu TCU_CLK_TIMER4>, <&tcu TCU_CLK_TIMER5>,
+                                <&tcu TCU_CLK_TIMER6>, <&tcu TCU_CLK_TIMER7>;
+                       clock-names = "timer0", "timer1", "timer2", "timer3",
+                                     "timer4", "timer5", "timer6", "timer7";
+               };
        };
 
        rtc_dev: rtc@10003000 {
                reg = <0x13010000 0x54>;
                #address-cells = <2>;
                #size-cells = <1>;
-               ranges = <1 0 0x18000000 0x4000000
-                         2 0 0x14000000 0x4000000
-                         3 0 0x0c000000 0x4000000
-                         4 0 0x08000000 0x4000000>;
+               ranges = <1 0 0x18000000 0x4000000>,
+                        <2 0 0x14000000 0x4000000>,
+                        <3 0 0x0c000000 0x4000000>,
+                        <4 0 0x08000000 0x4000000>;
 
                clocks = <&cgu JZ4740_CLK_MCLK>;
        };
 
        dmac: dma-controller@13020000 {
                compatible = "ingenic,jz4740-dma";
-               reg = <0x13020000 0xbc
-                      0x13020300 0x14>;
+               reg = <0x13020000 0xbc>, <0x13020300 0x14>;
                #dma-cells = <2>;
 
                interrupt-parent = <&intc>;