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-ipq8065-rt4230w-rev6.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-ipq8065-rt4230w-rev6.dts')
-rw-r--r-- | target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-rt4230w-rev6.dts | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-rt4230w-rev6.dts b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-rt4230w-rev6.dts index 7342de4bec..54356e2ff1 100644 --- a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-rt4230w-rev6.dts +++ b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-rt4230w-rev6.dts @@ -251,7 +251,8 @@ phy-mode = "rgmii"; qcom,id = <0>; - mtd-mac-address = <&ART 0x0>; + nvmem-cells = <&macaddr_ART_0>; + nvmem-cell-names = "mac-address"; pinctrl-0 = <&rgmii2_pins>; pinctrl-names = "default"; @@ -267,7 +268,8 @@ phy-mode = "sgmii"; qcom,id = <1>; - mtd-mac-address = <&ART 0x6>; + nvmem-cells = <&macaddr_ART_6>; + nvmem-cell-names = "mac-address"; fixed-link { speed = <1000>; @@ -301,3 +303,17 @@ /delete-property/ perst-gpios; force_gen1 = <1>; }; + +&ART { + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_ART_0: macaddr@0 { + reg = <0x0 0x6>; + }; + + macaddr_ART_6: macaddr@6 { + reg = <0x6 0x6>; + }; +}; |