45b2413aa30894e91f310aea2287afbbaa018e4f
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WR512-3GN.dtsi
1 #include "rt3050.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "unbranded,wr512-3gn", "ralink,rt3052-soc";
8
9 aliases {
10 led-status = &led_wps;
11 };
12
13 gpio-leds {
14 compatible = "gpio-leds";
15
16 3g {
17 label = "wr512-3gn:green:3g";
18 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
19 };
20
21 gateway {
22 label = "wr512-3gn:green:gateway";
23 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
24 };
25
26 ap {
27 label = "wr512-3gn:green:ap";
28 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
29 };
30
31 led_wps: wps {
32 label = "wr512-3gn:green:wps";
33 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
34 };
35
36 station {
37 label = "wr512-3gn:green:station";
38 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
39 };
40 };
41
42 gpio-keys-polled {
43 compatible = "gpio-keys-polled";
44 #address-cells = <1>;
45 #size-cells = <0>;
46 poll-interval = <20>;
47
48 reset_wps {
49 label = "reset_wps";
50 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_RESTART>;
52 };
53
54 mode {
55 label = "mode";
56 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
57 linux,code = <BTN_0>;
58 };
59 };
60 };
61
62 &pinctrl {
63 state_default: pinctrl0 {
64 gpio {
65 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
66 ralink,function = "gpio";
67 };
68 };
69 };
70
71 &esw {
72 mediatek,portmap = <0x2f>;
73 };
74
75 &wmac {
76 ralink,mtd-eeprom = <&factory 0>;
77 };
78
79 &otg {
80 status = "okay";
81 };