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