[openwrt/openwrt] rampis: fix Reference to non-existent node for GB-PC2

LEDE Commits lede-commits at lists.infradead.org
Sat Dec 31 04:58:41 PST 2022


ansuel pushed a commit to openwrt/openwrt.git, branch openwrt-21.02:
https://git.openwrt.org/76c9c2b113a8d372b4b4c1a5ccc941fb895dbdf5

commit 76c9c2b113a8d372b4b4c1a5ccc941fb895dbdf5
Author: Arınç ÜNAL <arinc.unal at arinc9.com>
AuthorDate: Sat Dec 31 13:41:53 2022 +0100

    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: d604032c2a50 ("ramips: fix GB-PC1 and GB-PC2 device support")
    Fixes: #11654
    Fixes: #11385
    Signed-off-by: Arınç ÜNAL <arinc.unal at arinc9.com>
    [ rework commit message, add more fixes tag ]
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts b/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts
index 8d0eaee1d4..e27c4e4d47 100644
--- a/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts
+++ b/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts
@@ -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 {




More information about the lede-commits mailing list