From 32adbfc789f6113fa6a297de71d36df32fcb8324 Mon Sep 17 00:00:00 2001 From: Ansuel Smith Date: Sun, 18 Jul 2021 19:37:39 +0200 Subject: bmips: convert mtd-mac-address to nvmem implementation Define nvmem-cells and convert mtd-mac-address to nvmem implementation. The conversion is done with an automated script. Signed-off-by: Ansuel Smith --- target/linux/bmips/dts/bcm6368-comtrend-vr-3025u.dts | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'target/linux/bmips/dts/bcm6368-comtrend-vr-3025u.dts') diff --git a/target/linux/bmips/dts/bcm6368-comtrend-vr-3025u.dts b/target/linux/bmips/dts/bcm6368-comtrend-vr-3025u.dts index b4d2047cd8..29d8dfd56e 100644 --- a/target/linux/bmips/dts/bcm6368-comtrend-vr-3025u.dts +++ b/target/linux/bmips/dts/bcm6368-comtrend-vr-3025u.dts @@ -63,8 +63,9 @@ pci-bus = <0>; pci-dev = <1>; - mtd-mac-address = <&cfe 0x6a0>; - mtd-mac-address-increment = <1>; + nvmem-cells = <&macaddr_cfe_6a0>; + nvmem-cell-names = "mac-address"; + mac-address-increment = <1>; brcm,sprom-fixups = <97 0xfeb3>, <98 0x1618>, @@ -82,7 +83,8 @@ ðernet { status = "okay"; - mtd-mac-address = <&cfe 0x6a0>; + nvmem-cells = <&macaddr_cfe_6a0>; + nvmem-cell-names = "mac-address"; }; &ohci { @@ -165,3 +167,13 @@ &usbh { status = "okay"; }; + +&cfe { + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_cfe_6a0: macaddr@6a0 { + reg = <0x6a0 0x6>; + }; +}; -- cgit v1.2.3