2 * Copyright (C) 2014 STMicroelectronics Limited.
3 * Author: Giuseppe Cavallaro <peppe.cavallaro@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>
21 /* 10-19: PIO_FRONT0 */
41 /* 40-42: PIO_FLASH */
51 compatible = "st,stih407-sbc-pinctrl";
52 st,syscfg = <&syscfg_sbc>;
53 reg = <0x0961f080 0x4>;
55 interrupts = <GIC_SPI 188 IRQ_TYPE_NONE>;
56 interrupt-names = "irqmux";
57 ranges = <0 0x09610000 0x6000>;
63 #interrupt-cells = <2>;
65 st,bank-name = "PIO0";
71 #interrupt-cells = <2>;
73 st,bank-name = "PIO1";
79 #interrupt-cells = <2>;
81 st,bank-name = "PIO2";
87 #interrupt-cells = <2>;
89 st,bank-name = "PIO3";
95 #interrupt-cells = <2>;
97 st,bank-name = "PIO4";
100 pio5: gpio@09615000 {
103 interrupt-controller;
104 #interrupt-cells = <2>;
105 reg = <0x5000 0x100>;
106 st,bank-name = "PIO5";
107 st,retime-pin-mask = <0x3f>;
111 pinctrl_cec0_default: cec0-default {
113 hdmi_cec = <&pio2 4 ALT1 BIDIR>;
121 ir = <&pio4 0 ALT2 IN>;
127 ir = <&pio4 1 ALT2 IN>;
133 tx = <&pio4 2 ALT2 OUT>;
137 pinctrl_tx_od: tx_od0 {
139 tx_od = <&pio4 3 ALT2 OUT>;
144 /* SBC_ASC0 - UART10 */
146 pinctrl_sbc_serial0: sbc_serial0-0 {
148 tx = <&pio3 4 ALT1 OUT>;
149 rx = <&pio3 5 ALT1 IN>;
153 /* SBC_ASC1 - UART11 */
155 pinctrl_sbc_serial1: sbc_serial1-0 {
157 tx = <&pio2 6 ALT3 OUT>;
158 rx = <&pio2 7 ALT3 IN>;
164 pinctrl_i2c10_default: i2c10-default {
166 sda = <&pio4 6 ALT1 BIDIR>;
167 scl = <&pio4 5 ALT1 BIDIR>;
173 pinctrl_i2c11_default: i2c11-default {
175 sda = <&pio5 1 ALT1 BIDIR>;
176 scl = <&pio5 0 ALT1 BIDIR>;
182 pinctrl_keyscan: keyscan {
184 keyin0 = <&pio4 0 ALT6 IN>;
185 keyin1 = <&pio4 5 ALT4 IN>;
186 keyin2 = <&pio0 4 ALT2 IN>;
187 keyin3 = <&pio2 6 ALT2 IN>;
189 keyout0 = <&pio4 6 ALT4 OUT>;
190 keyout1 = <&pio1 7 ALT2 OUT>;
191 keyout2 = <&pio0 6 ALT2 OUT>;
192 keyout3 = <&pio2 7 ALT2 OUT>;
199 * Almost all the boards based on STiH407 SoC have an embedded
200 * switch where the mdio/mdc have been used for managing the SMI
201 * iface via I2C. For this reason these lines can be allocated
202 * by using dedicated configuration (in case of there will be a
203 * standard PHY transceiver on-board).
205 pinctrl_rgmii1: rgmii1-0 {
208 txd0 = <&pio0 0 ALT1 OUT DE_IO 0 CLK_A>;
209 txd1 = <&pio0 1 ALT1 OUT DE_IO 0 CLK_A>;
210 txd2 = <&pio0 2 ALT1 OUT DE_IO 0 CLK_A>;
211 txd3 = <&pio0 3 ALT1 OUT DE_IO 0 CLK_A>;
212 txen = <&pio0 5 ALT1 OUT DE_IO 0 CLK_A>;
213 txclk = <&pio0 6 ALT1 IN NICLK 0 CLK_A>;
214 rxd0 = <&pio1 4 ALT1 IN DE_IO 0 CLK_A>;
215 rxd1 = <&pio1 5 ALT1 IN DE_IO 0 CLK_A>;
216 rxd2 = <&pio1 6 ALT1 IN DE_IO 0 CLK_A>;
217 rxd3 = <&pio1 7 ALT1 IN DE_IO 0 CLK_A>;
218 rxdv = <&pio2 0 ALT1 IN DE_IO 0 CLK_A>;
219 rxclk = <&pio2 2 ALT1 IN NICLK 0 CLK_A>;
220 clk125 = <&pio3 7 ALT4 IN NICLK 0 CLK_A>;
221 phyclk = <&pio2 3 ALT4 OUT NICLK 1250 CLK_B>;
225 pinctrl_rgmii1_mdio: rgmii1-mdio {
227 mdio = <&pio1 0 ALT1 OUT BYPASS 0>;
228 mdc = <&pio1 1 ALT1 OUT NICLK 0 CLK_A>;
229 mdint = <&pio1 3 ALT1 IN BYPASS 0>;
233 pinctrl_rgmii1_mdio_1: rgmii1-mdio-1 {
235 mdio = <&pio1 0 ALT1 OUT BYPASS 0>;
236 mdc = <&pio1 1 ALT1 OUT NICLK 0 CLK_A>;
242 txd0 = <&pio0 0 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
243 txd1 = <&pio0 1 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
244 txd2 = <&pio0 2 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
245 txd3 = <&pio0 3 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
246 txer = <&pio0 4 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
247 txen = <&pio0 5 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
248 txclk = <&pio0 6 ALT1 IN NICLK 0 CLK_A>;
249 col = <&pio0 7 ALT1 IN BYPASS 1000>;
251 mdio = <&pio1 0 ALT1 OUT BYPASS 1500>;
252 mdc = <&pio1 1 ALT1 OUT NICLK 0 CLK_A>;
253 crs = <&pio1 2 ALT1 IN BYPASS 1000>;
254 mdint = <&pio1 3 ALT1 IN BYPASS 0>;
255 rxd0 = <&pio1 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
256 rxd1 = <&pio1 5 ALT1 IN SE_NICLK_IO 0 CLK_A>;
257 rxd2 = <&pio1 6 ALT1 IN SE_NICLK_IO 0 CLK_A>;
258 rxd3 = <&pio1 7 ALT1 IN SE_NICLK_IO 0 CLK_A>;
260 rxdv = <&pio2 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
261 rx_er = <&pio2 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
262 rxclk = <&pio2 2 ALT1 IN NICLK 0 CLK_A>;
263 phyclk = <&pio2 3 ALT1 OUT NICLK 0 CLK_A>;
267 pinctrl_rmii1: rmii1-0 {
269 txd0 = <&pio0 0 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
270 txd1 = <&pio0 1 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
271 txen = <&pio0 5 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
272 mdio = <&pio1 0 ALT1 OUT BYPASS 0>;
273 mdc = <&pio1 1 ALT1 OUT NICLK 0 CLK_A>;
274 mdint = <&pio1 3 ALT1 IN BYPASS 0>;
275 rxd0 = <&pio1 4 ALT1 IN SE_NICLK_IO 0 CLK_B>;
276 rxd1 = <&pio1 5 ALT1 IN SE_NICLK_IO 0 CLK_B>;
277 rxdv = <&pio2 0 ALT1 IN SE_NICLK_IO 0 CLK_B>;
278 rx_er = <&pio2 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
282 pinctrl_rmii1_phyclk: rmii1_phyclk {
284 phyclk = <&pio2 3 ALT1 OUT NICLK 0 CLK_A>;
288 pinctrl_rmii1_phyclk_ext: rmii1_phyclk_ext {
290 phyclk = <&pio2 3 ALT2 IN NICLK 0 CLK_A>;
296 pinctrl_pwm1_chan0_default: pwm1-0-default {
298 pwm-out = <&pio3 0 ALT1 OUT>;
299 pwm-capturein = <&pio3 2 ALT1 IN>;
302 pinctrl_pwm1_chan1_default: pwm1-1-default {
304 pwm-capturein = <&pio4 3 ALT1 IN>;
305 pwm-out = <&pio4 4 ALT1 OUT>;
308 pinctrl_pwm1_chan2_default: pwm1-2-default {
310 pwm-out = <&pio4 6 ALT3 OUT>;
313 pinctrl_pwm1_chan3_default: pwm1-3-default {
315 pwm-out = <&pio4 7 ALT3 OUT>;
321 pinctrl_spi10_default: spi10-4w-alt1-0 {
323 mtsr = <&pio4 6 ALT1 OUT>;
324 mrst = <&pio4 7 ALT1 IN>;
325 scl = <&pio4 5 ALT1 OUT>;
329 pinctrl_spi10_3w_alt1_0: spi10-3w-alt1-0 {
331 mtsr = <&pio4 6 ALT1 BIDIR_PU>;
332 scl = <&pio4 5 ALT1 OUT>;
338 pinctrl_spi11_default: spi11-4w-alt2-0 {
340 mtsr = <&pio3 1 ALT2 OUT>;
341 mrst = <&pio3 0 ALT2 IN>;
342 scl = <&pio3 2 ALT2 OUT>;
346 pinctrl_spi11_3w_alt2_0: spi11-3w-alt2-0 {
348 mtsr = <&pio3 1 ALT2 BIDIR_PU>;
349 scl = <&pio3 2 ALT2 OUT>;
355 pinctrl_spi12_default: spi12-4w-alt2-0 {
357 mtsr = <&pio3 6 ALT2 OUT>;
358 mrst = <&pio3 4 ALT2 IN>;
359 scl = <&pio3 7 ALT2 OUT>;
363 pinctrl_spi12_3w_alt2_0: spi12-3w-alt2-0 {
365 mtsr = <&pio3 6 ALT2 BIDIR_PU>;
366 scl = <&pio3 7 ALT2 OUT>;
372 pin-controller-front0 {
373 #address-cells = <1>;
375 compatible = "st,stih407-front-pinctrl";
376 st,syscfg = <&syscfg_front>;
377 reg = <0x0920f080 0x4>;
378 reg-names = "irqmux";
379 interrupts = <GIC_SPI 189 IRQ_TYPE_NONE>;
380 interrupt-names = "irqmux";
381 ranges = <0 0x09200000 0x10000>;
383 pio10: pio@09200000 {
386 interrupt-controller;
387 #interrupt-cells = <2>;
389 st,bank-name = "PIO10";
391 pio11: pio@09201000 {
394 interrupt-controller;
395 #interrupt-cells = <2>;
396 reg = <0x1000 0x100>;
397 st,bank-name = "PIO11";
399 pio12: pio@09202000 {
402 interrupt-controller;
403 #interrupt-cells = <2>;
404 reg = <0x2000 0x100>;
405 st,bank-name = "PIO12";
407 pio13: pio@09203000 {
410 interrupt-controller;
411 #interrupt-cells = <2>;
412 reg = <0x3000 0x100>;
413 st,bank-name = "PIO13";
415 pio14: pio@09204000 {
418 interrupt-controller;
419 #interrupt-cells = <2>;
420 reg = <0x4000 0x100>;
421 st,bank-name = "PIO14";
423 pio15: pio@09205000 {
426 interrupt-controller;
427 #interrupt-cells = <2>;
428 reg = <0x5000 0x100>;
429 st,bank-name = "PIO15";
431 pio16: pio@09206000 {
434 interrupt-controller;
435 #interrupt-cells = <2>;
436 reg = <0x6000 0x100>;
437 st,bank-name = "PIO16";
439 pio17: pio@09207000 {
442 interrupt-controller;
443 #interrupt-cells = <2>;
444 reg = <0x7000 0x100>;
445 st,bank-name = "PIO17";
447 pio18: pio@09208000 {
450 interrupt-controller;
451 #interrupt-cells = <2>;
452 reg = <0x8000 0x100>;
453 st,bank-name = "PIO18";
455 pio19: pio@09209000 {
458 interrupt-controller;
459 #interrupt-cells = <2>;
460 reg = <0x9000 0x100>;
461 st,bank-name = "PIO19";
466 pinctrl_serial0: serial0-0 {
468 tx = <&pio17 0 ALT1 OUT>;
469 rx = <&pio17 1 ALT1 IN>;
472 pinctrl_serial0_rts: serial0_rts {
474 rts = <&pio17 3 ALT1 OUT>;
478 pinctrl_serial0_cts: serial0_cts {
480 cts = <&pio17 2 ALT1 IN>;
486 pinctrl_serial1: serial1-0 {
488 tx = <&pio16 0 ALT1 OUT>;
489 rx = <&pio16 1 ALT1 IN>;
495 pinctrl_serial2: serial2-0 {
497 tx = <&pio15 0 ALT1 OUT>;
498 rx = <&pio15 1 ALT1 IN>;
506 sd_clk = <&pio19 3 ALT5 BIDIR NICLK 0 CLK_B>;
507 sd_cmd = <&pio19 2 ALT5 BIDIR_PU BYPASS 0>;
508 sd_dat0 = <&pio19 4 ALT5 BIDIR_PU BYPASS 0>;
509 sd_dat1 = <&pio19 5 ALT5 BIDIR_PU BYPASS 0>;
510 sd_dat2 = <&pio19 6 ALT5 BIDIR_PU BYPASS 0>;
511 sd_dat3 = <&pio19 7 ALT5 BIDIR_PU BYPASS 0>;
512 sd_led = <&pio16 6 ALT6 OUT>;
513 sd_pwren = <&pio16 7 ALT6 OUT>;
514 sd_cd = <&pio19 0 ALT6 IN>;
515 sd_wp = <&pio19 1 ALT6 IN>;
522 pinctrl_i2c0_default: i2c0-default {
524 sda = <&pio10 6 ALT2 BIDIR>;
525 scl = <&pio10 5 ALT2 BIDIR>;
531 pinctrl_i2c1_default: i2c1-default {
533 sda = <&pio11 1 ALT2 BIDIR>;
534 scl = <&pio11 0 ALT2 BIDIR>;
540 pinctrl_i2c2_default: i2c2-default {
542 sda = <&pio15 6 ALT2 BIDIR>;
543 scl = <&pio15 5 ALT2 BIDIR>;
547 pinctrl_i2c2_alt2_1: i2c2-alt2-1 {
549 sda = <&pio12 6 ALT2 BIDIR>;
550 scl = <&pio12 5 ALT2 BIDIR>;
556 pinctrl_i2c3_default: i2c3-alt1-0 {
558 sda = <&pio18 6 ALT1 BIDIR>;
559 scl = <&pio18 5 ALT1 BIDIR>;
562 pinctrl_i2c3_alt1_1: i2c3-alt1-1 {
564 sda = <&pio17 7 ALT1 BIDIR>;
565 scl = <&pio17 6 ALT1 BIDIR>;
568 pinctrl_i2c3_alt3_0: i2c3-alt3-0 {
570 sda = <&pio13 6 ALT3 BIDIR>;
571 scl = <&pio13 5 ALT3 BIDIR>;
577 pinctrl_spi0_default: spi0-4w-alt2-0 {
579 mtsr = <&pio10 6 ALT2 OUT>;
580 mrst = <&pio10 7 ALT2 IN>;
581 scl = <&pio10 5 ALT2 OUT>;
585 pinctrl_spi0_3w_alt2_0: spi0-3w-alt2-0 {
587 mtsr = <&pio10 6 ALT2 BIDIR_PU>;
588 scl = <&pio10 5 ALT2 OUT>;
592 pinctrl_spi0_4w_alt1_0: spi0-4w-alt1-0 {
594 mtsr = <&pio19 7 ALT1 OUT>;
595 mrst = <&pio19 5 ALT1 IN>;
596 scl = <&pio19 6 ALT1 OUT>;
600 pinctrl_spi0_3w_alt1_0: spi0-3w-alt1-0 {
602 mtsr = <&pio19 7 ALT1 BIDIR_PU>;
603 scl = <&pio19 6 ALT1 OUT>;
609 pinctrl_spi1_default: spi1-4w-alt2-0 {
611 mtsr = <&pio11 1 ALT2 OUT>;
612 mrst = <&pio11 2 ALT2 IN>;
613 scl = <&pio11 0 ALT2 OUT>;
617 pinctrl_spi1_3w_alt2_0: spi1-3w-alt2-0 {
619 mtsr = <&pio11 1 ALT2 BIDIR_PU>;
620 scl = <&pio11 0 ALT2 OUT>;
624 pinctrl_spi1_4w_alt1_0: spi1-4w-alt1-0 {
626 mtsr = <&pio14 3 ALT1 OUT>;
627 mrst = <&pio14 4 ALT1 IN>;
628 scl = <&pio14 2 ALT1 OUT>;
632 pinctrl_spi1_3w_alt1_0: spi1-3w-alt1-0 {
634 mtsr = <&pio14 3 ALT1 BIDIR_PU>;
635 scl = <&pio14 2 ALT1 OUT>;
641 pinctrl_spi2_default: spi2-4w-alt2-0 {
643 mtsr = <&pio12 6 ALT2 OUT>;
644 mrst = <&pio12 7 ALT2 IN>;
645 scl = <&pio12 5 ALT2 OUT>;
649 pinctrl_spi2_3w_alt2_0: spi2-3w-alt2-0 {
651 mtsr = <&pio12 6 ALT2 BIDIR_PU>;
652 scl = <&pio12 5 ALT2 OUT>;
656 pinctrl_spi2_4w_alt1_0: spi2-4w-alt1-0 {
658 mtsr = <&pio14 6 ALT1 OUT>;
659 mrst = <&pio14 7 ALT1 IN>;
660 scl = <&pio14 5 ALT1 OUT>;
664 pinctrl_spi2_3w_alt1_0: spi2-3w-alt1-0 {
666 mtsr = <&pio14 6 ALT1 BIDIR_PU>;
667 scl = <&pio14 5 ALT1 OUT>;
671 pinctrl_spi2_4w_alt2_1: spi2-4w-alt2-1 {
673 mtsr = <&pio15 6 ALT2 OUT>;
674 mrst = <&pio15 7 ALT2 IN>;
675 scl = <&pio15 5 ALT2 OUT>;
679 pinctrl_spi2_3w_alt2_1: spi2-3w-alt2-1 {
681 mtsr = <&pio15 6 ALT2 BIDIR_PU>;
682 scl = <&pio15 5 ALT2 OUT>;
688 pinctrl_spi3_default: spi3-4w-alt3-0 {
690 mtsr = <&pio13 6 ALT3 OUT>;
691 mrst = <&pio13 7 ALT3 IN>;
692 scl = <&pio13 5 ALT3 OUT>;
696 pinctrl_spi3_3w_alt3_0: spi3-3w-alt3-0 {
698 mtsr = <&pio13 6 ALT3 BIDIR_PU>;
699 scl = <&pio13 5 ALT3 OUT>;
703 pinctrl_spi3_4w_alt1_0: spi3-4w-alt1-0 {
705 mtsr = <&pio17 7 ALT1 OUT>;
706 mrst = <&pio17 5 ALT1 IN>;
707 scl = <&pio17 6 ALT1 OUT>;
711 pinctrl_spi3_3w_alt1_0: spi3-3w-alt1-0 {
713 mtsr = <&pio17 7 ALT1 BIDIR_PU>;
714 scl = <&pio17 6 ALT1 OUT>;
718 pinctrl_spi3_4w_alt1_1: spi3-4w-alt1-1 {
720 mtsr = <&pio18 6 ALT1 OUT>;
721 mrst = <&pio18 7 ALT1 IN>;
722 scl = <&pio18 5 ALT1 OUT>;
726 pinctrl_spi3_3w_alt1_1: spi3-3w-alt1-1 {
728 mtsr = <&pio18 6 ALT1 BIDIR_PU>;
729 scl = <&pio18 5 ALT1 OUT>;
735 pinctrl_tsin0_parallel: tsin0_parallel {
737 DATA7 = <&pio10 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
738 DATA6 = <&pio10 5 ALT1 IN SE_NICLK_IO 0 CLK_A>;
739 DATA5 = <&pio10 6 ALT1 IN SE_NICLK_IO 0 CLK_A>;
740 DATA4 = <&pio10 7 ALT1 IN SE_NICLK_IO 0 CLK_A>;
741 DATA3 = <&pio11 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
742 DATA2 = <&pio11 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
743 DATA1 = <&pio11 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
744 DATA0 = <&pio11 3 ALT1 IN SE_NICLK_IO 0 CLK_A>;
745 CLKIN = <&pio10 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
746 VALID = <&pio10 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
747 ERROR = <&pio10 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
748 PKCLK = <&pio10 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
751 pinctrl_tsin0_serial: tsin0_serial {
753 DATA7 = <&pio10 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
754 CLKIN = <&pio10 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
755 VALID = <&pio10 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
756 ERROR = <&pio10 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
757 PKCLK = <&pio10 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
763 pinctrl_tsin1_parallel: tsin1_parallel {
765 DATA7 = <&pio12 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
766 DATA6 = <&pio12 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
767 DATA5 = <&pio12 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
768 DATA4 = <&pio12 3 ALT1 IN SE_NICLK_IO 0 CLK_A>;
769 DATA3 = <&pio12 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
770 DATA2 = <&pio12 5 ALT1 IN SE_NICLK_IO 0 CLK_A>;
771 DATA1 = <&pio12 6 ALT1 IN SE_NICLK_IO 0 CLK_A>;
772 DATA0 = <&pio12 7 ALT1 IN SE_NICLK_IO 0 CLK_A>;
773 CLKIN = <&pio11 7 ALT1 IN CLKNOTDATA 0 CLK_A>;
774 VALID = <&pio11 5 ALT1 IN SE_NICLK_IO 0 CLK_A>;
775 ERROR = <&pio11 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
776 PKCLK = <&pio11 6 ALT1 IN SE_NICLK_IO 0 CLK_A>;
779 pinctrl_tsin1_serial: tsin1_serial {
781 DATA7 = <&pio12 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
782 CLKIN = <&pio11 7 ALT1 IN CLKNOTDATA 0 CLK_A>;
783 VALID = <&pio11 5 ALT1 IN SE_NICLK_IO 0 CLK_A>;
784 ERROR = <&pio11 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
785 PKCLK = <&pio11 6 ALT1 IN SE_NICLK_IO 0 CLK_A>;
791 pinctrl_tsin2_parallel: tsin2_parallel {
793 DATA7 = <&pio13 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
794 DATA6 = <&pio13 5 ALT2 IN SE_NICLK_IO 0 CLK_B>;
795 DATA5 = <&pio13 6 ALT2 IN SE_NICLK_IO 0 CLK_B>;
796 DATA4 = <&pio13 7 ALT2 IN SE_NICLK_IO 0 CLK_B>;
797 DATA3 = <&pio14 0 ALT2 IN SE_NICLK_IO 0 CLK_A>;
798 DATA2 = <&pio14 1 ALT2 IN SE_NICLK_IO 0 CLK_B>;
799 DATA1 = <&pio14 2 ALT2 IN SE_NICLK_IO 0 CLK_A>;
800 DATA0 = <&pio14 3 ALT2 IN SE_NICLK_IO 0 CLK_A>;
801 CLKIN = <&pio13 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
802 VALID = <&pio13 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
803 ERROR = <&pio13 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
804 PKCLK = <&pio13 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
807 pinctrl_tsin2_serial: tsin2_serial {
809 DATA7 = <&pio13 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
810 CLKIN = <&pio13 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
811 VALID = <&pio13 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
812 ERROR = <&pio13 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
813 PKCLK = <&pio13 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
819 pinctrl_tsin3_serial: tsin3_serial {
821 DATA7 = <&pio14 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
822 CLKIN = <&pio14 0 ALT1 IN CLKNOTDATA 0 CLK_A>;
823 VALID = <&pio13 6 ALT1 IN SE_NICLK_IO 0 CLK_A>;
824 ERROR = <&pio13 5 ALT1 IN SE_NICLK_IO 0 CLK_A>;
825 PKCLK = <&pio13 7 ALT1 IN SE_NICLK_IO 0 CLK_A>;
831 pinctrl_tsin4_serial_alt3: tsin4_serial_alt3 {
833 DATA7 = <&pio14 6 ALT3 IN SE_NICLK_IO 0 CLK_A>;
834 CLKIN = <&pio14 5 ALT3 IN CLKNOTDATA 0 CLK_A>;
835 VALID = <&pio14 3 ALT3 IN SE_NICLK_IO 0 CLK_B>;
836 ERROR = <&pio14 2 ALT3 IN SE_NICLK_IO 0 CLK_B>;
837 PKCLK = <&pio14 4 ALT3 IN SE_NICLK_IO 0 CLK_A>;
843 pinctrl_tsin5_serial_alt1: tsin5_serial_alt1 {
845 DATA7 = <&pio18 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
846 CLKIN = <&pio18 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
847 VALID = <&pio18 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
848 ERROR = <&pio18 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
849 PKCLK = <&pio18 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
852 pinctrl_tsin5_serial_alt2: tsin5_serial_alt2 {
854 DATA7 = <&pio19 4 ALT2 IN SE_NICLK_IO 0 CLK_A>;
855 CLKIN = <&pio19 3 ALT2 IN CLKNOTDATA 0 CLK_A>;
856 VALID = <&pio19 1 ALT2 IN SE_NICLK_IO 0 CLK_A>;
857 ERROR = <&pio19 0 ALT2 IN SE_NICLK_IO 0 CLK_A>;
858 PKCLK = <&pio19 2 ALT2 IN SE_NICLK_IO 0 CLK_A>;
864 pinctrl_tsout0_parallel: tsout0_parallel {
866 DATA7 = <&pio12 0 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
867 DATA6 = <&pio12 1 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
868 DATA5 = <&pio12 2 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
869 DATA4 = <&pio12 3 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
870 DATA3 = <&pio12 4 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
871 DATA2 = <&pio12 5 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
872 DATA1 = <&pio12 6 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
873 DATA0 = <&pio12 7 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
874 CLKIN = <&pio11 7 ALT3 OUT NICLK 0 CLK_A>;
875 VALID = <&pio11 5 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
876 ERROR = <&pio11 4 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
877 PKCLK = <&pio11 6 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
880 pinctrl_tsout0_serial: tsout0_serial {
882 DATA7 = <&pio12 0 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
883 CLKIN = <&pio11 7 ALT3 OUT NICLK 0 CLK_A>;
884 VALID = <&pio11 5 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
885 ERROR = <&pio11 4 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
886 PKCLK = <&pio11 6 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
892 pinctrl_tsout1_serial: tsout1_serial {
894 DATA7 = <&pio19 4 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
895 CLKIN = <&pio19 3 ALT1 OUT NICLK 0 CLK_A>;
896 VALID = <&pio19 1 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
897 ERROR = <&pio19 0 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
898 PKCLK = <&pio19 2 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
904 pinctrl_mtsin0_parallel: mtsin0_parallel {
906 DATA7 = <&pio10 4 ALT3 IN SE_NICLK_IO 0 CLK_A>;
907 DATA6 = <&pio10 5 ALT3 IN SE_NICLK_IO 0 CLK_A>;
908 DATA5 = <&pio10 6 ALT3 IN SE_NICLK_IO 0 CLK_A>;
909 DATA4 = <&pio10 7 ALT3 IN SE_NICLK_IO 0 CLK_A>;
910 DATA3 = <&pio11 0 ALT3 IN SE_NICLK_IO 0 CLK_A>;
911 DATA2 = <&pio11 1 ALT3 IN SE_NICLK_IO 0 CLK_A>;
912 DATA1 = <&pio11 2 ALT3 IN SE_NICLK_IO 0 CLK_A>;
913 DATA0 = <&pio11 3 ALT3 IN SE_NICLK_IO 0 CLK_A>;
914 CLKIN = <&pio10 3 ALT3 IN CLKNOTDATA 0 CLK_A>;
915 VALID = <&pio10 1 ALT3 IN SE_NICLK_IO 0 CLK_A>;
916 ERROR = <&pio10 0 ALT3 IN SE_NICLK_IO 0 CLK_A>;
917 PKCLK = <&pio10 2 ALT3 IN SE_NICLK_IO 0 CLK_A>;
923 pinctrl_systrace_default: systrace-default {
925 trc_data0 = <&pio11 3 ALT5 OUT>;
926 trc_data1 = <&pio11 4 ALT5 OUT>;
927 trc_data2 = <&pio11 5 ALT5 OUT>;
928 trc_data3 = <&pio11 6 ALT5 OUT>;
929 trc_clk = <&pio11 7 ALT5 OUT>;
935 pin-controller-front1 {
936 #address-cells = <1>;
938 compatible = "st,stih407-front-pinctrl";
939 st,syscfg = <&syscfg_front>;
940 reg = <0x0921f080 0x4>;
941 reg-names = "irqmux";
942 interrupts = <GIC_SPI 190 IRQ_TYPE_NONE>;
943 interrupt-names = "irqmux";
944 ranges = <0 0x09210000 0x10000>;
946 pio20: pio@09210000 {
949 interrupt-controller;
950 #interrupt-cells = <2>;
952 st,bank-name = "PIO20";
956 pinctrl_tsin4_serial_alt1: tsin4_serial_alt1 {
958 DATA7 = <&pio20 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
959 CLKIN = <&pio20 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
960 VALID = <&pio20 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
961 ERROR = <&pio20 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
962 PKCLK = <&pio20 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
968 pin-controller-rear {
969 #address-cells = <1>;
971 compatible = "st,stih407-rear-pinctrl";
972 st,syscfg = <&syscfg_rear>;
973 reg = <0x0922f080 0x4>;
974 reg-names = "irqmux";
975 interrupts = <GIC_SPI 191 IRQ_TYPE_NONE>;
976 interrupt-names = "irqmux";
977 ranges = <0 0x09220000 0x6000>;
979 pio30: gpio@09220000 {
982 interrupt-controller;
983 #interrupt-cells = <2>;
985 st,bank-name = "PIO30";
987 pio31: gpio@09221000 {
990 interrupt-controller;
991 #interrupt-cells = <2>;
992 reg = <0x1000 0x100>;
993 st,bank-name = "PIO31";
995 pio32: gpio@09222000 {
998 interrupt-controller;
999 #interrupt-cells = <2>;
1000 reg = <0x2000 0x100>;
1001 st,bank-name = "PIO32";
1003 pio33: gpio@09223000 {
1006 interrupt-controller;
1007 #interrupt-cells = <2>;
1008 reg = <0x3000 0x100>;
1009 st,bank-name = "PIO33";
1011 pio34: gpio@09224000 {
1014 interrupt-controller;
1015 #interrupt-cells = <2>;
1016 reg = <0x4000 0x100>;
1017 st,bank-name = "PIO34";
1019 pio35: gpio@09225000 {
1022 interrupt-controller;
1023 #interrupt-cells = <2>;
1024 reg = <0x5000 0x100>;
1025 st,bank-name = "PIO35";
1026 st,retime-pin-mask = <0x7f>;
1032 hs = <&pio30 0 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1033 vs = <&pio30 1 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1034 de = <&pio30 2 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1035 ck = <&pio30 3 ALT2 (OE | CLKNOTDATA) 0>;
1036 d0 = <&pio30 4 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1037 d1 = <&pio30 5 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1038 d2 = <&pio30 6 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1039 d3 = <&pio30 7 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1040 d4 = <&pio31 0 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1041 d5 = <&pio31 1 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1042 d6 = <&pio31 2 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1043 d7 = <&pio31 3 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1044 d8 = <&pio31 4 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1045 d9 = <&pio31 5 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1046 d10 = <&pio31 6 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1047 d11 = <&pio31 7 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1048 d12 = <&pio32 0 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1049 d13 = <&pio32 1 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1050 d14 = <&pio32 2 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1051 d15 = <&pio32 3 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1052 d16 = <&pio32 4 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1053 d17 = <&pio32 5 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1054 d18 = <&pio32 6 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1055 d19 = <&pio32 7 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1056 d20 = <&pio33 0 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1057 d21 = <&pio33 1 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1058 d22 = <&pio33 2 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1059 d23 = <&pio33 3 ALT2 OUT SE_NICLK_IO 0 CLK_A>;
1065 pinctrl_i2c4_default: i2c4-default {
1067 sda = <&pio30 1 ALT1 BIDIR>;
1068 scl = <&pio30 0 ALT1 BIDIR>;
1074 pinctrl_i2c5_default: i2c5-default {
1076 sda = <&pio34 4 ALT1 BIDIR>;
1077 scl = <&pio34 3 ALT1 BIDIR>;
1083 pinctrl_usb3: usb3-2 {
1085 usb-oc-detect = <&pio35 4 ALT1 IN>;
1086 usb-pwr-enable = <&pio35 5 ALT1 OUT>;
1087 usb-vbus-valid = <&pio35 6 ALT1 IN>;
1093 pinctrl_pwm0_chan0_default: pwm0-0-default {
1095 pwm-capturein = <&pio31 0 ALT1 IN>;
1096 pwm-out = <&pio31 1 ALT1 OUT>;
1102 pinctrl_spi4_default: spi4-4w-alt1-0 {
1104 mtsr = <&pio30 1 ALT1 OUT>;
1105 mrst = <&pio30 2 ALT1 IN>;
1106 scl = <&pio30 0 ALT1 OUT>;
1110 pinctrl_spi4_3w_alt1_0: spi4-3w-alt1-0 {
1112 mtsr = <&pio30 1 ALT1 BIDIR_PU>;
1113 scl = <&pio30 0 ALT1 OUT>;
1117 pinctrl_spi4_4w_alt3_0: spi4-4w-alt3-0 {
1119 mtsr = <&pio34 1 ALT3 OUT>;
1120 mrst = <&pio34 2 ALT3 IN>;
1121 scl = <&pio34 0 ALT3 OUT>;
1125 pinctrl_spi4_3w_alt3_0: spi4-3w-alt3-0 {
1127 mtsr = <&pio34 1 ALT3 BIDIR_PU>;
1128 scl = <&pio34 0 ALT3 OUT>;
1134 pinctrl_i2s_8ch_out: i2s_8ch_out{
1136 mclk = <&pio33 5 ALT1 OUT>;
1137 lrclk = <&pio33 7 ALT1 OUT>;
1138 sclk = <&pio33 6 ALT1 OUT>;
1139 data0 = <&pio33 4 ALT1 OUT>;
1140 data1 = <&pio34 0 ALT1 OUT>;
1141 data2 = <&pio34 1 ALT1 OUT>;
1142 data3 = <&pio34 2 ALT1 OUT>;
1146 pinctrl_i2s_2ch_out: i2s_2ch_out{
1148 mclk = <&pio33 5 ALT1 OUT>;
1149 lrclk = <&pio33 7 ALT1 OUT>;
1150 sclk = <&pio33 6 ALT1 OUT>;
1151 data0 = <&pio33 4 ALT1 OUT>;
1157 pinctrl_i2s_8ch_in: i2s_8ch_in{
1159 mclk = <&pio32 5 ALT1 IN>;
1160 lrclk = <&pio32 7 ALT1 IN>;
1161 sclk = <&pio32 6 ALT1 IN>;
1162 data0 = <&pio32 4 ALT1 IN>;
1163 data1 = <&pio33 0 ALT1 IN>;
1164 data2 = <&pio33 1 ALT1 IN>;
1165 data3 = <&pio33 2 ALT1 IN>;
1166 data4 = <&pio33 3 ALT1 IN>;
1170 pinctrl_i2s_2ch_in: i2s_2ch_in{
1172 mclk = <&pio32 5 ALT1 IN>;
1173 lrclk = <&pio32 7 ALT1 IN>;
1174 sclk = <&pio32 6 ALT1 IN>;
1175 data0 = <&pio32 4 ALT1 IN>;
1181 pinctrl_spdif_out: spdif_out{
1183 spdif_out = <&pio34 7 ALT1 OUT>;
1189 pinctrl_serial3: serial3-0 {
1191 tx = <&pio31 3 ALT1 OUT>;
1192 rx = <&pio31 4 ALT1 IN>;
1198 pin-controller-flash {
1199 #address-cells = <1>;
1201 compatible = "st,stih407-flash-pinctrl";
1202 st,syscfg = <&syscfg_flash>;
1203 reg = <0x0923f080 0x4>;
1204 reg-names = "irqmux";
1205 interrupts = <GIC_SPI 192 IRQ_TYPE_NONE>;
1206 interrupts-names = "irqmux";
1207 ranges = <0 0x09230000 0x3000>;
1209 pio40: gpio@09230000 {
1212 interrupt-controller;
1213 #interrupt-cells = <2>;
1215 st,bank-name = "PIO40";
1217 pio41: gpio@09231000 {
1220 interrupt-controller;
1221 #interrupt-cells = <2>;
1222 reg = <0x1000 0x100>;
1223 st,bank-name = "PIO41";
1225 pio42: gpio@09232000 {
1228 interrupt-controller;
1229 #interrupt-cells = <2>;
1230 reg = <0x2000 0x100>;
1231 st,bank-name = "PIO42";
1235 pinctrl_mmc0: mmc0-0 {
1237 emmc_clk = <&pio40 6 ALT1 BIDIR>;
1238 emmc_cmd = <&pio40 7 ALT1 BIDIR_PU>;
1239 emmc_d0 = <&pio41 0 ALT1 BIDIR_PU>;
1240 emmc_d1 = <&pio41 1 ALT1 BIDIR_PU>;
1241 emmc_d2 = <&pio41 2 ALT1 BIDIR_PU>;
1242 emmc_d3 = <&pio41 3 ALT1 BIDIR_PU>;
1243 emmc_d4 = <&pio41 4 ALT1 BIDIR_PU>;
1244 emmc_d5 = <&pio41 5 ALT1 BIDIR_PU>;
1245 emmc_d6 = <&pio41 6 ALT1 BIDIR_PU>;
1246 emmc_d7 = <&pio41 7 ALT1 BIDIR_PU>;
1249 pinctrl_sd0: sd0-0 {
1251 sd_clk = <&pio40 6 ALT1 BIDIR>;
1252 sd_cmd = <&pio40 7 ALT1 BIDIR_PU>;
1253 sd_dat0 = <&pio41 0 ALT1 BIDIR_PU>;
1254 sd_dat1 = <&pio41 1 ALT1 BIDIR_PU>;
1255 sd_dat2 = <&pio41 2 ALT1 BIDIR_PU>;
1256 sd_dat3 = <&pio41 3 ALT1 BIDIR_PU>;
1257 sd_led = <&pio42 0 ALT2 OUT>;
1258 sd_pwren = <&pio42 2 ALT2 OUT>;
1259 sd_vsel = <&pio42 3 ALT2 OUT>;
1260 sd_cd = <&pio42 4 ALT2 IN>;
1261 sd_wp = <&pio42 5 ALT2 IN>;
1269 spi-fsm-clk = <&pio40 1 ALT1 OUT>;
1270 spi-fsm-cs = <&pio40 0 ALT1 OUT>;
1271 spi-fsm-mosi = <&pio40 2 ALT1 OUT>;
1272 spi-fsm-miso = <&pio40 3 ALT1 IN>;
1273 spi-fsm-hol = <&pio40 5 ALT1 OUT>;
1274 spi-fsm-wp = <&pio40 4 ALT1 OUT>;
1280 pinctrl_nand: nand {
1282 nand_cs1 = <&pio40 6 ALT3 OUT>;
1283 nand_cs0 = <&pio40 7 ALT3 OUT>;
1284 nand_d0 = <&pio41 0 ALT3 BIDIR>;
1285 nand_d1 = <&pio41 1 ALT3 BIDIR>;
1286 nand_d2 = <&pio41 2 ALT3 BIDIR>;
1287 nand_d3 = <&pio41 3 ALT3 BIDIR>;
1288 nand_d4 = <&pio41 4 ALT3 BIDIR>;
1289 nand_d5 = <&pio41 5 ALT3 BIDIR>;
1290 nand_d6 = <&pio41 6 ALT3 BIDIR>;
1291 nand_d7 = <&pio41 7 ALT3 BIDIR>;
1292 nand_we = <&pio42 0 ALT3 OUT>;
1293 nand_dqs = <&pio42 1 ALT3 OUT>;
1294 nand_ale = <&pio42 2 ALT3 OUT>;
1295 nand_cle = <&pio42 3 ALT3 OUT>;
1296 nand_rnb = <&pio42 4 ALT3 IN>;
1297 nand_oe = <&pio42 5 ALT3 OUT>;