]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: keystone*: Use a single soc0 instance
authorNishanth Menon <nm@ti.com>
Fri, 15 Dec 2017 06:09:47 +0000 (00:09 -0600)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Sat, 16 Dec 2017 22:36:56 +0000 (14:36 -0800)
Provide a soc0 node and reference the same to simplify dts. This also
resolves the following warnings when built with W=1:
arch/arm/boot/dts/keystone-k2hk-evm.dtb: Warning (unit_address_vs_reg): Node /soc has a reg or ranges property, but no unit name
arch/arm/boot/dts/keystone-k2l-evm.dtb: Warning (unit_address_vs_reg): Node /soc has a reg or ranges property, but no unit name
arch/arm/boot/dts/keystone-k2e-evm.dtb: Warning (unit_address_vs_reg): Node /soc has a reg or ranges property, but no unit name
arch/arm/boot/dts/keystone-k2g-evm.dtb: Warning (unit_address_vs_reg): Node /soc has a reg or ranges property, but no unit name
arch/arm/boot/dts/keystone-k2g-ice.dtb: Warning (unit_address_vs_reg): Node /soc has a reg or ranges property, but no unit name

NOTE: Though we can reformat files by reducing 1 level of indent due to
the use of soc0 phandle, we omit that change to prevent un-necessary
churn in code base.

Reported-by: Rob Herring <robh@kernel.org>
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
arch/arm/boot/dts/keystone-k2e-evm.dts
arch/arm/boot/dts/keystone-k2e.dtsi
arch/arm/boot/dts/keystone-k2g.dtsi
arch/arm/boot/dts/keystone-k2hk-evm.dts
arch/arm/boot/dts/keystone-k2hk.dtsi
arch/arm/boot/dts/keystone-k2l-evm.dts
arch/arm/boot/dts/keystone-k2l.dtsi
arch/arm/boot/dts/keystone.dtsi

index 5378b858fb6f703ba4f86ae6ec771a7f83f363ec..66fec5f5d081653fd7865c4cc179f00cafe68806 100644 (file)
@@ -25,8 +25,9 @@
                        status = "okay";
                };
        };
+};
 
-       soc {
+&soc0 {
 
                clocks {
                        refclksys: refclksys {
@@ -50,7 +51,6 @@
                                clock-output-names = "refclk-ddr3a";
                        };
                };
-       };
 };
 
 &usb_phy {
index db4560b929f1ae7c5fdc089c479a65261bf74164..0bcd3f8a9c457d625886e0730f48bb5fd2db4444 100644 (file)
@@ -45,8 +45,9 @@
        aliases {
                rproc0 = &dsp0;
        };
+};
 
-       soc {
+&soc0 {
                /include/ "keystone-k2e-clocks.dtsi"
 
                usb: usb@2680000 {
                        bus_freq        = <2500000>;
                };
                /include/ "keystone-k2e-netcp.dtsi"
-       };
 };
index 8b04652b703f8cc5e29728bf59cb98ab4997c65b..fd061718dc0a4c38a3c6093c98ff2fc7cb72b293 100644 (file)
@@ -69,7 +69,7 @@
                interrupts = <GIC_SPI 4 IRQ_TYPE_EDGE_RISING>;
        };
 
-       soc {
+       soc0: soc@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                #pinctrl-cells = <1>;
index 8ea5a584e828dc01300cf9717094c0a60609a800..ad4e22afe13309fbf4f8736ac1aa72d589bf9010 100644 (file)
                };
        };
 
-       soc {
+       leds {
+               compatible = "gpio-leds";
+               debug1_1 {
+                       label = "keystone:green:debug1";
+                       gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; /* 12 */
+               };
+
+               debug1_2 {
+                       label = "keystone:red:debug1";
+                       gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; /* 13 */
+               };
+
+               debug2 {
+                       label = "keystone:blue:debug2";
+                       gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; /* 14 */
+               };
+
+               debug3 {
+                       label = "keystone:blue:debug3";
+                       gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; /* 15 */
+               };
+       };
+};
+
+&soc0 {
                clocks {
                        refclksys: refclksys {
                                #clock-cells = <0>;
                                clock-output-names = "refclk-ddr3b";
                        };
                };
-       };
-
-       leds {
-               compatible = "gpio-leds";
-               debug1_1 {
-                       label = "keystone:green:debug1";
-                       gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; /* 12 */
-               };
-
-               debug1_2 {
-                       label = "keystone:red:debug1";
-                       gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; /* 13 */
-               };
-
-               debug2 {
-                       label = "keystone:blue:debug2";
-                       gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; /* 14 */
-               };
-
-               debug3 {
-                       label = "keystone:blue:debug3";
-                       gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; /* 15 */
-               };
-       };
 };
 
 &usb_phy {
index 71c1dcf4159fd28bc6d07c7a8ab7302dd5b4bd80..ed59474522cb8342a754e177ff2a79872d44a661 100644 (file)
@@ -52,8 +52,9 @@
                rproc6 = &dsp6;
                rproc7 = &dsp7;
        };
+};
 
-       soc {
+&soc0 {
                /include/ "keystone-k2hk-clocks.dtsi"
 
                msm_ram: msmram@c000000 {
                        bus_freq        = <2500000>;
                };
                /include/ "keystone-k2hk-netcp.dtsi"
-       };
 };
index 61f63437b886438e0adbe7ece726fe4fb81b7748..e200533d26a42ac4b00c175bf727103c3290d7fb 100644 (file)
@@ -25,8 +25,9 @@
                        status = "okay";
                };
        };
+};
 
-       soc {
+&soc0 {
                clocks {
                        refclksys: refclksys {
                                #clock-cells = <0>;
@@ -35,7 +36,6 @@
                                clock-output-names = "refclk-sys";
                        };
                };
-       };
 };
 
 &usb_phy {
index 85b5481213d0619621e7ee3008c3563b6420bef6..b61a830f4a4d208cc5b8179a502182d1237099be 100644 (file)
@@ -36,8 +36,9 @@
                rproc2 = &dsp2;
                rproc3 = &dsp3;
        };
+};
 
-       soc {
+&soc0 {
                /include/ "keystone-k2l-clocks.dtsi"
 
                uart2: serial@2348400 {
                        bus_freq        = <2500000>;
                };
                /include/ "keystone-k2l-netcp.dtsi"
-       };
 };
 
 &spi0 {
index ca2cc5d8e3b544a3531e707777bd79107f1cec4d..0e8d094515cc1fc5f674261a75455ef652a6dc18 100644 (file)
@@ -67,7 +67,7 @@
                cpu_on          = <0x84000003>;
        };
 
-       soc {
+       soc0: soc@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "ti,keystone","simple-bus";