rampis: fix Reference to non-existent node for GB-PC2

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: d604032c2a ("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>
This commit is contained in:
Arınç ÜNAL 2022-12-31 13:41:53 +01:00 committed by Christian Marangi
parent 18f05da13d
commit 76c9c2b113
No known key found for this signature in database
GPG Key ID: AC001D09ADBFEAD7

View File

@ -119,8 +119,7 @@
label = "ethyellow";
phy-handle = <&ethphy5>;
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
mtd-mac-address = <&factory 0xe000>;
};
&mdio {