diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2021-07-18 19:37:39 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2021-07-19 14:51:22 +0200 |
commit | 32adbfc789f6113fa6a297de71d36df32fcb8324 (patch) | |
tree | b726218b09be6bf806c27828b5818c090af60947 /target/linux/bmips/dts/bcm6318-comtrend-ar-5315u.dts | |
parent | 821b6640994df32d20a087a01b7c368187a93c24 (diff) | |
download | upstream-32adbfc789f6113fa6a297de71d36df32fcb8324.tar.gz upstream-32adbfc789f6113fa6a297de71d36df32fcb8324.tar.bz2 upstream-32adbfc789f6113fa6a297de71d36df32fcb8324.zip |
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 <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux/bmips/dts/bcm6318-comtrend-ar-5315u.dts')
-rw-r--r-- | target/linux/bmips/dts/bcm6318-comtrend-ar-5315u.dts | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/target/linux/bmips/dts/bcm6318-comtrend-ar-5315u.dts b/target/linux/bmips/dts/bcm6318-comtrend-ar-5315u.dts index 0a53ece140..a54d632770 100644 --- a/target/linux/bmips/dts/bcm6318-comtrend-ar-5315u.dts +++ b/target/linux/bmips/dts/bcm6318-comtrend-ar-5315u.dts @@ -42,8 +42,9 @@ pci-bus = <1>; pci-dev = <0>; - 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 = <6 0x1c00>, <65 0x1255>, @@ -66,7 +67,8 @@ ðernet { status = "okay"; - mtd-mac-address = <&cfe 0x6a0>; + nvmem-cells = <&macaddr_cfe_6a0>; + nvmem-cell-names = "mac-address"; }; &hsspi { @@ -243,3 +245,13 @@ &usbh { status = "okay"; }; + +&cfe { + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_cfe_6a0: macaddr@6a0 { + reg = <0x6a0 0x6>; + }; +}; |