ramips: remove redundant status for USB controllers
[openwrt/openwrt.git] / target / linux / ramips / dts / rt5350_vocore_vocore.dtsi
1 #include "rt5350.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4
5 / {
6 compatible = "vocore,vocore", "ralink,rt5350-soc";
7
8 aliases {
9 led-boot = &led_status;
10 led-failsafe = &led_status;
11 led-running = &led_status;
12 led-upgrade = &led_status;
13 label-mac-device = &ethernet;
14 };
15
16 gpio-export {
17 compatible = "gpio-export";
18 #size-cells = <0>;
19
20 gpio0 {
21 gpio-export,name = "gpio0";
22 gpio-export,direction_may_change = <1>;
23 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
24 };
25
26 /* UARTF */
27 gpio7 {
28 /* UARTF_RTS_N */
29 gpio-export,name = "gpio7";
30 gpio-export,direction_may_change = <1>;
31 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
32 };
33
34 gpio8 {
35 /* UARTF_TXD */
36 gpio-export,name = "gpio8";
37 gpio-export,direction_may_change = <1>;
38 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
39 };
40
41 gpio9 {
42 /* UARTF_CTS_N */
43 gpio-export,name = "gpio9";
44 gpio-export,direction_may_change = <1>;
45 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
46 };
47
48 gpio12 {
49 /* UARTF_DCD_N */
50 gpio-export,name = "gpio12";
51 gpio-export,direction_may_change = <1>;
52 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
53 };
54
55 gpio13 {
56 /* UARTF_DSR_N */
57 gpio-export,name = "gpio13";
58 gpio-export,direction_may_change = <1>;
59 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
60 };
61
62 gpio14 {
63 /* UARTF_RIN */
64 gpio-export,name = "gpio14";
65 gpio-export,direction_may_change = <1>;
66 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
67 };
68
69 /* JTAG */
70 gpio17 {
71 /* JTAG_TDO */
72 gpio-export,name = "gpio17";
73 gpio-export,direction_may_change = <1>;
74 gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
75 };
76
77 gpio18 {
78 /* JTAG_TDI */
79 gpio-export,name = "gpio18";
80 gpio-export,direction_may_change = <1>;
81 gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
82 };
83
84 gpio19 {
85 /* JTAG_TMS */
86 gpio-export,name = "gpio19";
87 gpio-export,direction_may_change = <1>;
88 gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
89 };
90
91 gpio20 {
92 /* JTAG_TCLK */
93 gpio-export,name = "gpio20";
94 gpio-export,direction_may_change = <1>;
95 gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
96 };
97
98 gpio21 {
99 /* JTAG_TRST_N */
100 gpio-export,name = "gpio21";
101 gpio-export,direction_may_change = <1>;
102 gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
103 };
104
105 /* ETH LEDs */
106 gpio22 {
107 /* ETH0_LED */
108 gpio-export,name = "gpio22";
109 gpio-export,direction_may_change = <1>;
110 gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
111 };
112
113 gpio23 {
114 /* ETH1_LED */
115 gpio-export,name = "gpio23";
116 gpio-export,direction_may_change = <1>;
117 gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
118 };
119
120 gpio24 {
121 /* ETH2_LED */
122 gpio-export,name = "gpio24";
123 gpio-export,direction_may_change = <1>;
124 gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
125 };
126
127 gpio25 {
128 /* ETH3_LED */
129 gpio-export,name = "gpio25";
130 gpio-export,direction_may_change = <1>;
131 gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
132 };
133
134 gpio26 {
135 /* ETH4_LED */
136 gpio-export,name = "gpio26";
137 gpio-export,direction_may_change = <1>;
138 gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
139 };
140 };
141
142 leds {
143 compatible = "gpio-leds";
144
145 led_status: status {
146 /* UARTF_RXD */
147 label = "green:status";
148 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
149 };
150
151 eth {
152 /* UARTF_DTR_N */
153 label = "orange:eth";
154 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
155 };
156 };
157 };
158
159 &gpio1 {
160 status = "okay";
161 };
162
163 &i2c {
164 status = "okay";
165 };
166
167 &state_default {
168 gpio {
169 groups = "jtag", "uartf", "led";
170 function = "gpio";
171 };
172 };
173
174 &ethernet {
175 mtd-mac-address = <&factory 0x4>;
176 };
177
178 &esw {
179 mediatek,portmap = <0x11>;
180 mediatek,portdisable = <0x2e>;
181 };
182
183 &wmac {
184 ralink,mtd-eeprom = <&factory 0x0>;
185 };
186
187 &spi1 {
188 status = "okay";
189
190 spidev@0 {
191 compatible = "linux,spidev";
192 spi-max-frequency = <10000000>;
193 reg = <0>;
194 };
195 };