ramips: simplify palmbus/{i2c,spi} in device DTS files
authorSungbo Eo <mans0n@gorani.run>
Fri, 8 May 2020 12:00:48 +0000 (21:00 +0900)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 8 May 2020 16:43:00 +0000 (18:43 +0200)
As the node is already defined and labeled in SoC DTSI file, we can refer to it
outside of root node and reduce redundancy.

While at it, remove unused pcf8563 label.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
target/linux/ramips/dts/mt7621_asus_rt-acx5p.dtsi
target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts
target/linux/ramips/dts/mt7621_mqmaker_witi.dts
target/linux/ramips/dts/mt7621_zbtlink_zbt-we3526.dts
target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts
target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi
target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts

index 37056c7934ba86a42cd81032e455169a4dc232fe..7ad6727f5133c23a3fc38ff42efc245238d8f0e0 100644 (file)
                bootargs = "console=ttyS0,57600";
        };
 
-       palmbus: palmbus@1E000000 {
-               i2c@900 {
-                       status = "okay";
-               };
-       };
-
        keys {
                compatible = "gpio-keys";
 
        };
 };
 
+&i2c {
+       status = "okay";
+};
+
 &sdhci {
        status = "okay";
 };
index 49d8648f8a684c3afca1465dd5b868509faee1c8..ab21785c105335c2dd67860f5c1bc3e04872f67e 100644 (file)
                bootargs = "console=ttyS0,115200";
        };
 
-       palmbus: palmbus@1E000000 {
-               i2c: i2c@900 {
-                       status = "okay";
-
-                       pcf8563: rtc@51 {
-                               status = "okay";
-                               compatible = "nxp,pcf8563";
-                               reg = <0x51>;
-                       };
-               };
-       };
-
        leds {
                compatible = "gpio-leds";
 
        };
 };
 
+&i2c {
+       status = "okay";
+
+       rtc@51 {
+               status = "okay";
+               compatible = "nxp,pcf8563";
+               reg = <0x51>;
+       };
+};
+
 &sdhci {
        status = "okay";
 };
index 87421486a9f02b404171daabe2e2b5f52269064c..aa398b8a80bf58733df248b183c9c535767ca239 100644 (file)
                bootargs = "console=ttyS0,57600";
        };
 
-       palmbus: palmbus@1E000000 {
-               i2c@900 {
-                       status = "okay";
-
-                       pcf8563: rtc@51 {
-                               status = "okay";
-                               compatible = "nxp,pcf8563";
-                               reg = <0x51>;
-                       };
-               };
-       };
-
        keys {
                compatible = "gpio-keys";
 
        };
 };
 
+&i2c {
+       status = "okay";
+
+       rtc@51 {
+               status = "okay";
+               compatible = "nxp,pcf8563";
+               reg = <0x51>;
+       };
+};
+
 &sdhci {
        status = "okay";
 };
index 1f43f2a2dcc7b661dffd7b93ddeb7470b9ed3699..6765bee563279338a798a84a3e28609fcd1a1080 100644 (file)
                bootargs = "console=ttyS0,115200";
        };
 
-       palmbus: palmbus@1E000000 {
-               i2c@900 {
-                       status = "okay";
-               };
-       };
-
        keys {
                compatible = "gpio-keys";
 
        };
 };
 
+&i2c {
+       status = "okay";
+};
+
 &sdhci {
        status = "okay";
 };
index 5e8e250432216f4229b60f5616cdd01dd3f21cf0..8e6471cf0f6f77aa1427ee4e50135d0eabeddd2b 100644 (file)
                bootargs = "console=ttyS0,115200";
        };
 
-       palmbus: palmbus@1E000000 {
-               i2c@900 {
-                       status = "okay";
-               };
-       };
-
        keys {
                compatible = "gpio-keys";
 
        };
 };
 
+&i2c {
+       status = "okay";
+};
+
 &sdhci {
        status = "okay";
 };
index 8c9d31325a0bb6ed32acff728c161bf136a4b322..88360ff2528469f320faa538f419a970b17cf6a3 100644 (file)
                bootargs = "console=ttyS0,115200";
        };
 
-       palmbus: palmbus@1E000000 {
-               i2c@900 {
-                       status = "okay";
-               };
-       };
-
        keys {
                compatible = "gpio-keys";
 
        };
 };
 
+&i2c {
+       status = "okay";
+};
+
 &sdhci {
        status = "okay";
 };
index 05cf4a380a839682d2b9f331543897ca8d3ac11c..53a5c54ec61af3858ab2e4fe348677c987caebd2 100644 (file)
                led-upgrade = &led_power;
        };
 
-       palmbus@10000000 {
-               spi@b00 {
-                       status = "okay";
-                       m25p80@0 {
-                               compatible = "jedec,spi-nor";
-                               reg = <0 0>;
-                               spi-max-frequency = <10000000>;
-
-                               partitions {
-                                       compatible = "fixed-partitions";
-                                       #address-cells = <1>;
-                                       #size-cells = <1>;
-
-                                       partition@0 {
-                                               label = "u-boot";
-                                               reg = <0x0 0x30000>;
-                                               read-only;
-                                       };
-
-                                       partition@30000 {
-                                               label = "u-boot-env";
-                                               reg = <0x30000 0x10000>;
-                                               read-only;
-                                       };
-
-                                       factory: partition@40000 {
-                                               label = "factory";
-                                               reg = <0x40000 0x10000>;
-                                               read-only;
-                                       };
-
-                                       partition@50000 {
-                                               compatible = "denx,uimage";
-                                               label = "firmware";
-                                               reg = <0x50000 0x7b0000>;
-                                       };
-                               };
-                       };
-               };
-       };
-
        leds {
                compatible = "gpio-leds";
 
        };
 };
 
+&spi0 {
+       status = "okay";
+
+       m25p80@0 {
+               compatible = "jedec,spi-nor";
+               reg = <0 0>;
+               spi-max-frequency = <10000000>;
+
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "u-boot";
+                               reg = <0x0 0x30000>;
+                               read-only;
+                       };
+
+                       partition@30000 {
+                               label = "u-boot-env";
+                               reg = <0x30000 0x10000>;
+                               read-only;
+                       };
+
+                       factory: partition@40000 {
+                               label = "factory";
+                               reg = <0x40000 0x10000>;
+                               read-only;
+                       };
+
+                       partition@50000 {
+                               compatible = "denx,uimage";
+                               label = "firmware";
+                               reg = <0x50000 0x7b0000>;
+                       };
+               };
+       };
+};
+
 &state_default {
        gpio {
                groups = "i2c", "jtag", "rgmii", "mdio", "uartf";