lantiq: convert mtd-mac-address to nvmem for Fritz!Box 736x
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 20 Aug 2021 12:27:13 +0000 (14:27 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 20 Aug 2021 16:13:55 +0000 (18:13 +0200)
Convert this series by moving the definitions to the individual
devices.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7360-v2.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7360sl.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7362sl.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz736x.dtsi

index 3bd6ff0ee73bf5005eca1f90240020bfcb5d5a2c..8881745819556bd0d14f0ad433684ea56185cf44 100644 (file)
                };
        };
 };
+
+&eth0 {
+       nvmem-cells = <&macaddr_urlader_a91>;
+       nvmem-cell-names = "mac-address";
+       mac-address-increment = <(-2)>;
+};
+
+&urlader {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_urlader_a91: macaddr@a91 {
+               reg = <0xa91 0x6>;
+       };
+};
index 898ca00c34ac36898727c8e91893ed32aba94219..945c553688bc6c89fddde513111ac6b31c39f5d4 100644 (file)
                };
        };
 };
+
+&eth0 {
+       nvmem-cells = <&macaddr_urlader_a91>;
+       nvmem-cell-names = "mac-address";
+       mac-address-increment = <(-2)>;
+};
+
+&urlader {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_urlader_a91: macaddr@a91 {
+               reg = <0xa91 0x6>;
+       };
+};
index c26908642cfe4ad2ac96548382c916a11944992f..b1423e5dea4cc10665c9d8b4a61d627417ba4451 100644 (file)
                #address-cells = <2>;
        };
 };
+
+&eth0 {
+       nvmem-cells = <&macaddr_urlader_a91>;
+       nvmem-cell-names = "mac-address";
+       mac-address-increment = <(-2)>;
+};
+
+&urlader {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_urlader_a91: macaddr@a91 {
+               reg = <0xa91 0x6>;
+       };
+};
index d91dc74e2f0a556ef730105d2062daa2f15fc286..83ef4154236a6042594666c5bb0af535038881d2 100644 (file)
        };
 };
 
-&eth0 {
-       mtd-mac-address = <&urlader 0xa91>;
-       mac-address-increment = <(-2)>;
-};
-
 &gphy0 {
        lantiq,gphy-mode = <GPHY_MODE_GE>;
 };