ARM: berlin: move reset to simple-mfd nodes
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Fri, 15 May 2015 22:50:40 +0000 (00:50 +0200)
committerSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Mon, 18 May 2015 15:52:39 +0000 (17:52 +0200)
Now with a proper platform driver for reset and simple-mfd, move to
the new marvell,berlin-reset node.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
arch/arm/boot/dts/berlin2.dtsi
arch/arm/boot/dts/berlin2cd.dtsi
arch/arm/boot/dts/berlin2q.dtsi

index 245527a..1e92511 100644 (file)
                chip: chip-control@ea0000 {
                        compatible = "marvell,berlin2-chip-ctrl", "simple-mfd", "syscon";
                        #clock-cells = <1>;
-                       #reset-cells = <2>;
                        reg = <0xea0000 0x400>;
                        clocks = <&refclk>;
                        clock-names = "refclk";
                                groups = "G26";
                                function = "emmc";
                        };
+
+                       chip_rst: reset {
+                               compatible = "marvell,berlin2-reset";
+                               #reset-cells = <2>;
+                       };
                };
 
                apb@fc0000 {
index cccc23b..5f8bfcd 100644 (file)
@@ -84,7 +84,7 @@
                        compatible = "marvell,berlin2cd-usb-phy";
                        reg = <0xb74000 0x128>;
                        #phy-cells = <0>;
-                       resets = <&chip 0x178 23>;
+                       resets = <&chip_rst 0x178 23>;
                        status = "disabled";
                };
 
@@ -92,7 +92,7 @@
                        compatible = "marvell,berlin2cd-usb-phy";
                        reg = <0xb78000 0x128>;
                        #phy-cells = <0>;
-                       resets = <&chip 0x178 24>;
+                       resets = <&chip_rst 0x178 24>;
                        status = "disabled";
                };
 
                chip: chip-control@ea0000 {
                        compatible = "marvell,berlin2cd-chip-ctrl", "simple-mfd", "syscon";
                        #clock-cells = <1>;
-                       #reset-cells = <2>;
                        reg = <0xea0000 0x400>;
                        clocks = <&refclk>;
                        clock-names = "refclk";
                                groups = "G6";
                                function = "uart0";
                        };
+
+                       chip_rst: reset {
+                               compatible = "marvell,berlin2-reset";
+                               #reset-cells = <2>;
+                       };
                };
 
                usb0: usb@ed0000 {
index a515b54..a27d03a 100644 (file)
                        compatible = "marvell,berlin2-usb-phy";
                        reg = <0xa2f400 0x128>;
                        #phy-cells = <0>;
-                       resets = <&chip 0x104 14>;
+                       resets = <&chip_rst 0x104 14>;
                        status = "disabled";
                };
 
                        compatible = "marvell,berlin2-usb-phy";
                        reg = <0xb74000 0x128>;
                        #phy-cells = <0>;
-                       resets = <&chip 0x104 12>;
+                       resets = <&chip_rst 0x104 12>;
                        status = "disabled";
                };
 
                        compatible = "marvell,berlin2-usb-phy";
                        reg = <0xb78000 0x128>;
                        #phy-cells = <0>;
-                       resets = <&chip 0x104 13>;
+                       resets = <&chip_rst 0x104 13>;
                        status = "disabled";
                };
 
                chip: chip-control@ea0000 {
                        compatible = "marvell,berlin2q-chip-ctrl", "simple-mfd", "syscon";
                        #clock-cells = <1>;
-                       #reset-cells = <2>;
                        reg = <0xea0000 0x400>, <0xdd0170 0x10>;
                        clocks = <&refclk>;
                        clock-names = "refclk";
                                groups = "G7";
                                function = "twsi1";
                        };
+
+                       chip_rst: reset {
+                               compatible = "marvell,berlin2-reset";
+                               #reset-cells = <2>;
+                       };
                };
 
                ahci: sata@e90000 {