ramips: Fix use mac-base for TP-Link TL-MR6400 v4 and v5
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 9 May 2024 20:10:52 +0000 (22:10 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 16 May 2024 10:11:08 +0000 (13:11 +0300)
Use mac-base for mac-base TP-Link TL-MR6400 v4 and v5

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v4.dts
target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v5.dts

index 19783274e7f5a45694f75250bbaf94ab8edcaac2..67cc54650f210bde2519939ce7d34f999117a9fc 100644 (file)
 &wmac {
        status = "okay";
 
-       nvmem-cells = <&eeprom_factory_20000>, <&macaddr_factory_1f100>;
+       nvmem-cells = <&eeprom_factory_20000>, <&macaddr_factory_1f100 0>;
        nvmem-cell-names = "eeprom", "mac-address";
 };
 
 &ethernet {
-       nvmem-cells = <&macaddr_factory_1f100>;
+       nvmem-cells = <&macaddr_factory_1f100 0>;
        nvmem-cell-names = "mac-address";
 };
 
                #size-cells = <1>;
 
                macaddr_factory_1f100: macaddr@1f100 {
+                       compatible = "mac-base";
                        reg = <0x1f100 0x6>;
+                       #nvmem-cell-cells = <1>;
                };
        };
 };
index 857e61f614abf9e96c220258b3cbd1bd7b787ea8..609452dfe17aad28fbc7d05184cf9d73f5c47d3a 100644 (file)
 &wmac {
        status = "okay";
 
-       nvmem-cells = <&eeprom_factory_20000>, <&macaddr_factory_1f100>;
+       nvmem-cells = <&eeprom_factory_20000>, <&macaddr_factory_1f100 0>;
        nvmem-cell-names = "eeprom", "mac-address";
 };
 
 &ethernet {
-       nvmem-cells = <&macaddr_factory_1f100>;
+       nvmem-cells = <&macaddr_factory_1f100 0>;
        nvmem-cell-names = "mac-address";
 };
 
                #size-cells = <1>;
 
                macaddr_factory_1f100: macaddr@1f100 {
+                       compatible = "mac-base";
                        reg = <0x1f100 0x6>;
+                       #nvmem-cell-cells = <1>;
                };
        };
 };