2 * Copyright (C) 2013 STMicroelectronics (R&D) Limited.
3 * Author: Srinivas Kandagatla <srinivas.kandagatla@st.com>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * publishhed by the Free Software Foundation.
10 #include <dt-bindings/interrupt-controller/arm-gic.h>
47 compatible = "st,stih415-sbc-pinctrl";
48 st,syscfg = <&syscfg_sbc>;
49 reg = <0xfe61f080 0x4>;
51 interrupts = <GIC_SPI 180 IRQ_TYPE_LEVEL_HIGH>;
52 interrupt-names = "irqmux";
53 ranges = <0 0xfe610000 0x5000>;
59 #interrupt-cells = <2>;
61 st,bank-name = "PIO0";
67 #interrupt-cells = <2>;
69 st,bank-name = "PIO1";
75 #interrupt-cells = <2>;
77 st,bank-name = "PIO2";
83 #interrupt-cells = <2>;
85 st,bank-name = "PIO3";
91 #interrupt-cells = <2>;
93 st,bank-name = "PIO4";
97 pinctrl_sbc_serial1:sbc_serial1 {
99 tx = <&PIO2 6 ALT3 OUT>;
100 rx = <&PIO2 7 ALT3 IN>;
106 pinctrl_keyscan: keyscan {
108 keyin0 = <&PIO0 2 ALT2 IN>;
109 keyin1 = <&PIO0 3 ALT2 IN>;
110 keyin2 = <&PIO0 4 ALT2 IN>;
111 keyin3 = <&PIO2 6 ALT2 IN>;
113 keyout0 = <&PIO1 6 ALT2 OUT>;
114 keyout1 = <&PIO1 7 ALT2 OUT>;
115 keyout2 = <&PIO0 6 ALT2 OUT>;
116 keyout3 = <&PIO2 7 ALT2 OUT>;
122 pinctrl_sbc_i2c0_default: sbc_i2c0-default {
124 sda = <&PIO4 6 ALT1 BIDIR>;
125 scl = <&PIO4 5 ALT1 BIDIR>;
131 pinctrl_sbc_i2c1_default: sbc_i2c1-default {
133 sda = <&PIO3 2 ALT2 BIDIR>;
134 scl = <&PIO3 1 ALT2 BIDIR>;
142 ir = <&PIO4 0 ALT2 IN>;
150 txd0 = <&PIO0 0 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
151 txd1 = <&PIO0 1 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
152 txd2 = <&PIO0 2 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
153 txd3 = <&PIO0 3 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
154 txer = <&PIO0 4 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
155 txen = <&PIO0 5 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
156 txclk = <&PIO0 6 ALT1 IN NICLK 0 CLK_A>;
157 col = <&PIO0 7 ALT1 IN BYPASS 1000>;
158 mdio = <&PIO1 0 ALT1 OUT BYPASS 0>;
159 mdc = <&PIO1 1 ALT1 OUT NICLK 0 CLK_A>;
160 crs = <&PIO1 2 ALT1 IN BYPASS 1000>;
161 mdint = <&PIO1 3 ALT1 IN BYPASS 0>;
162 rxd0 = <&PIO1 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
163 rxd1 = <&PIO1 5 ALT1 IN SE_NICLK_IO 0 CLK_A>;
164 rxd2 = <&PIO1 6 ALT1 IN SE_NICLK_IO 0 CLK_A>;
165 rxd3 = <&PIO1 7 ALT1 IN SE_NICLK_IO 0 CLK_A>;
166 rxdv = <&PIO2 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
167 rx_er = <&PIO2 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
168 rxclk = <&PIO2 2 ALT1 IN NICLK 0 CLK_A>;
169 phyclk = <&PIO2 3 ALT1 IN NICLK 1000 CLK_A>;
173 pinctrl_rgmii1: rgmii1-0 {
175 txd0 = <&PIO0 0 ALT1 OUT DE_IO 1000 CLK_A>;
176 txd1 = <&PIO0 1 ALT1 OUT DE_IO 1000 CLK_A>;
177 txd2 = <&PIO0 2 ALT1 OUT DE_IO 1000 CLK_A>;
178 txd3 = <&PIO0 3 ALT1 OUT DE_IO 1000 CLK_A>;
179 txen = <&PIO0 5 ALT1 OUT DE_IO 0 CLK_A>;
180 txclk = <&PIO0 6 ALT1 IN NICLK 0 CLK_A>;
181 mdio = <&PIO1 0 ALT1 OUT BYPASS 0>;
182 mdc = <&PIO1 1 ALT1 OUT NICLK 0 CLK_A>;
183 rxd0 = <&PIO1 4 ALT1 IN DE_IO 0 CLK_A>;
184 rxd1 = <&PIO1 5 ALT1 IN DE_IO 0 CLK_A>;
185 rxd2 = <&PIO1 6 ALT1 IN DE_IO 0 CLK_A>;
186 rxd3 = <&PIO1 7 ALT1 IN DE_IO 0 CLK_A>;
188 rxdv = <&PIO2 0 ALT1 IN DE_IO 500 CLK_A>;
189 rxclk = <&PIO2 2 ALT1 IN NICLK 0 CLK_A>;
190 phyclk = <&PIO2 3 ALT4 OUT NICLK 0 CLK_B>;
192 clk125= <&PIO3 7 ALT4 IN NICLK 0 CLK_A>;
198 pin-controller-front {
199 #address-cells = <1>;
201 compatible = "st,stih415-front-pinctrl";
202 st,syscfg = <&syscfg_front>;
203 reg = <0xfee0f080 0x4>;
204 reg-names = "irqmux";
205 interrupts = <GIC_SPI 181 IRQ_TYPE_LEVEL_HIGH>;
206 interrupt-names = "irqmux";
207 ranges = <0 0xfee00000 0x8000>;
209 PIO5: gpio@fee00000 {
212 interrupt-controller;
213 #interrupt-cells = <2>;
215 st,bank-name = "PIO5";
217 PIO6: gpio@fee01000 {
220 interrupt-controller;
221 #interrupt-cells = <2>;
222 reg = <0x1000 0x100>;
223 st,bank-name = "PIO6";
225 PIO7: gpio@fee02000 {
228 interrupt-controller;
229 #interrupt-cells = <2>;
230 reg = <0x2000 0x100>;
231 st,bank-name = "PIO7";
233 PIO8: gpio@fee03000 {
236 interrupt-controller;
237 #interrupt-cells = <2>;
238 reg = <0x3000 0x100>;
239 st,bank-name = "PIO8";
241 PIO9: gpio@fee04000 {
244 interrupt-controller;
245 #interrupt-cells = <2>;
246 reg = <0x4000 0x100>;
247 st,bank-name = "PIO9";
249 PIO10: gpio@fee05000 {
252 interrupt-controller;
253 #interrupt-cells = <2>;
254 reg = <0x5000 0x100>;
255 st,bank-name = "PIO10";
257 PIO11: gpio@fee06000 {
260 interrupt-controller;
261 #interrupt-cells = <2>;
262 reg = <0x6000 0x100>;
263 st,bank-name = "PIO11";
265 PIO12: gpio@fee07000 {
268 interrupt-controller;
269 #interrupt-cells = <2>;
270 reg = <0x7000 0x100>;
271 st,bank-name = "PIO12";
275 pinctrl_i2c0_default: i2c0-default {
277 sda = <&PIO9 3 ALT1 BIDIR>;
278 scl = <&PIO9 2 ALT1 BIDIR>;
284 pinctrl_i2c1_default: i2c1-default {
286 sda = <&PIO12 1 ALT1 BIDIR>;
287 scl = <&PIO12 0 ALT1 BIDIR>;
293 pin-controller-rear {
294 #address-cells = <1>;
296 compatible = "st,stih415-rear-pinctrl";
297 st,syscfg = <&syscfg_rear>;
298 reg = <0xfe82f080 0x4>;
299 reg-names = "irqmux";
300 interrupts = <GIC_SPI 182 IRQ_TYPE_LEVEL_HIGH>;
301 interrupt-names = "irqmux";
302 ranges = <0 0xfe820000 0x8000>;
304 PIO13: gpio@fe820000 {
307 interrupt-controller;
308 #interrupt-cells = <2>;
310 st,bank-name = "PIO13";
312 PIO14: gpio@fe821000 {
315 interrupt-controller;
316 #interrupt-cells = <2>;
317 reg = <0x1000 0x100>;
318 st,bank-name = "PIO14";
320 PIO15: gpio@fe822000 {
323 interrupt-controller;
324 #interrupt-cells = <2>;
325 reg = <0x2000 0x100>;
326 st,bank-name = "PIO15";
328 PIO16: gpio@fe823000 {
331 interrupt-controller;
332 #interrupt-cells = <2>;
333 reg = <0x3000 0x100>;
334 st,bank-name = "PIO16";
336 PIO17: gpio@fe824000 {
339 interrupt-controller;
340 #interrupt-cells = <2>;
341 reg = <0x4000 0x100>;
342 st,bank-name = "PIO17";
344 PIO18: gpio@fe825000 {
347 interrupt-controller;
348 #interrupt-cells = <2>;
349 reg = <0x5000 0x100>;
350 st,bank-name = "PIO18";
354 pinctrl_serial2: serial2-0 {
356 tx = <&PIO17 4 ALT2 OUT>;
357 rx = <&PIO17 5 ALT2 IN>;
365 mdint = <&PIO13 6 ALT2 IN BYPASS 0>;
366 txen = <&PIO13 7 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
368 txd0 = <&PIO14 0 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
369 txd1 = <&PIO14 1 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
370 txd2 = <&PIO14 2 ALT2 OUT SE_NICLK_IO 0 CLK_B>;
371 txd3 = <&PIO14 3 ALT2 OUT SE_NICLK_IO 0 CLK_B>;
373 txclk = <&PIO15 0 ALT2 IN NICLK 0 CLK_A>;
374 txer = <&PIO15 1 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
375 crs = <&PIO15 2 ALT2 IN BYPASS 1000>;
376 col = <&PIO15 3 ALT2 IN BYPASS 1000>;
377 mdio = <&PIO15 4 ALT2 OUT BYPASS 3000>;
378 mdc = <&PIO15 5 ALT2 OUT NICLK 0 CLK_B>;
380 rxd0 = <&PIO16 0 ALT2 IN SE_NICLK_IO 0 CLK_A>;
381 rxd1 = <&PIO16 1 ALT2 IN SE_NICLK_IO 0 CLK_A>;
382 rxd2 = <&PIO16 2 ALT2 IN SE_NICLK_IO 0 CLK_A>;
383 rxd3 = <&PIO16 3 ALT2 IN SE_NICLK_IO 0 CLK_A>;
384 rxdv = <&PIO15 6 ALT2 IN SE_NICLK_IO 0 CLK_A>;
385 rx_er = <&PIO15 7 ALT2 IN SE_NICLK_IO 0 CLK_A>;
386 rxclk = <&PIO17 0 ALT2 IN NICLK 0 CLK_A>;
387 phyclk = <&PIO13 5 ALT2 OUT NICLK 1000 CLK_A>;
392 pinctrl_gmii0: gmii0 {
394 mdint = <&PIO13 6 ALT2 IN BYPASS 0>;
395 mdio = <&PIO15 4 ALT2 OUT BYPASS 3000>;
396 mdc = <&PIO15 5 ALT2 OUT NICLK 0 CLK_B>;
397 txen = <&PIO13 7 ALT2 OUT SE_NICLK_IO 3000 CLK_A>;
399 txd0 = <&PIO14 0 ALT2 OUT SE_NICLK_IO 3000 CLK_A>;
400 txd1 = <&PIO14 1 ALT2 OUT SE_NICLK_IO 3000 CLK_A>;
401 txd2 = <&PIO14 2 ALT2 OUT SE_NICLK_IO 3000 CLK_B>;
402 txd3 = <&PIO14 3 ALT2 OUT SE_NICLK_IO 3000 CLK_B>;
403 txd4 = <&PIO14 4 ALT2 OUT SE_NICLK_IO 3000 CLK_B>;
404 txd5 = <&PIO14 5 ALT2 OUT SE_NICLK_IO 3000 CLK_B>;
405 txd6 = <&PIO14 6 ALT2 OUT SE_NICLK_IO 3000 CLK_B>;
406 txd7 = <&PIO14 7 ALT2 OUT SE_NICLK_IO 3000 CLK_B>;
408 txclk = <&PIO15 0 ALT2 IN NICLK 0 CLK_A>;
409 txer = <&PIO15 1 ALT2 OUT SE_NICLK_IO 3000 CLK_A>;
410 crs = <&PIO15 2 ALT2 IN BYPASS 1000>;
411 col = <&PIO15 3 ALT2 IN BYPASS 1000>;
412 rxdv = <&PIO15 6 ALT2 IN SE_NICLK_IO 1500 CLK_A>;
413 rx_er = <&PIO15 7 ALT2 IN SE_NICLK_IO 1500 CLK_A>;
415 rxd0 = <&PIO16 0 ALT2 IN SE_NICLK_IO 1500 CLK_A>;
416 rxd1 = <&PIO16 1 ALT2 IN SE_NICLK_IO 1500 CLK_A>;
417 rxd2 = <&PIO16 2 ALT2 IN SE_NICLK_IO 1500 CLK_A>;
418 rxd3 = <&PIO16 3 ALT2 IN SE_NICLK_IO 1500 CLK_A>;
419 rxd4 = <&PIO16 4 ALT2 IN SE_NICLK_IO 1500 CLK_A>;
420 rxd5 = <&PIO16 5 ALT2 IN SE_NICLK_IO 1500 CLK_A>;
421 rxd6 = <&PIO16 6 ALT2 IN SE_NICLK_IO 1500 CLK_A>;
422 rxd7 = <&PIO16 7 ALT2 IN SE_NICLK_IO 1500 CLK_A>;
424 rxclk = <&PIO17 0 ALT2 IN NICLK 0 CLK_A>;
425 clk125 = <&PIO17 6 ALT1 IN NICLK 0 CLK_A>;
426 phyclk = <&PIO13 5 ALT4 OUT NICLK 0 CLK_B>;
434 pin-controller-left {
435 #address-cells = <1>;
437 compatible = "st,stih415-left-pinctrl";
438 st,syscfg = <&syscfg_left>;
439 reg = <0xfd6bf080 0x4>;
440 reg-names = "irqmux";
441 interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>;
442 interrupt-names = "irqmux";
443 ranges = <0 0xfd6b0000 0x3000>;
445 PIO100: gpio@fd6b0000 {
448 interrupt-controller;
449 #interrupt-cells = <2>;
451 st,bank-name = "PIO100";
453 PIO101: gpio@fd6b1000 {
456 interrupt-controller;
457 #interrupt-cells = <2>;
458 reg = <0x1000 0x100>;
459 st,bank-name = "PIO101";
461 PIO102: gpio@fd6b2000 {
464 interrupt-controller;
465 #interrupt-cells = <2>;
466 reg = <0x2000 0x100>;
467 st,bank-name = "PIO102";
471 pin-controller-right {
472 #address-cells = <1>;
474 compatible = "st,stih415-right-pinctrl";
475 st,syscfg = <&syscfg_right>;
476 reg = <0xfd33f080 0x4>;
477 reg-names = "irqmux";
478 interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
479 interrupt-names = "irqmux";
480 ranges = <0 0xfd330000 0x5000>;
482 PIO103: gpio@fd330000 {
485 interrupt-controller;
486 #interrupt-cells = <2>;
488 st,bank-name = "PIO103";
490 PIO104: gpio@fd331000 {
493 interrupt-controller;
494 #interrupt-cells = <2>;
495 reg = <0x1000 0x100>;
496 st,bank-name = "PIO104";
498 PIO105: gpio@fd332000 {
501 interrupt-controller;
502 #interrupt-cells = <2>;
503 reg = <0x2000 0x100>;
504 st,bank-name = "PIO105";
506 PIO106: gpio@fd333000 {
509 interrupt-controller;
510 #interrupt-cells = <2>;
511 reg = <0x3000 0x100>;
512 st,bank-name = "PIO106";
514 PIO107: gpio@fd334000 {
517 interrupt-controller;
518 #interrupt-cells = <2>;
519 reg = <0x4000 0x100>;
520 st,bank-name = "PIO107";