diff options
author | Shiji Yang <yangshiji66@qq.com> | 2023-10-02 11:42:08 +0800 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2023-10-17 12:07:22 +0200 |
commit | 58502650e13d6634d57fe09520ac9773b5eb6dba (patch) | |
tree | 6cc899c1f086d998056e0395dda76eece85d274f /target/linux/ramips/dts/mt7620a_netcore_nw5212.dts | |
parent | c9e6831a8926ff0ce5be5df99b0c95569c6751cf (diff) |
ramips: convert the remaining mtd-mac-address to NVMEM format
`mtd-mac-address` has been abandoned. Therefore, convert them to
NVMEM format. This patch also removes some useless mtd-mac-address
properties.
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Diffstat (limited to 'target/linux/ramips/dts/mt7620a_netcore_nw5212.dts')
-rw-r--r-- | target/linux/ramips/dts/mt7620a_netcore_nw5212.dts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/target/linux/ramips/dts/mt7620a_netcore_nw5212.dts b/target/linux/ramips/dts/mt7620a_netcore_nw5212.dts index 25287ebc0b..e4f8c0f1fe 100644 --- a/target/linux/ramips/dts/mt7620a_netcore_nw5212.dts +++ b/target/linux/ramips/dts/mt7620a_netcore_nw5212.dts @@ -93,9 +93,16 @@ }; factory: partition@40000 { + compatible = "nvmem-cells"; label = "factory"; reg = <0x40000 0x10000>; + #address-cells = <1>; + #size-cells = <1>; read-only; + + macaddr_factory_28: macaddr@28 { + reg = <0x28 0x6>; + }; }; partition@50000 { @@ -115,8 +122,9 @@ }; ðernet { - mtd-mac-address = <&factory 0x28>; mediatek,portmap = "llllw"; + nvmem-cells = <&macaddr_factory_28>; + nvmem-cell-names = "mac-address"; }; &ehci { |