ath79: remove redundant nvmem definitions
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 19 Aug 2021 22:09:58 +0000 (00:09 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 20 Aug 2021 16:13:55 +0000 (18:13 +0200)
Due to use of a script when migrating from mtd-mac-address, a few
of the definitions are redundant in DTSI and DTS files. Remove
those and consolidate the definitions in parent DTSI files in a
few cases.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
20 files changed:
target/linux/ath79/dts/ar7240_tplink_tl-wa.dtsi
target/linux/ath79/dts/ar7240_tplink_tl-wr.dtsi
target/linux/ath79/dts/ar7242_ubnt_edgeswitch-8xp.dts
target/linux/ath79/dts/ar9342_ubnt_wa.dtsi
target/linux/ath79/dts/ar9342_ubnt_wa_1port.dtsi
target/linux/ath79/dts/ar9342_ubnt_wa_2port.dtsi
target/linux/ath79/dts/ar9344_teltonika_rut955-h7v3c0.dts
target/linux/ath79/dts/ar9344_teltonika_rut955.dts
target/linux/ath79/dts/ar9344_tplink_cpe_2port.dtsi
target/linux/ath79/dts/qca9533_tplink_cpe220-v3.dts
target/linux/ath79/dts/qca9558_devolo_dvl1200e.dts
target/linux/ath79/dts/qca9558_devolo_dvl1750e.dts
target/linux/ath79/dts/qca9558_openmesh_mr900-v1.dts
target/linux/ath79/dts/qca9558_openmesh_mr900-v2.dts
target/linux/ath79/dts/qca9563_ubnt_unifiac-lite.dtsi
target/linux/ath79/dts/qca9563_ubnt_unifiac-pro.dtsi
target/linux/ath79/dts/qca9563_ubnt_unifiac.dtsi
target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v3.dtsi
target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v4.dts
target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v6.dts

index ceb6b1d7a20dc168cd015c011e99ee156dd0b78d..2bded28ea4233f4ce923c2bfea927670350d3f1b 100644 (file)
 &ath9k {
        compatible = "pci168c,002a";
 };
-
-&uboot {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_uboot_1fc00: macaddr@1fc00 {
-               reg = <0x1fc00 0x6>;
-       };
-};
index 40a2ca239905a595034200c57e7b0248803c6057..9d896360dc12c2fe2f54b37a5b6be8c4248ac57c 100644 (file)
 &ath9k {
        compatible = "pci168c,002b";
 };
-
-&uboot {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_uboot_1fc00: macaddr@1fc00 {
-               reg = <0x1fc00 0x6>;
-       };
-};
index ec17d59d1a3f2e3abd8ff5a2c699174d72a934b3..f5433a30a3da02a2cc7efd554d889d1e2c8765f1 100644 (file)
                                        full-duplex;
                                };
                        };
-
                };
        };
 };
 &eth0 {
        status = "okay";
 
+       phy-handle = <&phy0>;
        phy-mode = "rgmii-rxid";
        pll-data = <0x16000000 0x00000101 0x00001313>;
+
        nvmem-cells = <&macaddr_art_0>;
        nvmem-cell-names = "mac-address";
 
-       phy-handle = <&phy0>;
        fixed-link {
                speed = <1000>;
                full-duplex;
index ac036ccd851debd1166c2a393bc60aa6d035a14a..549daace7e4597c30d96d4d6ca728755fec70241 100644 (file)
        qca,disable-5ghz;
        mtd-cal-data = <&art 0x1000>;
 };
+
+&art {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_art_0: macaddr@0 {
+               reg = <0x0 0x6>;
+       };
+};
index bd6feb3d787714732e726cb25b2a64d843b544e8..045cbe8985067aaf0167c112e060b5dc608a8e21 100644 (file)
                rxdv-delay = <3>;
        };
 };
-
-&art {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_art_0: macaddr@0 {
-               reg = <0x0 0x6>;
-       };
-};
index 5024a140f3d095bc4f951a6cff9287def02a316c..2567c7775980e2f185424acccef78b8f35a2c1fd 100644 (file)
                rxdv-delay = <2>;
        };
 };
-
-&art {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_art_0: macaddr@0 {
-               reg = <0x0 0x6>;
-       };
-};
index e017ae230831ac6a4c525abc5a87b4256b563998..2cb8d4015c514a2a524499b0a5b710cc9814862d 100644 (file)
                pinctrl-single,bits = <0x0 0x002e0000 0x00ff0000>;
        };
 };
