X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2FWR512-3GN-8M.dts;h=7e9a0c25ed2314d1d501b2382f0b7c6681e5c366;hb=05912a304c1d3f31f350cd708fe4722389ec835a;hp=20a325cd71c1b6dcf2d3dbf4e50331e5ff96bfd4;hpb=f44d3f99803be7ba5c38b26a2d8cbda1c301e893;p=oweals%2Fopenwrt.git diff --git a/target/linux/ramips/dts/WR512-3GN-8M.dts b/target/linux/ramips/dts/WR512-3GN-8M.dts index 20a325cd71..7e9a0c25ed 100644 --- a/target/linux/ramips/dts/WR512-3GN-8M.dts +++ b/target/linux/ramips/dts/WR512-3GN-8M.dts @@ -1,24 +1,14 @@ /dts-v1/; -/include/ "rt3050.dtsi" +#include "rt3050.dtsi" / { compatible = "WR512-3GN", "ralink,rt3052-soc"; model = "WR512-3GN-like router"; - pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; - }; - cfi@1f000000 { compatible = "cfi-flash"; reg = <0x1f000000 0x800000>; - bank-width = <2>; device-width = <2>; #address-cells = <1>; @@ -48,34 +38,31 @@ }; }; - esw@10110000 { - ralink,portmap = <0x2f>; - }; - - wmac@10180000 { - ralink,mtd-eeprom = <&factory 0>; - }; - gpio-leds { compatible = "gpio-leds"; + 3g { - label = "wr512:green:3g"; + label = "wr512-3gn:green:3g"; gpios = <&gpio0 9 1>; }; + gateway { - label = "wr512:green:gateway"; + label = "wr512-3gn:green:gateway"; gpios = <&gpio0 11 1>; }; + ap { - label = "wr512:green:ap"; + label = "wr512-3gn:green:ap"; gpios = <&gpio0 12 1>; }; + wps { - label = "wr512:green:wps"; + label = "wr512-3gn:green:wps"; gpios = <&gpio0 14 1>; }; + station { - label = "wr512:green:station"; + label = "wr512-3gn:green:station"; gpios = <&gpio0 13 1>; }; }; @@ -85,19 +72,38 @@ #address-cells = <1>; #size-cells = <0>; poll-interval = <20>; + reset_wps { label = "reset_wps"; gpios = <&gpio0 10 1>; linux,code = <0x198>; }; + mode { label = "mode"; gpios = <&gpio0 7 1>; linux,code = <0x32>; }; }; +}; - otg@101c0000 { - status = "okay"; +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; }; }; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +};