ramips: add support for the VoCore2 Lite
[openwrt/openwrt.git] / target / linux / ramips / dts / WIZFI630A.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "wiznet,wizfi630a", "ralink,rt5350-soc";
10 model = "WIZnet WizFi630A";
11
12 chosen {
13 bootargs = "console=ttyS1,115200";
14 };
15
16 gpio-export {
17 compatible = "gpio-export";
18 #size-cells = <0>;
19 };
20
21 gpio-leds {
22 compatible = "gpio-leds";
23
24 run {
25 label = "wizfi630a::run";
26 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
27 };
28
29 wps {
30 label = "wizfi630a::wps";
31 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
32 };
33
34 uart1 {
35 label = "wizfi630a::uart1";
36 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
37 };
38
39 uart2 {
40 label = "wizfi630a::uart2";
41 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
42 };
43 };
44
45 gpio-keys-polled {
46 compatible = "gpio-keys-polled";
47 #address-cells = <1>;
48 #size-cells = <0>;
49 poll-interval = <20>;
50
51 reset {
52 label = "reset";
53 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_RESTART>;
55 };
56
57 wps {
58 label = "wps";
59 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_WPS_BUTTON>;
61 };
62
63 scm1 {
64 label = "SCM1";
65 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
66 linux,code = <BTN_0>;
67 };
68
69 scm2 {
70 label = "SCM2";
71 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
72 linux,code = <BTN_1>;
73 };
74 };
75 };
76
77 &gpio1 {
78 status = "okay";
79 };
80
81 &spi0 {
82 status = "okay";
83
84 m25p80@0 {
85 #address-cells = <1>;
86 #size-cells = <1>;
87 compatible = "jedec,spi-nor";
88 reg = <0>;
89 spi-max-frequency = <10000000>;
90
91 partition@0 {
92 #size-cells = <1>;
93 label = "uboot";
94 reg = <0x0 0x30000>;
95 read-only;
96 };
97
98 partition@30000 {
99 #size-cells = <1>;
100 label = "uboot-env";
101 reg = <0x30000 0x10000>;
102 read-only;
103 };
104
105 factory: partition@40000 {
106 #size-cells = <1>;
107 label = "factory";
108 reg = <0x40000 0x10000>;
109 read-only;
110 };
111
112 partition@50000 {
113 #size-cells = <1>;
114 label = "firmware";
115 reg = <0x50000 0xfb0000>;
116 };
117 };
118 };
119
120 &uart {
121 compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
122 reg = <0x500 0x100>;
123 resets = <&rstctrl 12>;
124 reset-names = "uart";
125 interrupt-parent = <&intc>;
126 interrupts = <5>;
127 reg-shift = <2>;
128 pinctrl-names = "default";
129 pinctrl-0 = <&uartf_pins>;
130 status = "okay";
131 };
132
133 &uartlite {
134 compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
135 reg = <0xc00 0x100>;
136 resets = <&rstctrl 19>;
137 reset-names = "uartl";
138 interrupt-parent = <&intc>;
139 interrupts = <12>;
140 reg-shift = <2>;
141 pinctrl-names = "default";
142 pinctrl-0 = <&uartlite_pins>;
143 };
144
145 &pinctrl {
146 state_default: pinctrl0 {
147 gpio {
148 ralink,group = "i2c", "jtag" ;
149 ralink,function = "gpio";
150 };
151 };
152
153 uartf_gpio_pins: uartf_gpio {
154 uartf_gpio {
155 ralink,group = "uartf";
156 ralink,function = "uartf";
157 };
158 };
159
160 uartlite_pins: uartlite {
161 uart {
162 ralink,group = "uartlite";
163 ralink,function = "uartlite";
164 };
165 };
166 };
167
168 &ethernet {
169 mtd-mac-address = <&factory 0x4>;
170 };
171
172 &esw {
173 mediatek,portmap = <0x17>;
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 };