ARM: dts: Add the Gemini reset controller
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 13 Apr 2017 14:09:53 +0000 (16:09 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 24 May 2017 08:50:17 +0000 (10:50 +0200)
This adds the Gemini reset controller to the Gemini SoC
DTSI file and also adds the reset references to all existing
blocks already in the device tree.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/gemini.dtsi

index b8d011b..dadc841 100644 (file)
                };
 
                syscon: syscon@40000000 {
-                       compatible = "cortina,gemini-syscon", "syscon", "simple-mfd";
+                       compatible = "cortina,gemini-syscon",
+                                    "syscon", "simple-mfd";
                        reg = <0x40000000 0x1000>;
+                       #reset-cells = <1>;
 
                        syscon-reboot {
                                compatible = "syscon-reboot";
                        compatible = "cortina,gemini-watchdog";
                        reg = <0x41000000 0x1000>;
                        interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
+                       resets = <&syscon 23>;
                };
 
                uart0: serial@42000000 {
                        compatible = "ns16550a";
                        reg = <0x42000000 0x100>;
+                       resets = <&syscon 18>;
                        clock-frequency = <48000000>;
                        interrupts = <18 IRQ_TYPE_LEVEL_HIGH>;
                        reg-shift = <2>;
@@ -59,6 +63,7 @@
                        interrupts = <14 IRQ_TYPE_EDGE_FALLING>, /* Timer 1 */
                                     <15 IRQ_TYPE_EDGE_FALLING>, /* Timer 2 */
                                     <16 IRQ_TYPE_EDGE_FALLING>; /* Timer 3 */
+                       resets = <&syscon 17>;
                        syscon = <&syscon>;
                };
 
                        compatible = "cortina,gemini-rtc";
                        reg = <0x45000000 0x100>;
                        interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
+                       resets = <&syscon 16>;
                };
 
                intcon: interrupt-controller@48000000 {
                        compatible = "faraday,ftintc010";
                        reg = <0x48000000 0x1000>;
+                       resets = <&syscon 14>;
                        interrupt-controller;
                        #interrupt-cells = <2>;
                };
@@ -85,6 +92,7 @@
                        compatible = "cortina,gemini-gpio", "faraday,ftgpio010";
                        reg = <0x4d000000 0x100>;
                        interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
+                       resets = <&syscon 20>;
                        gpio-controller;
                        #gpio-cells = <2>;
                        interrupt-controller;
                        compatible = "cortina,gemini-gpio", "faraday,ftgpio010";
                        reg = <0x4e000000 0x100>;
                        interrupts = <23 IRQ_TYPE_LEVEL_HIGH>;
+                       resets = <&syscon 21>;
                        gpio-controller;
                        #gpio-cells = <2>;
                        interrupt-controller;
                        compatible = "cortina,gemini-gpio", "faraday,ftgpio010";
                        reg = <0x4f000000 0x100>;
                        interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
+                       resets = <&syscon 22>;
                        gpio-controller;
                        #gpio-cells = <2>;
                        interrupt-controller;
                         * to configure the host bridge.
                         */
                        reg = <0x50000000 0x100>;
+                       resets = <&syscon 7>;
                        #address-cells = <3>;
                        #size-cells = <2>;
                        #interrupt-cells = <1>;