ramips: rework and fix m25p80 chunked-io support
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621.dtsi
1 / {
2 #address-cells = <1>;
3 #size-cells = <1>;
4 compatible = "mediatek,mtk7621-soc";
5
6 cpus {
7 cpu@0 {
8 compatible = "mips,mips1004Kc";
9 };
10
11 cpu@1 {
12 compatible = "mips,mips1004Kc";
13 };
14 };
15
16 cpuintc: cpuintc@0 {
17 #address-cells = <0>;
18 #interrupt-cells = <1>;
19 interrupt-controller;
20 compatible = "mti,cpu-interrupt-controller";
21 };
22
23 palmbus@1E000000 {
24 compatible = "palmbus";
25 reg = <0x1E000000 0x100000>;
26 ranges = <0x0 0x1E000000 0x0FFFFF>;
27
28 #address-cells = <1>;
29 #size-cells = <1>;
30
31 sysc@0 {
32 compatible = "mtk,mt7621-sysc";
33 reg = <0x0 0x100>;
34 };
35
36 wdt@100 {
37 compatible = "mtk,mt7621-wdt";
38 reg = <0x100 0x100>;
39 };
40
41 gpio@600 {
42 #address-cells = <1>;
43 #size-cells = <0>;
44
45 compatible = "mtk,mt7621-gpio";
46 reg = <0x600 0x100>;
47
48 gpio0: bank@0 {
49 reg = <0>;
50 compatible = "mtk,mt7621-gpio-bank";
51 gpio-controller;
52 #gpio-cells = <2>;
53 };
54
55 gpio1: bank@1 {
56 reg = <1>;
57 compatible = "mtk,mt7621-gpio-bank";
58 gpio-controller;
59 #gpio-cells = <2>;
60 };
61
62 gpio2: bank@2 {
63 reg = <2>;
64 compatible = "mtk,mt7621-gpio-bank";
65 gpio-controller;
66 #gpio-cells = <2>;
67 };
68 };
69
70 memc@5000 {
71 compatible = "mtk,mt7621-memc";
72 reg = <0x300 0x100>;
73 };
74
75 uartlite@c00 {
76 compatible = "ns16550a";
77 reg = <0xc00 0x100>;
78
79 interrupt-parent = <&gic>;
80 interrupts = <26>;
81
82 reg-shift = <2>;
83 reg-io-width = <4>;
84 no-loopback-test;
85 };
86
87 spi@b00 {
88 status = "okay";
89
90 compatible = "ralink,mt7621-spi";
91 reg = <0xb00 0x100>;
92
93 resets = <&rstctrl 18>;
94 reset-names = "spi";
95
96 #address-cells = <1>;
97 #size-cells = <1>;
98
99 pinctrl-names = "default";
100 pinctrl-0 = <&spi_pins>;
101
102 m25p80@0 {
103 #address-cells = <1>;
104 #size-cells = <1>;
105 reg = <0 0>;
106 spi-max-frequency = <10000000>;
107 m25p,chunked-io = <32>;
108 };
109 };
110 };
111
112 pinctrl {
113 compatible = "ralink,rt2880-pinmux";
114 pinctrl-names = "default";
115 pinctrl-0 = <&state_default>;
116 state_default: pinctrl0 {
117 };
118 spi_pins: spi {
119 spi {
120 ralink,group = "spi";
121 ralink,function = "spi";
122 };
123 };
124 i2c_pins: i2c {
125 i2c {
126 lantiq,group = "i2c";
127 lantiq,function = "i2c";
128 };
129 };
130 uart1_pins: uart1 {
131 uart1 {
132 ralink,group = "uart1";
133 ralink,function = "uart";
134 };
135 };
136 uart2_pins: uart2 {
137 uart2 {
138 ralink,group = "uart2";
139 ralink,function = "uart";
140 };
141 };
142 uart3_pins: uart3 {
143 uart3 {
144 ralink,group = "uart3";
145 ralink,function = "uart";
146 };
147 };
148 rgmii1_pins: rgmii1 {
149 rgmii1 {
150 ralink,group = "rgmii1";
151 ralink,function = "rgmii";
152 };
153 };
154 rgmii2_pins: rgmii2 {
155 rgmii2 {
156 ralink,group = "rgmii2";
157 ralink,function = "rgmii";
158 };
159 };
160 mdio_pins: mdio {
161 mdio {
162 ralink,group = "mdio";
163 ralink,function = "mdio";
164 };
165 };
166 pcie_pins: pcie {
167 pcie {
168 ralink,group = "pcie";
169 ralink,function = "pcie rst";
170 };
171 };
172 nand_pins: nand {
173 spi-nand {
174 ralink,group = "spi";
175 ralink,function = "nand";
176 };
177 sdhci-nand {
178 ralink,group = "sdhci";
179 ralink,function = "nand";
180 };
181 };
182 sdhci_pins: sdhci {
183 sdhci {
184 ralink,group = "sdhci";
185 ralink,function = "sdhci";
186 };
187 };
188 };
189
190 rstctrl: rstctrl {
191 compatible = "ralink,rt2880-reset";
192 #reset-cells = <1>;
193 };
194
195 sdhci@1E130000 {
196 compatible = "ralink,mt7620-sdhci";
197 reg = <0x1E130000 4000>;
198
199 interrupt-parent = <&gic>;
200 interrupts = <20>;
201 };
202
203 xhci@1E1C0000 {
204 compatible = "xhci-platform";
205 reg = <0x1E1C0000 4000>;
206
207 interrupt-parent = <&gic>;
208 interrupts = <22>;
209 };
210
211 gic: gic@1fbc0000 {
212 #address-cells = <0>;
213 #interrupt-cells = <1>;
214 interrupt-controller;
215 compatible = "ralink,mt7621-gic";
216 reg = < 0x1fbc0000 0x80 /* gic */
217 0x1fbf0000 0x8000 /* cpc */
218 0x1fbf8000 0x8000 /* gpmc */
219 >;
220 };
221
222 nand@1e003000 {
223 compatible = "mtk,mt7621-nand";
224 bank-width = <2>;
225 reg = <0x1e003000 0x800
226 0x1e003800 0x800>;
227 #address-cells = <1>;
228 #size-cells = <1>;
229
230 partition@0 {
231 label = "uboot";
232 reg = <0x00000 0x80000>; /* 64 KB */
233 };
234 partition@80000 {
235 label = "uboot_env";
236 reg = <0x80000 0x80000>; /* 64 KB */
237 };
238 partition@100000 {
239 label = "factory";
240 reg = <0x100000 0x40000>;
241 };
242 partition@140000 {
243 label = "rootfs";
244 reg = <0x140000 0xec0000>;
245 };
246 };
247
248 ethernet@1e100000 {
249 compatible = "ralink,mt7621-eth";
250 reg = <0x1e100000 10000>;
251
252 #address-cells = <1>;
253 #size-cells = <0>;
254
255 interrupt-parent = <&gic>;
256 interrupts = <3>;
257
258 mdio-bus {
259 #address-cells = <1>;
260 #size-cells = <0>;
261
262 phy1f: ethernet-phy@1f {
263 reg = <0x1f>;
264 phy-mode = "rgmii";
265 };
266 };
267 };
268
269 gsw@1e110000 {
270 compatible = "ralink,mt7620a-gsw";
271 reg = <0x1e110000 8000>;
272 interrupt-parent = <&gic>;
273 interrupts = <23>;
274 };
275 };