X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2Fmt7628an_tplink_tl-wr840n-v5.dts;h=3e639668bbaa0df62e7d7bbf0593507d1549dfe9;hb=e8084a3c3b94adcff6c9f62554cf8d9d1871fe25;hp=93869381cf1e104ac0a67ccf261821f18dc03d6b;hpb=b6d53f1d02f0e9d6fce8df28b08b9ce51240c700;p=openwrt%2Fopenwrt.git diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts index 93869381cf..3e639668bb 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts @@ -1,5 +1,3 @@ -/dts-v1/; - #include "mt7628an.dtsi" #include @@ -25,7 +23,7 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -35,13 +33,13 @@ compatible = "gpio-leds"; led_power_green: power { - label = "tl-wr840n-v5:green:power"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + label = "green:power"; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; orange { - label = "tl-wr840n-v5:orange:power"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + label = "orange:power"; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; }; }; @@ -49,7 +47,7 @@ &spi0 { status = "okay"; - m25p80@0 { + flash@0 { compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <10000000>; @@ -75,6 +73,20 @@ label = "factory"; reg = <0x3f0000 0x10000>; read-only; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + eeprom_factory_0: eeprom@0 { + reg = <0x0 0x400>; + }; + + macaddr_factory_f100: macaddr@f100 { + reg = <0xf100 0x6>; + }; + }; }; }; }; @@ -90,19 +102,23 @@ &wmac { status = "okay"; - mtd-mac-address = <&factory 0xf100>; + + nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_f100>; + nvmem-cell-names = "eeprom", "mac-address"; }; ðernet { - mtd-mac-address = <&factory 0xf100>; - mediatek,portmap = "wllll"; + nvmem-cells = <&macaddr_factory_f100>; + nvmem-cell-names = "mac-address"; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "p0led_an", "p2led_an", "perst"; - ralink,function = "gpio"; - }; +&esw { + mediatek,portmap = <0x3e>; +}; + +&state_default { + gpio { + groups = "p0led_an", "p2led_an", "perst"; + function = "gpio"; }; };