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