X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2Fmt7621_netgear_wndr3700-v5.dts;h=8252d2b9ff7d8d81aa41c42a8d789cd272235808;hb=f025135f16e2b3e9398cfd87585d055a1ca31975;hp=41688989dc85e6282be3db3c6876d8a0d48e5ae9;hpb=0cfdc7d44602aa07312aac8fd507719c6d9cd119;p=openwrt%2Fopenwrt.git diff --git a/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts b/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts index 41688989dc..8252d2b9ff 100644 --- a/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts +++ b/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts @@ -1,31 +1,14 @@ // SPDX-License-Identifier: GPL-2.0-only -/dts-v1/; #include "mt7621_netgear_sercomm_ayx.dtsi" / { compatible = "netgear,wndr3700-v5", "mediatek,mt7621-soc"; model = "Netgear WNDR3700 v5"; -}; - -&led_power { - label = "wndr3700-v5:green:power"; -}; - -&led_usb { - label = "wndr3700-v5:green:usb"; -}; - -&led_internet { - label = "wndr3700-v5:green:wan"; -}; - -&led_wifi { - label = "wndr3700-v5:green:wifi"; -}; -&led_wps { - label = "wndr3700-v5:green:wps"; + aliases { + label-mac-device = &gmac0; + }; }; &spi0 { @@ -57,6 +40,26 @@ label = "factory"; reg = <0xf30000 0x10000>; read-only; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + eeprom0: eeprom@0 { + reg = <0x0 0x400>; + }; + + macaddr_factory_4: macaddr@4 { + compatible = "mac-base"; + reg = <0x4 0x6>; + #nvmem-cell-cells = <1>; + }; + + eeprom1: eeprom@8000 { + reg = <0x8000 0x200>; + }; + }; }; partition@50000 { @@ -67,3 +70,13 @@ }; }; }; + +&gmac0 { + nvmem-cells = <&macaddr_factory_4 0>; + nvmem-cell-names = "mac-address"; +}; + +&gmac1 { + nvmem-cells = <&macaddr_factory_4 1>; + nvmem-cell-names = "mac-address"; +};