X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2Fmt7620a_glinet_gl-mt300n.dts;h=70d0827ed2bbe23975b541ff316237c681174396;hb=f1aaa267f0ea18ffe5840f3ce46a48be123d2f62;hp=633253fadd7798641ba6c11b3aed85c1ecfaa6fb;hpb=e4ce3109f28712dad3b3db27938a7b853346d9b6;p=openwrt%2Fopenwrt.git diff --git a/target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts b/target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts index 633253fadd..70d0827ed2 100644 --- a/target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts +++ b/target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts @@ -1,5 +1,3 @@ -/dts-v1/; - #include "mt7620a.dtsi" #include @@ -59,14 +57,6 @@ }; }; -&gpio0 { - status = "okay"; -}; - -&gpio1 { - status = "okay"; -}; - &gpio2 { status = "okay"; }; @@ -78,7 +68,7 @@ &spi0 { status = "okay"; - m25p80@0 { + flash@0 { compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <10000000>; @@ -128,17 +118,29 @@ }; ðernet { - mtd-mac-address = <&factory 0x4000>; + nvmem-cells = <&macaddr_factory_4000>; + nvmem-cell-names = "mac-address"; + mediatek,portmap = "wllll"; }; &wmac { - ralink,mtd-eeprom = <&factory 0>; + ralink,mtd-eeprom = <&factory 0x0>; }; &state_default { gpio { - ralink,group = "wled","ephy","i2c"; - ralink,function = "gpio"; + groups = "wled","ephy","i2c"; + function = "gpio"; + }; +}; + +&factory { + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_factory_4000: macaddr@4000 { + reg = <0x4000 0x6>; }; };