rampis: fix Reference to non-existent node for GB-PC2
authorArınç ÜNAL <arinc.unal@arinc9.com>
Sat, 31 Dec 2022 12:41:53 +0000 (13:41 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Sat, 31 Dec 2022 12:56:59 +0000 (13:56 +0100)
Fix cannot build: Reference to non-existent node or label
"macaddr_factory_e000" dtb compilation error.

The cherry-pick had to be reworked to use the old mtd-mac-address way as
openwrt-21.02 still wasn't migrated to nvmem implementation.

Fixes: d604032c2a50 ("ramips: fix GB-PC1 and GB-PC2 device support")
Fixes: #11654
Fixes: #11385
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
[ rework commit message, add more fixes tag ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts

index 8d0eaee1d4fca7ff91bcff3eb8b36df9e685615b..e27c4e4d47beb6f6271abe2ebc9110485f216f22 100644 (file)
        label = "ethyellow";
        phy-handle = <&ethphy5>;
 
-       nvmem-cells = <&macaddr_factory_e000>;
-       nvmem-cell-names = "mac-address";
+       mtd-mac-address = <&factory 0xe000>;
 };
 
 &mdio {