OSDN Git Service

MIPS: jz4740: Add DTS nodes for the TCU drivers
authorPaul Cercueil <paul@crapouillou.net>
Wed, 24 Jul 2019 17:16:11 +0000 (13:16 -0400)
committerPaul Burton <paul.burton@mips.com>
Thu, 8 Aug 2019 22:30:09 +0000 (15:30 -0700)
Add DTS nodes for the JZ4780, JZ4770 and JZ4740 devicetree files.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Tested-by: Mathieu Malaterre <malat@debian.org>
Tested-by: Artur Rojek <contact@artur-rojek.eu>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-doc@vger.kernel.org
Cc: linux-mips@vger.kernel.org
Cc: linux-clk@vger.kernel.org
Cc: od@zcrc.me
arch/mips/boot/dts/ingenic/jz4740.dtsi
arch/mips/boot/dts/ingenic/jz4770.dtsi
arch/mips/boot/dts/ingenic/jz4780.dtsi

index 2beb78a..1b4d9d8 100644 (file)
                clock-names = "rtc";
        };
 
+       tcu: timer@10002000 {
+               compatible = "ingenic,jz4740-tcu", "simple-mfd";
+               reg = <0x10002000 0x1000>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+               ranges = <0x0 0x10002000 0x1000>;
+
+               #clock-cells = <1>;
+
+               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;
+               #interrupt-cells = <1>;
+
+               interrupt-parent = <&intc>;
+               interrupts = <23 22 21>;
+       };
+
        rtc_dev: rtc@10003000 {
                compatible = "ingenic,jz4740-rtc";
                reg = <0x10003000 0x40>;
index 49ede6c..0bfb9ed 100644 (file)
                #clock-cells = <1>;
        };
 
+       tcu: timer@10002000 {
+               compatible = "ingenic,jz4770-tcu", "simple-mfd";
+               reg = <0x10002000 0x1000>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+               ranges = <0x0 0x10002000 0x1000>;
+
+               #clock-cells = <1>;
+
+               clocks = <&cgu JZ4770_CLK_RTC
+                         &cgu JZ4770_CLK_EXT
+                         &cgu JZ4770_CLK_PCLK>;
+               clock-names = "rtc", "ext", "pclk";
+
+               interrupt-controller;
+               #interrupt-cells = <1>;
+
+               interrupt-parent = <&intc>;
+               interrupts = <27 26 25>;
+       };
+
        pinctrl: pin-controller@10010000 {
                compatible = "ingenic,jz4770-pinctrl";
                reg = <0x10010000 0x600>;
index b03cdec..c54bd7c 100644 (file)
                #clock-cells = <1>;
        };
 
+       tcu: timer@10002000 {
+               compatible = "ingenic,jz4780-tcu",
+                            "ingenic,jz4770-tcu",
+                            "simple-mfd";
+               reg = <0x10002000 0x1000>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+               ranges = <0x0 0x10002000 0x1000>;
+
+               #clock-cells = <1>;
+
+               clocks = <&cgu JZ4780_CLK_RTCLK
+                         &cgu JZ4780_CLK_EXCLK
+                         &cgu JZ4780_CLK_PCLK>;
+               clock-names = "rtc", "ext", "pclk";
+
+               interrupt-controller;
+               #interrupt-cells = <1>;
+
+               interrupt-parent = <&intc>;
+               interrupts = <27 26 25>;
+       };
+
        rtc_dev: rtc@10003000 {
                compatible = "ingenic,jz4780-rtc";
                reg = <0x10003000 0x4c>;