ramips: fix dtc warnings
[openwrt/openwrt.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 poll-interval = <20>;
45
46 reset_wps {
47 label = "reset_wps";
48 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
50 };
51
52 mode {
53 label = "mode";
54 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
55 linux,code = <BTN_0>;
56 };
57 };
58 };
59
60 &pinctrl {
61 state_default: pinctrl0 {
62 gpio {
63 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
64 ralink,function = "gpio";
65 };
66 };
67 };
68
69 &esw {
70 mediatek,portmap = <0x2f>;
71 };
72
73 &wmac {
74 ralink,mtd-eeprom = <&factory 0>;
75 };
76
77 &otg {
78 status = "okay";
79 };