From: Rafał Miłecki Date: Fri, 28 Jul 2023 16:48:34 +0000 (+0200) Subject: ramips: use fixed layout cell "mac-base" for Netgear WNDR3700 v5 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e6cf959d0e3a536a38fb8a7198cb0029544fc5c2;p=openwrt%2Fstaging%2Frobimarko.git ramips: use fixed layout cell "mac-base" for Netgear WNDR3700 v5 This drops a use of downstream "mac-address-increment". Signed-off-by: Rafał Miłecki --- diff --git a/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts b/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts index 276e7c959f..dc40d71afc 100644 --- a/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts +++ b/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts @@ -40,6 +40,18 @@ label = "factory"; reg = <0xf30000 0x10000>; read-only; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_factory_4: macaddr@4 { + compatible = "mac-base"; + reg = <0x4 0x6>; + #nvmem-cell-cells = <1>; + }; + }; }; partition@50000 { @@ -52,22 +64,11 @@ }; &gmac0 { - nvmem-cells = <&macaddr_factory_4>; + nvmem-cells = <&macaddr_factory_4 0>; nvmem-cell-names = "mac-address"; }; &gmac1 { - nvmem-cells = <&macaddr_factory_4>; + nvmem-cells = <&macaddr_factory_4 1>; nvmem-cell-names = "mac-address"; - mac-address-increment = <1>; -}; - -&factory { - compatible = "nvmem-cells"; - #address-cells = <1>; - #size-cells = <1>; - - macaddr_factory_4: macaddr@4 { - reg = <0x4 0x6>; - }; };