ARM: dts: Use labels for overriding nodes in exynos5440 boards
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Fri, 17 Apr 2015 13:53:08 +0000 (22:53 +0900)
committerKukjin Kim <kgene@kernel.org>
Wed, 3 Jun 2015 00:56:52 +0000 (09:56 +0900)
Usage of labels instead of full paths reduces possible mistakes when
overriding nodes.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
arch/arm/boot/dts/exynos5440-sd5v1.dts
arch/arm/boot/dts/exynos5440-ssdk5440.dts

index 268609a42b2c04c7a1db748cf6e899a0cded2be3..a98501bab6fc2d0d6a1fbb7d907270bc3619f23f 100644 (file)
                };
        };
 
-       gmac: ethernet@00230000 {
-               fixed_phy;
-               phy_addr = <1>;
-       };
-
        spi {
                status = "disabled";
        };
 
 };
+
+&gmac {
+       fixed_phy;
+       phy_addr = <1>;
+};
index ff55dac6e2193b837bcb64754d39b62d4ee5cabf..e4443f4e65722e8058f2663dbe9a1420043269b0 100644 (file)
                bootargs = "root=/dev/sda2 rw rootwait ignore_loglevel earlyprintk no_console_suspend mem=2048M@0x80000000 mem=6144M@0x100000000 console=ttySAC0,115200";
        };
 
-       spi_0: spi@D0000 {
-
-               flash: w25q128@0 {
-                       #address-cells = <1>;
-                       #size-cells = <1>;
-                       compatible = "winbond,w25q128";
-                       spi-max-frequency = <15625000>;
-                       reg = <0>;
-                       controller-data {
-                               samsung,spi-feedback-delay = <0>;
-                       };
+       fixed-rate-clocks {
+               xtal {
+                       compatible = "samsung,clock-xtal";
+                       clock-frequency = <50000000>;
+               };
+       };
+};
 
-                       partition@00000 {
-                               label = "BootLoader";
-                               reg = <0x60000 0x80000>;
-                               read-only;
-                       };
+&pcie_0 {
+       reset-gpio = <&pin_ctrl 5 0>;
+       status = "okay";
+};
 
-                       partition@e0000 {
-                               label = "Recovery-Kernel";
-                               reg = <0xe0000 0x300000>;
-                               read-only;
-                       };
+&pcie_1 {
+       reset-gpio = <&pin_ctrl 22 0>;
+       status = "okay";
+};
 
-                       partition@3e0000 {
-                               label = "CRAM-FS";
-                               reg = <0x3e0000 0x700000>;
-                               read-only;
-                       };
+&spi_0 {
+       flash: w25q128@0 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "winbond,w25q128";
+               spi-max-frequency = <15625000>;
+               reg = <0>;
+               controller-data {
+                       samsung,spi-feedback-delay = <0>;
+               };
 
-                       partition@ae0000 {
-                               label = "User-Data";
-                               reg = <0xae0000 0x520000>;
-                       };
+               partition@00000 {
+                       label = "BootLoader";
+                       reg = <0x60000 0x80000>;
+                       read-only;
+               };
 
+               partition@e0000 {
+                       label = "Recovery-Kernel";
+                       reg = <0xe0000 0x300000>;
+                       read-only;
                };
 
-       };
+               partition@3e0000 {
+                       label = "CRAM-FS";
+                       reg = <0x3e0000 0x700000>;
+                       read-only;
+               };
 
-       fixed-rate-clocks {
-               xtal {
-                       compatible = "samsung,clock-xtal";
-                       clock-frequency = <50000000>;
+               partition@ae0000 {
+                       label = "User-Data";
+                       reg = <0xae0000 0x520000>;
                };
-       };
 
-       pcie@290000 {
-               reset-gpio = <&pin_ctrl 5 0>;
-               status = "okay";
        };
 
-       pcie@2a0000 {
-               reset-gpio = <&pin_ctrl 22 0>;
-               status = "okay";
-       };
 };