ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / TEW-692GR.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-692gr", "ralink,rt3883-soc";
10 model = "TRENDnet TEW-692GR";
11
12 aliases {
13 led-status = &led_wps_green;
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
64 gpio-leds {
65 compatible = "gpio-leds";
66
67 wps {
68 label = "tew-692gr:orange:wps";
69 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
70 };
71
72 led_wps_green: wps2 {
73 label = "tew-692gr:green:wps";
74 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
75 };
76 };
77 };
78
79 &gpio1 {
80 status = "okay";
81 };
82
83 &pinctrl {
84 state_default: pinctrl0 {
85 gpio {
86 ralink,group = "spi", "i2c", "jtag", "uartf";
87 ralink,function = "gpio";
88 };
89 };
90 };
91
92 &ethernet {
93 status = "okay";
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 qca,ar8327-initvals = <
109 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
110 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
111 0x10 0x40000000 /* Power-on Strapping: 176-pin interface configuration */
112 0x50 0xc437c437 /* LED Control Register 0 */
113 0x54 0xc337c337 /* LED Control Register 1 */
114 0x58 0x00000000 /* LED Control Register 2 */
115 0x5c 0x03ffff00 /* LED Control Register 3 */
116 0x7c 0x0000007e /* PORT0_STATUS */
117 0x94 0x0000007e /* PORT6 STATUS */
118 >;
119 };
120 };
121 };
122
123 &pci {
124 status = "okay";
125 };
126
127 &pci1 {
128 status = "okay";
129
130 wifi@0,0 {
131 compatible = "pci0,0";
132 reg = < 0x10000 0 0 0 0 >;
133 ralink,2ghz = <0>;
134 };
135 };
136
137 &wmac {
138 status = "okay";
139 ralink,mtd-eeprom = <&factory 0x0>;
140 ralink,5ghz = <0>;
141 mtd-mac-address = <&factory 0x4>;
142 mtd-mac-address-increment = <3>;
143 };