diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2021-04-02 23:38:11 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2021-07-19 14:51:22 +0200 |
commit | 0458a8993ca1c1594bc19d247909324f157abeef (patch) | |
tree | 5e3fb05301150bdfc0062656c8449defec6363c9 /target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-unifi-ac-hd.dts | |
parent | d284e6ef0f06551bad5696f16f26e6ff27b065d4 (diff) | |
download | upstream-0458a8993ca1c1594bc19d247909324f157abeef.tar.gz upstream-0458a8993ca1c1594bc19d247909324f157abeef.tar.bz2 upstream-0458a8993ca1c1594bc19d247909324f157abeef.zip |
ipq806x: 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/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-unifi-ac-hd.dts')
-rw-r--r-- | target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-unifi-ac-hd.dts | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-unifi-ac-hd.dts b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-unifi-ac-hd.dts index d6ac1fef1d..a50204fee1 100644 --- a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-unifi-ac-hd.dts +++ b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-unifi-ac-hd.dts @@ -250,7 +250,8 @@ phy-mode = "sgmii"; qcom,id = <1>; - mtd-mac-address = <&eeprom 0x6>; + nvmem-cells = <&macaddr_eeprom_6>; + nvmem-cell-names = "mac-address"; }; &gmac2 { @@ -261,7 +262,8 @@ phy-mode = "sgmii"; qcom,id = <2>; - mtd-mac-address = <&eeprom 0x0>; + nvmem-cells = <&macaddr_eeprom_0>; + nvmem-cell-names = "mac-address"; }; &pcie0 { @@ -299,3 +301,17 @@ &usb3_1 { status = "okay"; }; + +&eeprom { + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_eeprom_0: macaddr@0 { + reg = <0x0 0x6>; + }; + + macaddr_eeprom_6: macaddr@6 { + reg = <0x6 0x6>; + }; +}; |