ARM: dts: armada-370-xp: Use the node labels
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Fri, 4 Nov 2016 16:47:37 +0000 (17:47 +0100)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Sat, 19 Nov 2016 08:16:31 +0000 (09:16 +0100)
Use the node label when possible. As a result it flattens the device tree
and it makes more visible the IP blocks specific to each SoC variant.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
arch/arm/boot/dts/armada-370.dtsi
arch/arm/boot/dts/armada-xp.dtsi

index 5ed086da1e5128c8c6c0fc3ed077f79e14fa43e4..079494e525542b5824fd892c354e9d395a187366 100644 (file)
                                wt-override;
                        };
 
-                       i2c0: i2c@11000 {
-                               reg = <0x11000 0x20>;
-                       };
-
-                       i2c1: i2c@11100 {
-                               reg = <0x11100 0x20>;
-                       };
-
                        gpio0: gpio@18100 {
                                compatible = "marvell,orion-gpio";
                                reg = <0x18100 0x40>;
                                interrupts = <91>;
                        };
 
-                       /*
-                        * Default UART pinctrl setting without RTS/CTS, can
-                        * be overwritten on board level if a different
-                        * configuration is used.
-                        */
-                       uart0: serial@12000 {
-                               pinctrl-0 = <&uart0_pins>;
-                               pinctrl-names = "default";
-                       };
-
-                       uart1: serial@12100 {
-                               pinctrl-0 = <&uart1_pins>;
-                               pinctrl-names = "default";
-                       };
 
                        systemc: system-controller@18200 {
                                compatible = "marvell,armada-370-xp-system-controller";
                                reg = <0x18330 0x4>;
                        };
 
-                       interrupt-controller@20a00 {
-                               reg = <0x20a00 0x1d0>, <0x21870 0x58>;
-                       };
-
-                       timer@20300 {
-                               compatible = "marvell,armada-370-timer";
-                               clocks = <&coreclk 2>;
-                       };
-
-                       watchdog@20300 {
-                               compatible = "marvell,armada-370-wdt";
-                               clocks = <&coreclk 2>;
-                       };
-
                        cpuconf: cpu-config@21000 {
                                compatible = "marvell,armada-370-cpu-config";
                                reg = <0x21000 0x8>;
                                status = "disabled";
                        };
 
-                       usb@50000 {
-                               clocks = <&coreclk 0>;
-                       };
-
-                       usb@51000 {
-                               clocks = <&coreclk 0>;
-                       };
-
                        xor0: xor@60800 {
                                compatible = "marvell,orion-xor";
                                reg = <0x60800 0x100
                                };
                        };
 
-                       ethernet@70000 {
-                               compatible = "marvell,armada-370-neta";
-                       };
-
-                       ethernet@74000 {
-                               compatible = "marvell,armada-370-neta";
-                       };
-
                        cesa: crypto@90000 {
                                compatible = "marvell,armada-370-crypto";
                                reg = <0x90000 0x10000>;
        };
 };
 
+/*
+ * Default UART pinctrl setting without RTS/CTS, can be overwritten on
+ * board level if a different configuration is used.
+ */
+
+&uart0 {
+       pinctrl-0 = <&uart0_pins>;
+       pinctrl-names = "default";
+};
+
+&uart1 {
+       pinctrl-0 = <&uart1_pins>;
+       pinctrl-names = "default";
+};
+
+&i2c0 {
+       reg = <0x11000 0x20>;
+};
+
+&i2c1 {
+       reg = <0x11100 0x20>;
+};
+
+&mpic {
+       reg = <0x20a00 0x1d0>, <0x21870 0x58>;
+};
+
+&timer {
+       compatible = "marvell,armada-370-timer";
+       clocks = <&coreclk 2>;
+};
+
+&watchdog {
+       compatible = "marvell,armada-370-wdt";
+       clocks = <&coreclk 2>;
+};
+
+&usb0 {
+       clocks = <&coreclk 0>;
+};
+
+&usb1 {
+       clocks = <&coreclk 0>;
+};
+
+&eth0 {
+       compatible = "marvell,armada-370-neta";
+};
+
+&eth1 {
+       compatible = "marvell,armada-370-neta";
+};
+
 &pinctrl {
        compatible = "marvell,mv88f6710-pinctrl";
 
index 654a61e525b4a93bf952bc00b40ad3b61477f216..bb8f7dcaf656f4e351cfbeee0113f69a1eed5d24 100644 (file)
                                wt-override;
                        };
 
-                       i2c0: i2c@11000 {
-                               compatible = "marvell,mv78230-i2c", "marvell,mv64xxx-i2c";
-                               reg = <0x11000 0x100>;
-                       };
-
-                       i2c1: i2c@11100 {
-                               compatible = "marvell,mv78230-i2c", "marvell,mv64xxx-i2c";
-                               reg = <0x11100 0x100>;
-                       };
-
                        uart2: serial@12200 {
                                compatible = "snps,dw-apb-uart";
                                pinctrl-0 = <&uart2_pins>;
                                clocks = <&coreclk 1>;
                        };
 
-                       interrupt-controller@20a00 {
-                             reg = <0x20a00 0x2d0>, <0x21070 0x58>;
-                       };
-
-                       timer@20300 {
-                               compatible = "marvell,armada-xp-timer";
-                               clocks = <&coreclk 2>, <&refclk>;
-                               clock-names = "nbclk", "fixed";
-                       };
-
-                       watchdog@20300 {
-                               compatible = "marvell,armada-xp-wdt";
-                               clocks = <&coreclk 2>, <&refclk>;
-                               clock-names = "nbclk", "fixed";
-                       };
-
-                       cpurst@20800 {
-                               reg = <0x20800 0x20>;
-                       };
-
                        cpu-config@21000 {
                                compatible = "marvell,armada-xp-cpu-config";
                                reg = <0x21000 0x8>;
                                status = "disabled";
                        };
 
-                       usb@50000 {
-                               clocks = <&gateclk 18>;
-                       };
-
-                       usb@51000 {
-                               clocks = <&gateclk 19>;
-                       };
-
                        usb2: usb@52000 {
                                compatible = "marvell,orion-ehci";
                                reg = <0x52000 0x500>;
        };
 };
 
+&i2c0 {
+       compatible = "marvell,mv78230-i2c", "marvell,mv64xxx-i2c";
+       reg = <0x11000 0x100>;
+};
+
+&i2c1 {
+       compatible = "marvell,mv78230-i2c", "marvell,mv64xxx-i2c";
+       reg = <0x11100 0x100>;
+};
+
+&mpic {
+       reg = <0x20a00 0x2d0>, <0x21070 0x58>;
+};
+
+&timer {
+       compatible = "marvell,armada-xp-timer";
+       clocks = <&coreclk 2>, <&refclk>;
+       clock-names = "nbclk", "fixed";
+};
+
+&watchdog {
+       compatible = "marvell,armada-xp-wdt";
+       clocks = <&coreclk 2>, <&refclk>;
+       clock-names = "nbclk", "fixed";
+};
+
+&cpurst {
+       reg = <0x20800 0x20>;
+};
+
+&usb0 {
+       clocks = <&gateclk 18>;
+};
+
+&usb1 {
+       clocks = <&gateclk 19>;
+};
+
 &pinctrl {
        ge0_gmii_pins: ge0-gmii-pins {
                marvell,pins =