-
-&config {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_config_0: macaddr@0 {
-               reg = <0x0 0x6>;
-       };
-};
index 56821fccdea48c6879395d6b03748a3462f6e48c..7a1f05afccaca70aa45c90679a09767bffb68c03 100644 (file)
                                        <0x14 0x08 0xff>;
        };
 };
-
-&config {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_config_0: macaddr@0 {
-               reg = <0x0 0x6>;
-       };
-};
index d539d2e0a6e578be1a0f4eb76251aca3a45a510b..e35fa486e41350f2f5acb3cd18dd246216d671a5 100644 (file)
                switch-only-mode = <1>;
        };
 };
-
-&info {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_info_8: macaddr@8 {
-               reg = <0x8 0x6>;
-       };
-};
index fb31aa2872879d13b7679b0c2ab5cd3e5c58ccd6..920d2db996c75186afef705a48fd86222329c1b4 100644 (file)
                switch-only-mode = <1>;
        };
 };
-
-&info {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_info_8: macaddr@8 {
-               reg = <0x8 0x6>;
-       };
-};
index d078df1989b404312c18e44f1c4a39d19dbc0ab3..af305f8f07ae0cfe3738936c982c318b914eac36 100644 (file)
 
        qca955x-sgmii-fixup;
 };
-
-&art {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_art_0: macaddr@0 {
-               reg = <0x0 0x6>;
-       };
-};
index d60e7c4857f7ba911b2e5d3cbd507e59430bbfa7..6202ff37992a9b0845d096f00ab73bfc51553d67 100644 (file)
 
        qca955x-sgmii-fixup;
 };
-
-&art {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_art_0: macaddr@0 {
-               reg = <0x0 0x6>;
-       };
-};
index ff33a075f5ef5aa6a951e9d0448ea79e52bb1e6d..211255cddebc41d94995ae8633e2e261dee18776 100644 (file)
                mac-address-increment = <16>;
        };
 };
-
-&art {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_art_0: macaddr@0 {
-               reg = <0x0 0x6>;
-       };
-};
index 12ebb67ba6aa7025b083e5ff5da8e01fe9943536..0d29c5cf06db3127b52d9e8515f3e0a641f4df90 100644 (file)
                mac-address-increment = <16>;
        };
 };
-
-&art {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_art_0: macaddr@0 {
-               reg = <0x0 0x6>;
-       };
-};
index d2797086f48a271c3e52b93afeb5aa46445aee9a..5eb358014b3251ccec41e99e7bfeef7e1a1d8e0f 100644 (file)
 
        pll-data = <0x03000000 0x00000101 0x00001313>;
 };
-
-&art {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_art_0: macaddr@0 {
-               reg = <0x0 0x6>;
-       };
-};
index f3dc0686053f3208e53062d2a6e9891992ae85a3..dbf6c27146f622c1a45d537023ee5a923f7a5d4c 100644 (file)
        nvmem-cell-names = "mac-address";
        phy-handle = <&phy0>;
 };
-
-&art {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_art_0: macaddr@0 {
-               reg = <0x0 0x6>;
-       };
-};
index 42fe25c7811d86a9aa08b2114fa5e42dc11e284a..2e407c348642cf5145f79c15288856fa141b0512 100644 (file)
 
        mtd-cal-data = <&art 0x1000>;
 };
+
+&art {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_art_0: macaddr@0 {
+               reg = <0x0 0x6>;
+       };
+};
index 416623fec430b6bf5fe957fc02c0ca4c1c79502e..b2c009c346878d99ea83608513663def503f739b 100644 (file)
        nvmem-cell-names = "mac-address";
        mac-address-increment = <(-1)>;
 };
-
-&uboot {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_uboot_1fc00: macaddr@1fc00 {
-               reg = <0x1fc00 0x6>;
-       };
-};
index 35facbdade39f473c84c62d3b45373afa9c60c9e..daf77793141bd164274350374d965c9b9ca671da 100644 (file)
        nvmem-cells = <&macaddr_uboot_1fc00>;
        nvmem-cell-names = "mac-address";
 };
-
-&uboot {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_uboot_1fc00: macaddr@1fc00 {
-               reg = <0x1fc00 0x6>;
-       };
-};
index 1bc3b0ae90420bfe0d468c2a4198d7225e5ed5b7..409f288f07adc2fe97e3c83e081a94f24188c5ae 100644 (file)
        nvmem-cells = <&macaddr_uboot_1fc00>;
        nvmem-cell-names = "mac-address";
 };
-
-&uboot {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_uboot_1fc00: macaddr@1fc00 {
-               reg = <0x1fc00 0x6>;
-       };
-};