X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2Fmt7628an_tplink_tl-wr840n-v4.dts;h=e480395ffd46fbe9dee5a724d1faab6f1e8a183b;hb=ffa40fcc7fe1aee041775e097bccecb9be83cd21;hp=32d4cdf4ebe6bbb939f366764a359c216e7a5bab;hpb=556ff0987539271647535094309605433f2aa96f;p=openwrt%2Fopenwrt.git diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts index 32d4cdf4eb..e480395ffd 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts @@ -1,10 +1,5 @@ -/dts-v1/; - #include "mt7628an_tplink_8m.dtsi" -#include -#include - / { compatible = "tplink,tl-wr840n-v4", "mediatek,mt7628an-soc"; model = "TP-Link TL-WR840N v4"; @@ -21,7 +16,7 @@ reset { label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + gpios = <&gpio 38 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -30,37 +25,54 @@ compatible = "gpio-leds"; lan { - label = "tl-wr840n-v4:green:lan"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + label = "green:lan"; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "tl-wr840n-v4:green:power"; - gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; + label = "green:power"; + gpios = <&gpio 36 GPIO_ACTIVE_LOW>; }; wan { - label = "tl-wr840n-v4:green:wan"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + label = "green:wan"; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wlan { - label = "tl-wr840n-v4:green:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + label = "green:wlan"; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wps { - label = "tl-wr840n-v4:green:wps"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + label = "green:wps"; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "p0led_an", "p2led_an", "perst", "refclk", "wdt", "wled_an"; - ralink,function = "gpio"; - }; +&ehci { + status = "disabled"; +}; + +&ohci { + status = "disabled"; +}; + +&state_default { + gpio { + groups = "p0led_an", "p2led_an", "perst", "refclk", "wdt", "wled_an"; + function = "gpio"; }; }; + +&wmac { + status = "okay"; + + nvmem-cells = <&eeprom_factory_20000>, <&macaddr_factory_f100 0>; + nvmem-cell-names = "eeprom", "mac-address"; +}; + +&esw { + mediatek,portmap = <0x3e>; +};