ramips: fix dtc warnings
[oweals/openwrt.git] / target / linux / ramips / dts / TEW-691GR.dts
1 /dts-v1/;
2
3 #include "rt3883.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "trendnet,tew-691gr", "ralink,rt3883-soc";
10         model = "TRENDnet TEW-691GR";
11
12         aliases {
13                 led-status = &led_wps;
14         };
15
16         nor-flash@1c000000 {
17                 compatible = "cfi-flash";
18                 reg = <0x1c000000 0x800000>;
19                 bank-width = <2>;
20                 #address-cells = <1>;
21                 #size-cells = <1>;
22
23                 partition@0 {
24                         reg = <0x0 0x0030000>;
25                         label = "u-boot";
26                         read-only;
27                 };
28
29                 partition@30000 {
30                         reg = <0x00030000 0x00010000>;
31                         label = "u-boot-env";
32                         read-only;
33                 };
34
35                 factory: partition@40000 {
36                         reg = <0x00040000 0x00010000>;
37                         label = "factory";
38                         read-only;
39                 };
40
41                 partition@50000 {
42                         reg = <0x00050000 0x007b0000>;
43                         label = "firmware";
44                 };
45         };
46
47         gpio-keys-polled {
48                 compatible = "gpio-keys-polled";
49                 poll-interval = <100>;
50
51                 reset {
52                         label = "reset";
53                         gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
54                         linux,code = <KEY_RESTART>;
55                 };
56
57                 wps {
58                         label = "wps";
59                         gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
60                         linux,code = <KEY_WPS_BUTTON>;
61                 };
62
63                 rfkill {
64                         label = "rfkill";
65                         gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
66                         linux,code = <KEY_RFKILL>;
67                 };
68         };
69
70         gpio-leds {
71                 compatible = "gpio-leds";
72
73                 led_wps: wps {
74                         label = "tew-691gr:green:wps";
75                         gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
76                 };
77         };
78 };
79
80 &gpio1 {
81         status = "okay";
82 };
83
84 &pinctrl {
85         state_default: pinctrl0 {
86                 gpio {
87                         ralink,group = "spi", "i2c", "jtag", "uartf";
88                         ralink,function = "gpio";
89                 };
90         };
91 };
92
93 &ethernet {
94         mtd-mac-address = <&factory 0x4>;
95
96         port@0 {
97                 phy-handle = <&phy0>;
98                 phy-mode = "rgmii";
99         };
100
101         mdio-bus {
102                 status = "okay";
103
104                 phy0: ethernet-phy@0 {
105                         reg = <0>;
106                         phy-mode = "rgmii";
107                 };
108         };
109 };
110
111 &wmac {
112         status = "okay";
113         ralink,mtd-eeprom = <&factory 0x0>;
114         ralink,5ghz = <0>;
115         mtd-mac-address = <&factory 0x4>;
116         mtd-mac-address-increment = <1>;
117 };