lantiq: vgv7510kw22: use NVMEM for mac addresses
authorRosen Penev <rosenp@gmail.com>
Thu, 15 Aug 2024 19:57:51 +0000 (12:57 -0700)
committerRobert Marko <robimarko@gmail.com>
Sat, 24 Aug 2024 10:43:33 +0000 (12:43 +0200)
Userspace handling is deprecated.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16230
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_arcadyan_vgv7510kw22.dtsi
target/linux/lantiq/xrx200/base-files/etc/board.d/02_network

index daf115088bdd5a952e0b683fd27350939c476b02..5ef6a4cc9eeeaab677cc50b4bb9b9a7e4065d2c3 100644 (file)
                label = "wan";
                phy-mode = "mii";
                phy-handle = <&phy1>;
+
+               nvmem-cells = <&macaddr_boardconfig_16 2>;
+               nvmem-cell-names = "mac-address";
        };
        port@2 {
                reg = <2>;
index 2208752c1423c56928bc643f2831554d889c3754..27a3c75edc44c71b855c68de192d74b82e41f96c 100644 (file)
@@ -110,10 +110,6 @@ lantiq_setup_macs()
                lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
                wan_mac=$(macaddr_add "$lan_mac" 1)
                ;;
-       arcadyan,vgv7510kw22-brn|\
-       arcadyan,vgv7510kw22-nor)
-               wan_mac=$(macaddr_add "$(mtd_get_mac_binary board_config 0x16)" 2)
-               ;;
        arcadyan,vgv7519-brn|\
        arcadyan,vgv7519-nor|\
        arcadyan,vrv9510kwac23)