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