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_LEVEL_HIGH>;
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_LEVEL_HIGH>;
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_hw_flowctrl: serial0-0_hw_flowctrl {
474 tx = <&pio17 0 ALT1 OUT>;
475 rx = <&pio17 1 ALT1 IN>;
476 cts = <&pio17 2 ALT1 IN>;
477 rts = <&pio17 3 ALT1 OUT>;
483 pinctrl_serial1: serial1-0 {
485 tx = <&pio16 0 ALT1 OUT>;
486 rx = <&pio16 1 ALT1 IN>;
492 pinctrl_serial2: serial2-0 {
494 tx = <&pio15 0 ALT1 OUT>;
495 rx = <&pio15 1 ALT1 IN>;
503 sd_clk = <&pio19 3 ALT5 BIDIR NICLK 0 CLK_B>;
504 sd_cmd = <&pio19 2 ALT5 BIDIR_PU BYPASS 0>;
505 sd_dat0 = <&pio19 4 ALT5 BIDIR_PU BYPASS 0>;
506 sd_dat1 = <&pio19 5 ALT5 BIDIR_PU BYPASS 0>;
507 sd_dat2 = <&pio19 6 ALT5 BIDIR_PU BYPASS 0>;
508 sd_dat3 = <&pio19 7 ALT5 BIDIR_PU BYPASS 0>;
509 sd_led = <&pio16 6 ALT6 OUT>;
510 sd_pwren = <&pio16 7 ALT6 OUT>;
511 sd_cd = <&pio19 0 ALT6 IN>;
512 sd_wp = <&pio19 1 ALT6 IN>;
519 pinctrl_i2c0_default: i2c0-default {
521 sda = <&pio10 6 ALT2 BIDIR>;
522 scl = <&pio10 5 ALT2 BIDIR>;
528 pinctrl_i2c1_default: i2c1-default {
530 sda = <&pio11 1 ALT2 BIDIR>;
531 scl = <&pio11 0 ALT2 BIDIR>;
537 pinctrl_i2c2_default: i2c2-default {
539 sda = <&pio15 6 ALT2 BIDIR>;
540 scl = <&pio15 5 ALT2 BIDIR>;
544 pinctrl_i2c2_alt2_1: i2c2-alt2-1 {
546 sda = <&pio12 6 ALT2 BIDIR>;
547 scl = <&pio12 5 ALT2 BIDIR>;
553 pinctrl_i2c3_default: i2c3-alt1-0 {
555 sda = <&pio18 6 ALT1 BIDIR>;
556 scl = <&pio18 5 ALT1 BIDIR>;
559 pinctrl_i2c3_alt1_1: i2c3-alt1-1 {
561 sda = <&pio17 7 ALT1 BIDIR>;
562 scl = <&pio17 6 ALT1 BIDIR>;
565 pinctrl_i2c3_alt3_0: i2c3-alt3-0 {
567 sda = <&pio13 6 ALT3 BIDIR>;
568 scl = <&pio13 5 ALT3 BIDIR>;
574 pinctrl_spi0_default: spi0-4w-alt2-0 {
576 mtsr = <&pio10 6 ALT2 OUT>;
577 mrst = <&pio10 7 ALT2 IN>;
578 scl = <&pio10 5 ALT2 OUT>;
582 pinctrl_spi0_3w_alt2_0: spi0-3w-alt2-0 {
584 mtsr = <&pio10 6 ALT2 BIDIR_PU>;
585 scl = <&pio10 5 ALT2 OUT>;
589 pinctrl_spi0_4w_alt1_0: spi0-4w-alt1-0 {
591 mtsr = <&pio19 7 ALT1 OUT>;
592 mrst = <&pio19 5 ALT1 IN>;
593 scl = <&pio19 6 ALT1 OUT>;
597 pinctrl_spi0_3w_alt1_0: spi0-3w-alt1-0 {
599 mtsr = <&pio19 7 ALT1 BIDIR_PU>;
600 scl = <&pio19 6 ALT1 OUT>;
606 pinctrl_spi1_default: spi1-4w-alt2-0 {
608 mtsr = <&pio11 1 ALT2 OUT>;
609 mrst = <&pio11 2 ALT2 IN>;
610 scl = <&pio11 0 ALT2 OUT>;
614 pinctrl_spi1_3w_alt2_0: spi1-3w-alt2-0 {
616 mtsr = <&pio11 1 ALT2 BIDIR_PU>;
617 scl = <&pio11 0 ALT2 OUT>;
621 pinctrl_spi1_4w_alt1_0: spi1-4w-alt1-0 {
623 mtsr = <&pio14 3 ALT1 OUT>;
624 mrst = <&pio14 4 ALT1 IN>;
625 scl = <&pio14 2 ALT1 OUT>;
629 pinctrl_spi1_3w_alt1_0: spi1-3w-alt1-0 {
631 mtsr = <&pio14 3 ALT1 BIDIR_PU>;
632 scl = <&pio14 2 ALT1 OUT>;
638 pinctrl_spi2_default: spi2-4w-alt2-0 {
640 mtsr = <&pio12 6 ALT2 OUT>;
641 mrst = <&pio12 7 ALT2 IN>;
642 scl = <&pio12 5 ALT2 OUT>;
646 pinctrl_spi2_3w_alt2_0: spi2-3w-alt2-0 {
648 mtsr = <&pio12 6 ALT2 BIDIR_PU>;
649 scl = <&pio12 5 ALT2 OUT>;
653 pinctrl_spi2_4w_alt1_0: spi2-4w-alt1-0 {
655 mtsr = <&pio14 6 ALT1 OUT>;
656 mrst = <&pio14 7 ALT1 IN>;
657 scl = <&pio14 5 ALT1 OUT>;
661 pinctrl_spi2_3w_alt1_0: spi2-3w-alt1-0 {
663 mtsr = <&pio14 6 ALT1 BIDIR_PU>;
664 scl = <&pio14 5 ALT1 OUT>;
668 pinctrl_spi2_4w_alt2_1: spi2-4w-alt2-1 {
670 mtsr = <&pio15 6 ALT2 OUT>;
671 mrst = <&pio15 7 ALT2 IN>;
672 scl = <&pio15 5 ALT2 OUT>;
676 pinctrl_spi2_3w_alt2_1: spi2-3w-alt2-1 {
678 mtsr = <&pio15 6 ALT2 BIDIR_PU>;
679 scl = <&pio15 5 ALT2 OUT>;
685 pinctrl_spi3_default: spi3-4w-alt3-0 {
687 mtsr = <&pio13 6 ALT3 OUT>;
688 mrst = <&pio13 7 ALT3 IN>;
689 scl = <&pio13 5 ALT3 OUT>;
693 pinctrl_spi3_3w_alt3_0: spi3-3w-alt3-0 {
695 mtsr = <&pio13 6 ALT3 BIDIR_PU>;
696 scl = <&pio13 5 ALT3 OUT>;
700 pinctrl_spi3_4w_alt1_0: spi3-4w-alt1-0 {
702 mtsr = <&pio17 7 ALT1 OUT>;
703 mrst = <&pio17 5 ALT1 IN>;
704 scl = <&pio17 6 ALT1 OUT>;
708 pinctrl_spi3_3w_alt1_0: spi3-3w-alt1-0 {
710 mtsr = <&pio17 7 ALT1 BIDIR_PU>;
711 scl = <&pio17 6 ALT1 OUT>;
715 pinctrl_spi3_4w_alt1_1: spi3-4w-alt1-1 {
717 mtsr = <&pio18 6 ALT1 OUT>;
718 mrst = <&pio18 7 ALT1 IN>;
719 scl = <&pio18 5 ALT1 OUT>;
723 pinctrl_spi3_3w_alt1_1: spi3-3w-alt1-1 {
725 mtsr = <&pio18 6 ALT1 BIDIR_PU>;
726 scl = <&pio18 5 ALT1 OUT>;
732 pinctrl_tsin0_parallel: tsin0_parallel {
734 DATA7 = <&pio10 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
735 DATA6 = <&pio10 5 ALT1 IN SE_NICLK_IO 0 CLK_A>;
736 DATA5 = <&pio10 6 ALT1 IN SE_NICLK_IO 0 CLK_A>;
737 DATA4 = <&pio10 7 ALT1 IN SE_NICLK_IO 0 CLK_A>;
738 DATA3 = <&pio11 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
739 DATA2 = <&pio11 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
740 DATA1 = <&pio11 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
741 DATA0 = <&pio11 3 ALT1 IN SE_NICLK_IO 0 CLK_A>;
742 CLKIN = <&pio10 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
743 VALID = <&pio10 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
744 ERROR = <&pio10 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
745 PKCLK = <&pio10 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
748 pinctrl_tsin0_serial: tsin0_serial {
750 DATA7 = <&pio10 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
751 CLKIN = <&pio10 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
752 VALID = <&pio10 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
753 ERROR = <&pio10 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
754 PKCLK = <&pio10 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
760 pinctrl_tsin1_parallel: tsin1_parallel {
762 DATA7 = <&pio12 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
763 DATA6 = <&pio12 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
764 DATA5 = <&pio12 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
765 DATA4 = <&pio12 3 ALT1 IN SE_NICLK_IO 0 CLK_A>;
766 DATA3 = <&pio12 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
767 DATA2 = <&pio12 5 ALT1 IN SE_NICLK_IO 0 CLK_A>;
768 DATA1 = <&pio12 6 ALT1 IN SE_NICLK_IO 0 CLK_A>;
769 DATA0 = <&pio12 7 ALT1 IN SE_NICLK_IO 0 CLK_A>;
770 CLKIN = <&pio11 7 ALT1 IN CLKNOTDATA 0 CLK_A>;
771 VALID = <&pio11 5 ALT1 IN SE_NICLK_IO 0 CLK_A>;
772 ERROR = <&pio11 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
773 PKCLK = <&pio11 6 ALT1 IN SE_NICLK_IO 0 CLK_A>;
776 pinctrl_tsin1_serial: tsin1_serial {
778 DATA7 = <&pio12 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
779 CLKIN = <&pio11 7 ALT1 IN CLKNOTDATA 0 CLK_A>;
780 VALID = <&pio11 5 ALT1 IN SE_NICLK_IO 0 CLK_A>;
781 ERROR = <&pio11 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
782 PKCLK = <&pio11 6 ALT1 IN SE_NICLK_IO 0 CLK_A>;
788 pinctrl_tsin2_parallel: tsin2_parallel {
790 DATA7 = <&pio13 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
791 DATA6 = <&pio13 5 ALT2 IN SE_NICLK_IO 0 CLK_B>;
792 DATA5 = <&pio13 6 ALT2 IN SE_NICLK_IO 0 CLK_B>;
793 DATA4 = <&pio13 7 ALT2 IN SE_NICLK_IO 0 CLK_B>;
794 DATA3 = <&pio14 0 ALT2 IN SE_NICLK_IO 0 CLK_A>;
795 DATA2 = <&pio14 1 ALT2 IN SE_NICLK_IO 0 CLK_B>;
796 DATA1 = <&pio14 2 ALT2 IN SE_NICLK_IO 0 CLK_A>;
797 DATA0 = <&pio14 3 ALT2 IN SE_NICLK_IO 0 CLK_A>;
798 CLKIN = <&pio13 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
799 VALID = <&pio13 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
800 ERROR = <&pio13 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
801 PKCLK = <&pio13 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
804 pinctrl_tsin2_serial: tsin2_serial {
806 DATA7 = <&pio13 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
807 CLKIN = <&pio13 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
808 VALID = <&pio13 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
809 ERROR = <&pio13 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
810 PKCLK = <&pio13 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
816 pinctrl_tsin3_serial: tsin3_serial {
818 DATA7 = <&pio14 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
819 CLKIN = <&pio14 0 ALT1 IN CLKNOTDATA 0 CLK_A>;
820 VALID = <&pio13 6 ALT1 IN SE_NICLK_IO 0 CLK_A>;
821 ERROR = <&pio13 5 ALT1 IN SE_NICLK_IO 0 CLK_A>;
822 PKCLK = <&pio13 7 ALT1 IN SE_NICLK_IO 0 CLK_A>;
828 pinctrl_tsin4_serial_alt3: tsin4_serial_alt3 {
830 DATA7 = <&pio14 6 ALT3 IN SE_NICLK_IO 0 CLK_A>;
831 CLKIN = <&pio14 5 ALT3 IN CLKNOTDATA 0 CLK_A>;
832 VALID = <&pio14 3 ALT3 IN SE_NICLK_IO 0 CLK_B>;
833 ERROR = <&pio14 2 ALT3 IN SE_NICLK_IO 0 CLK_B>;
834 PKCLK = <&pio14 4 ALT3 IN SE_NICLK_IO 0 CLK_A>;
840 pinctrl_tsin5_serial_alt1: tsin5_serial_alt1 {
842 DATA7 = <&pio18 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
843 CLKIN = <&pio18 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
844 VALID = <&pio18 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
845 ERROR = <&pio18 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
846 PKCLK = <&pio18 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
849 pinctrl_tsin5_serial_alt2: tsin5_serial_alt2 {
851 DATA7 = <&pio19 4 ALT2 IN SE_NICLK_IO 0 CLK_A>;
852 CLKIN = <&pio19 3 ALT2 IN CLKNOTDATA 0 CLK_A>;
853 VALID = <&pio19 1 ALT2 IN SE_NICLK_IO 0 CLK_A>;
854 ERROR = <&pio19 0 ALT2 IN SE_NICLK_IO 0 CLK_A>;
855 PKCLK = <&pio19 2 ALT2 IN SE_NICLK_IO 0 CLK_A>;
861 pinctrl_tsout0_parallel: tsout0_parallel {
863 DATA7 = <&pio12 0 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
864 DATA6 = <&pio12 1 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
865 DATA5 = <&pio12 2 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
866 DATA4 = <&pio12 3 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
867 DATA3 = <&pio12 4 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
868 DATA2 = <&pio12 5 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
869 DATA1 = <&pio12 6 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
870 DATA0 = <&pio12 7 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
871 CLKIN = <&pio11 7 ALT3 OUT NICLK 0 CLK_A>;
872 VALID = <&pio11 5 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
873 ERROR = <&pio11 4 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
874 PKCLK = <&pio11 6 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
877 pinctrl_tsout0_serial: tsout0_serial {
879 DATA7 = <&pio12 0 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
880 CLKIN = <&pio11 7 ALT3 OUT NICLK 0 CLK_A>;
881 VALID = <&pio11 5 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
882 ERROR = <&pio11 4 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
883 PKCLK = <&pio11 6 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
889 pinctrl_tsout1_serial: tsout1_serial {
891 DATA7 = <&pio19 4 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
892 CLKIN = <&pio19 3 ALT1 OUT NICLK 0 CLK_A>;
893 VALID = <&pio19 1 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
894 ERROR = <&pio19 0 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
895 PKCLK = <&pio19 2 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
901 pinctrl_mtsin0_parallel: mtsin0_parallel {
903 DATA7 = <&pio10 4 ALT3 IN SE_NICLK_IO 0 CLK_A>;
904 DATA6 = <&pio10 5 ALT3 IN SE_NICLK_IO 0 CLK_A>;
905 DATA5 = <&pio10 6 ALT3 IN SE_NICLK_IO 0 CLK_A>;
906 DATA4 = <&pio10 7 ALT3 IN SE_NICLK_IO 0 CLK_A>;
907 DATA3 = <&pio11 0 ALT3 IN SE_NICLK_IO 0 CLK_A>;
908 DATA2 = <&pio11 1 ALT3 IN SE_NICLK_IO 0 CLK_A>;
909 DATA1 = <&pio11 2 ALT3 IN SE_NICLK_IO 0 CLK_A>;
910 DATA0 = <&pio11 3 ALT3 IN SE_NICLK_IO 0 CLK_A>;
911 CLKIN = <&pio10 3 ALT3 IN CLKNOTDATA 0 CLK_A>;
912 VALID = <&pio10 1 ALT3 IN SE_NICLK_IO 0 CLK_A>;
913 ERROR = <&pio10 0 ALT3 IN SE_NICLK_IO 0 CLK_A>;
914 PKCLK = <&pio10 2 ALT3 IN SE_NICLK_IO 0 CLK_A>;
920 pinctrl_systrace_default: systrace-default {
922 trc_data0 = <&pio11 3 ALT5 OUT>;
923 trc_data1 = <&pio11 4 ALT5 OUT>;
924 trc_data2 = <&pio11 5 ALT5 OUT>;
925 trc_data3 = <&pio11 6 ALT5 OUT>;
926 trc_clk = <&pio11 7 ALT5 OUT>;
932 pin-controller-front1 {
933 #address-cells = <1>;
935 compatible = "st,stih407-front-pinctrl";
936 st,syscfg = <&syscfg_front>;
937 reg = <0x0921f080 0x4>;
938 reg-names = "irqmux";
939 interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
940 interrupt-names = "irqmux";
941 ranges = <0 0x09210000 0x10000>;
943 pio20: pio@09210000 {
946 interrupt-controller;
947 #interrupt-cells = <2>;
949 st,bank-name = "PIO20";
953 pinctrl_tsin4_serial_alt1: tsin4_serial_alt1 {
955 DATA7 = <&pio20 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
956 CLKIN = <&pio20 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
957 VALID = <&pio20 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
958 ERROR = <&pio20 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
959 PKCLK = <&pio20 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
965 pin-controller-rear {
966 #address-cells = <1>;
968 compatible = "st,stih407-rear-pinctrl";
969 st,syscfg = <&syscfg_rear>;
970 reg = <0x0922f080 0x4>;
971 reg-names = "irqmux";
972 interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>;
973 interrupt-names = "irqmux";
974 ranges = <0 0x09220000 0x6000>;
976 pio30: gpio@09220000 {
979 interrupt-controller;
980 #interrupt-cells = <2>;
982 st,bank-name = "PIO30";
984 pio31: gpio@09221000 {
987 interrupt-controller;
988 #interrupt-cells = <2>;
989 reg = <0x1000 0x100>;
990 st,bank-name = "PIO31";
992 pio32: gpio@09222000 {
995 interrupt-controller;
996 #interrupt-cells = <2>;
997 reg = <0x2000 0x100>;
998 st,bank-name = "PIO32";
1000 pio33: gpio@09223000 {
1003 interrupt-controller;
1004 #interrupt-cells = <2>;
1005 reg = <0x3000 0x100>;
1006 st,bank-name = "PIO33";
1008 pio34: gpio@09224000 {
1011 interrupt-controller;
1012 #interrupt-cells = <2>;
1013 reg = <0x4000 0x100>;
1014 st,bank-name = "PIO34";
1016 pio35: gpio@09225000 {
1019 interrupt-controller;
1020 #interrupt-cells = <2>;
1021 reg = <0x5000 0x100>;
1022 st,bank-name = "PIO35";
1023 st,retime-pin-mask = <0x7f>;
1027 pinctrl_i2c4_default: i2c4-default {
1029 sda = <&pio30 1 ALT1 BIDIR>;
1030 scl = <&pio30 0 ALT1 BIDIR>;
1036 pinctrl_i2c5_default: i2c5-default {
1038 sda = <&pio34 4 ALT1 BIDIR>;
1039 scl = <&pio34 3 ALT1 BIDIR>;
1045 pinctrl_usb3: usb3-2 {
1047 usb-oc-detect = <&pio35 4 ALT1 IN>;
1048 usb-pwr-enable = <&pio35 5 ALT1 OUT>;
1049 usb-vbus-valid = <&pio35 6 ALT1 IN>;
1055 pinctrl_pwm0_chan0_default: pwm0-0-default {
1057 pwm-capturein = <&pio31 0 ALT1 IN>;
1058 pwm-out = <&pio31 1 ALT1 OUT>;
1064 pinctrl_spi4_default: spi4-4w-alt1-0 {
1066 mtsr = <&pio30 1 ALT1 OUT>;
1067 mrst = <&pio30 2 ALT1 IN>;
1068 scl = <&pio30 0 ALT1 OUT>;
1072 pinctrl_spi4_3w_alt1_0: spi4-3w-alt1-0 {
1074 mtsr = <&pio30 1 ALT1 BIDIR_PU>;
1075 scl = <&pio30 0 ALT1 OUT>;
1079 pinctrl_spi4_4w_alt3_0: spi4-4w-alt3-0 {
1081 mtsr = <&pio34 1 ALT3 OUT>;
1082 mrst = <&pio34 2 ALT3 IN>;
1083 scl = <&pio34 0 ALT3 OUT>;
1087 pinctrl_spi4_3w_alt3_0: spi4-3w-alt3-0 {
1089 mtsr = <&pio34 1 ALT3 BIDIR_PU>;
1090 scl = <&pio34 0 ALT3 OUT>;
1096 pinctrl_i2s_8ch_out: i2s_8ch_out{
1098 mclk = <&pio33 5 ALT1 OUT>;
1099 lrclk = <&pio33 7 ALT1 OUT>;
1100 sclk = <&pio33 6 ALT1 OUT>;
1101 data0 = <&pio33 4 ALT1 OUT>;
1102 data1 = <&pio34 0 ALT1 OUT>;
1103 data2 = <&pio34 1 ALT1 OUT>;
1104 data3 = <&pio34 2 ALT1 OUT>;
1108 pinctrl_i2s_2ch_out: i2s_2ch_out{
1110 mclk = <&pio33 5 ALT1 OUT>;
1111 lrclk = <&pio33 7 ALT1 OUT>;
1112 sclk = <&pio33 6 ALT1 OUT>;
1113 data0 = <&pio33 4 ALT1 OUT>;
1119 pinctrl_i2s_8ch_in: i2s_8ch_in{
1121 mclk = <&pio32 5 ALT1 IN>;
1122 lrclk = <&pio32 7 ALT1 IN>;
1123 sclk = <&pio32 6 ALT1 IN>;
1124 data0 = <&pio32 4 ALT1 IN>;
1125 data1 = <&pio33 0 ALT1 IN>;
1126 data2 = <&pio33 1 ALT1 IN>;
1127 data3 = <&pio33 2 ALT1 IN>;
1128 data4 = <&pio33 3 ALT1 IN>;
1132 pinctrl_i2s_2ch_in: i2s_2ch_in{
1134 mclk = <&pio32 5 ALT1 IN>;
1135 lrclk = <&pio32 7 ALT1 IN>;
1136 sclk = <&pio32 6 ALT1 IN>;
1137 data0 = <&pio32 4 ALT1 IN>;
1143 pinctrl_spdif_out: spdif_out{
1145 spdif_out = <&pio34 7 ALT1 OUT>;
1151 pinctrl_serial3: serial3-0 {
1153 tx = <&pio31 3 ALT1 OUT>;
1154 rx = <&pio31 4 ALT1 IN>;
1160 pin-controller-flash {
1161 #address-cells = <1>;
1163 compatible = "st,stih407-flash-pinctrl";
1164 st,syscfg = <&syscfg_flash>;
1165 reg = <0x0923f080 0x4>;
1166 reg-names = "irqmux";
1167 interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>;
1168 interrupt-names = "irqmux";
1169 ranges = <0 0x09230000 0x3000>;
1171 pio40: gpio@09230000 {
1174 interrupt-controller;
1175 #interrupt-cells = <2>;
1177 st,bank-name = "PIO40";
1179 pio41: gpio@09231000 {
1182 interrupt-controller;
1183 #interrupt-cells = <2>;
1184 reg = <0x1000 0x100>;
1185 st,bank-name = "PIO41";
1187 pio42: gpio@09232000 {
1190 interrupt-controller;
1191 #interrupt-cells = <2>;
1192 reg = <0x2000 0x100>;
1193 st,bank-name = "PIO42";
1197 pinctrl_mmc0: mmc0-0 {
1199 emmc_clk = <&pio40 6 ALT1 BIDIR>;
1200 emmc_cmd = <&pio40 7 ALT1 BIDIR_PU>;
1201 emmc_d0 = <&pio41 0 ALT1 BIDIR_PU>;
1202 emmc_d1 = <&pio41 1 ALT1 BIDIR_PU>;
1203 emmc_d2 = <&pio41 2 ALT1 BIDIR_PU>;
1204 emmc_d3 = <&pio41 3 ALT1 BIDIR_PU>;
1205 emmc_d4 = <&pio41 4 ALT1 BIDIR_PU>;
1206 emmc_d5 = <&pio41 5 ALT1 BIDIR_PU>;
1207 emmc_d6 = <&pio41 6 ALT1 BIDIR_PU>;
1208 emmc_d7 = <&pio41 7 ALT1 BIDIR_PU>;
1211 pinctrl_sd0: sd0-0 {
1213 sd_clk = <&pio40 6 ALT1 BIDIR>;
1214 sd_cmd = <&pio40 7 ALT1 BIDIR_PU>;
1215 sd_dat0 = <&pio41 0 ALT1 BIDIR_PU>;
1216 sd_dat1 = <&pio41 1 ALT1 BIDIR_PU>;
1217 sd_dat2 = <&pio41 2 ALT1 BIDIR_PU>;
1218 sd_dat3 = <&pio41 3 ALT1 BIDIR_PU>;
1219 sd_led = <&pio42 0 ALT2 OUT>;
1220 sd_pwren = <&pio42 2 ALT2 OUT>;
1221 sd_vsel = <&pio42 3 ALT2 OUT>;
1222 sd_cd = <&pio42 4 ALT2 IN>;
1223 sd_wp = <&pio42 5 ALT2 IN>;
1231 spi-fsm-clk = <&pio40 1 ALT1 OUT>;
1232 spi-fsm-cs = <&pio40 0 ALT1 OUT>;
1233 spi-fsm-mosi = <&pio40 2 ALT1 OUT>;
1234 spi-fsm-miso = <&pio40 3 ALT1 IN>;
1235 spi-fsm-hol = <&pio40 5 ALT1 OUT>;
1236 spi-fsm-wp = <&pio40 4 ALT1 OUT>;
1242 pinctrl_nand: nand {
1244 nand_cs1 = <&pio40 6 ALT3 OUT>;
1245 nand_cs0 = <&pio40 7 ALT3 OUT>;
1246 nand_d0 = <&pio41 0 ALT3 BIDIR>;
1247 nand_d1 = <&pio41 1 ALT3 BIDIR>;
1248 nand_d2 = <&pio41 2 ALT3 BIDIR>;
1249 nand_d3 = <&pio41 3 ALT3 BIDIR>;
1250 nand_d4 = <&pio41 4 ALT3 BIDIR>;
1251 nand_d5 = <&pio41 5 ALT3 BIDIR>;
1252 nand_d6 = <&pio41 6 ALT3 BIDIR>;
1253 nand_d7 = <&pio41 7 ALT3 BIDIR>;
1254 nand_we = <&pio42 0 ALT3 OUT>;
1255 nand_dqs = <&pio42 1 ALT3 OUT>;
1256 nand_ale = <&pio42 2 ALT3 OUT>;
1257 nand_cle = <&pio42 3 ALT3 OUT>;
1258 nand_rnb = <&pio42 4 ALT3 IN>;
1259 nand_oe = <&pio42 5 ALT3 OUT>;