diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2021-04-02 23:52:21 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2021-07-19 14:51:22 +0200 |
commit | 8ec21d6bb2101d801f1ee915d1cd0412c6585078 (patch) | |
tree | d51a7108783f926b6463f0c546db28303c411c28 /target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts | |
parent | 293d4e61c2f500222d971fbc4b45133604638c66 (diff) | |
download | upstream-8ec21d6bb2101d801f1ee915d1cd0412c6585078.tar.gz upstream-8ec21d6bb2101d801f1ee915d1cd0412c6585078.tar.bz2 upstream-8ec21d6bb2101d801f1ee915d1cd0412c6585078.zip |
mpc85xx: 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/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts')
-rw-r--r-- | target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts index 10bb353683..97f5b7c7b7 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts @@ -165,7 +165,8 @@ status = "okay"; phy-handle = <&phy0>; phy-connection-type = "rgmii-id"; - mtd-mac-address = <&hwinfo 0>; + nvmem-cells = <&macaddr_hwinfo_0>; + nvmem-cell-names = "mac-address"; }; enet1: ethernet@b1000 { @@ -176,7 +177,8 @@ status = "okay"; phy-handle = <&phy1>; phy-connection-type = "rgmii-id"; - mtd-mac-address = <&hwinfo 0>; + nvmem-cells = <&macaddr_hwinfo_0>; + nvmem-cell-names = "mac-address"; mac-address-increment = <1>; }; @@ -234,3 +236,13 @@ }; }; /include/ "fsl/p1020si-post.dtsi" + +&hwinfo { + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_hwinfo_0: macaddr@0 { + reg = <0x0 0x6>; + }; +}; |