X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2Fmt7628an_tplink_tl-wr842n-v5.dts;h=7b8b258655d2e52d1df3e1a788727c142df4f807;hb=HEAD;hp=93e93dcd633c5655cd65a426a1c09b0296199d05;hpb=0b68d081eb598c1a5a1cfb13d1494d9228c67b05;p=openwrt%2Fopenwrt.git diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts index 93e93dcd63..0ded67a1a6 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts @@ -1,4 +1,4 @@ -/dts-v1/; +#include #include "mt7628an_tplink_8m.dtsi" @@ -33,57 +33,63 @@ compatible = "gpio-leds"; lan { - label = "tl-wr842n-v5:green:lan"; + function = LED_FUNCTION_LAN; + color = ; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "tl-wr842n-v5:green:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&gpio 2 GPIO_ACTIVE_LOW>; }; usb { - label = "tl-wr842n-v5:green:usb"; + function = LED_FUNCTION_USB; + color = ; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wan { - label = "tl-wr842n-v5:green:wan"; + function = LED_FUNCTION_WAN; + color = ; gpios = <&gpio 5 GPIO_ACTIVE_LOW>; }; wan_amber { - label = "tl-wr842n-v5:amber:wan"; + function = LED_FUNCTION_WAN; + color = ; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; wlan { - label = "tl-wr842n-v5:green:wlan"; + function = LED_FUNCTION_WLAN; + color = ; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wps { - label = "tl-wr842n-v5:green:wps"; + function = LED_FUNCTION_WPS; + color = ; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; }; }; -&ehci { - status = "okay"; +&state_default { + gpio { + groups = "i2c", "i2s", "p2led_an", "refclk", "uart1", "wdt", "wled_an"; + function = "gpio"; + }; }; -&ohci { +&wmac { status = "okay"; -}; -&state_default { - gpio { - ralink,group = "i2c", "i2s", "p2led_an", "refclk", "uart1", "wdt", "wled_an"; - ralink,function = "gpio"; - }; + nvmem-cells = <&eeprom_factory_20000>, <&macaddr_factory_f100 0>; + nvmem-cell-names = "eeprom", "mac-address"; }; &esw {