From bf391c838bd418e3253e12bd1d2e71848ed8a66a Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Fri, 29 Sep 2023 10:40:23 +0800 Subject: [PATCH] mediatek: fix nvmem binding for cmcc rax3000m Signed-off-by: Tianling Shen --- .../dts/mt7981b-cmcc-rax3000m-nand.dtso | 25 +++++++------------ 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/target/linux/mediatek/dts/mt7981b-cmcc-rax3000m-nand.dtso b/target/linux/mediatek/dts/mt7981b-cmcc-rax3000m-nand.dtso index ff94a550fd..5877ca4c50 100644 --- a/target/linux/mediatek/dts/mt7981b-cmcc-rax3000m-nand.dtso +++ b/target/linux/mediatek/dts/mt7981b-cmcc-rax3000m-nand.dtso @@ -9,7 +9,7 @@ fragment@0 { target = <&gmac0>; __overlay__ { - nvmem-cells = <&macaddr_factory_2a 0>; + nvmem-cells = <&macaddr_factory_2a>; nvmem-cell-names = "mac-address"; }; }; @@ -17,7 +17,7 @@ fragment@1 { target = <&gmac1>; __overlay__ { - nvmem-cells = <&macaddr_factory_24 0>; + nvmem-cells = <&macaddr_factory_24>; nvmem-cell-names = "mac-address"; }; }; @@ -85,22 +85,15 @@ read-only; compatible = "nvmem-cells"; - nvmem-layout { - compatible = "fixed-layout"; - #address-cells = <1>; - #size-cells = <1>; + #address-cells = <1>; + #size-cells = <1>; - macaddr_factory_24: macaddr@24 { - compatible = "mac-base"; - reg = <0x24 0x6>; - #nvmem-cell-cells = <1>; - }; + macaddr_factory_24: macaddr@24 { + reg = <0x24 0x6>; + }; - macaddr_factory_2a: macaddr@2a { - compatible = "mac-base"; - reg = <0x2a 0x6>; - #nvmem-cell-cells = <1>; - }; + macaddr_factory_2a: macaddr@2a { + reg = <0x2a 0x6>; }; };