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