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 interrupts-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>;
113 ir = <&pio4 0 ALT2 IN>;
118 /* SBC_ASC0 - UART10 */
120 pinctrl_sbc_serial0: sbc_serial0-0 {
122 tx = <&pio3 4 ALT1 OUT>;
123 rx = <&pio3 5 ALT1 IN>;
127 /* SBC_ASC1 - UART11 */
129 pinctrl_sbc_serial1: sbc_serial1-0 {
131 tx = <&pio2 6 ALT3 OUT>;
132 rx = <&pio2 7 ALT3 IN>;
138 pinctrl_i2c10_default: i2c10-default {
140 sda = <&pio4 6 ALT1 BIDIR>;
141 scl = <&pio4 5 ALT1 BIDIR>;
147 pinctrl_i2c11_default: i2c11-default {
149 sda = <&pio5 1 ALT1 BIDIR>;
150 scl = <&pio5 0 ALT1 BIDIR>;
156 pinctrl_keyscan: keyscan {
158 keyin0 = <&pio4 0 ALT6 IN>;
159 keyin1 = <&pio4 5 ALT4 IN>;
160 keyin2 = <&pio0 4 ALT2 IN>;
161 keyin3 = <&pio2 6 ALT2 IN>;
163 keyout0 = <&pio4 6 ALT4 OUT>;
164 keyout1 = <&pio1 7 ALT2 OUT>;
165 keyout2 = <&pio0 6 ALT2 OUT>;
166 keyout3 = <&pio2 7 ALT2 OUT>;
173 * Almost all the boards based on STiH407 SoC have an embedded
174 * switch where the mdio/mdc have been used for managing the SMI
175 * iface via I2C. For this reason these lines can be allocated
176 * by using dedicated configuration (in case of there will be a
177 * standard PHY transceiver on-board).
179 pinctrl_rgmii1: rgmii1-0 {
182 txd0 = <&pio0 0 ALT1 OUT DE_IO 0 CLK_A>;
183 txd1 = <&pio0 1 ALT1 OUT DE_IO 0 CLK_A>;
184 txd2 = <&pio0 2 ALT1 OUT DE_IO 0 CLK_A>;
185 txd3 = <&pio0 3 ALT1 OUT DE_IO 0 CLK_A>;
186 txen = <&pio0 5 ALT1 OUT DE_IO 0 CLK_A>;
187 txclk = <&pio0 6 ALT1 IN NICLK 0 CLK_A>;
188 rxd0 = <&pio1 4 ALT1 IN DE_IO 0 CLK_A>;
189 rxd1 = <&pio1 5 ALT1 IN DE_IO 0 CLK_A>;
190 rxd2 = <&pio1 6 ALT1 IN DE_IO 0 CLK_A>;
191 rxd3 = <&pio1 7 ALT1 IN DE_IO 0 CLK_A>;
192 rxdv = <&pio2 0 ALT1 IN DE_IO 0 CLK_A>;
193 rxclk = <&pio2 2 ALT1 IN NICLK 500 CLK_A>;
194 clk125 = <&pio3 7 ALT4 IN NICLK 0 CLK_A>;
195 phyclk = <&pio2 3 ALT4 OUT NICLK 1750 CLK_B>;
199 pinctrl_rgmii1_mdio: rgmii1-mdio {
201 mdio = <&pio1 0 ALT1 OUT BYPASS 0>;
202 mdc = <&pio1 1 ALT1 OUT NICLK 0 CLK_A>;
203 mdint = <&pio1 3 ALT1 IN BYPASS 0>;
209 txd0 = <&pio0 0 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
210 txd1 = <&pio0 1 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
211 txd2 = <&pio0 2 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
212 txd3 = <&pio0 3 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
213 txer = <&pio0 4 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
214 txen = <&pio0 5 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
215 txclk = <&pio0 6 ALT1 IN NICLK 0 CLK_A>;
216 col = <&pio0 7 ALT1 IN BYPASS 1000>;
218 mdio = <&pio1 0 ALT1 OUT BYPASS 1500>;
219 mdc = <&pio1 1 ALT1 OUT NICLK 0 CLK_A>;
220 crs = <&pio1 2 ALT1 IN BYPASS 1000>;
221 mdint = <&pio1 3 ALT1 IN BYPASS 0>;
222 rxd0 = <&pio1 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
223 rxd1 = <&pio1 5 ALT1 IN SE_NICLK_IO 0 CLK_A>;
224 rxd2 = <&pio1 6 ALT1 IN SE_NICLK_IO 0 CLK_A>;
225 rxd3 = <&pio1 7 ALT1 IN SE_NICLK_IO 0 CLK_A>;
227 rxdv = <&pio2 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
228 rx_er = <&pio2 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
229 rxclk = <&pio2 2 ALT1 IN NICLK 0 CLK_A>;
230 phyclk = <&pio2 3 ALT1 OUT NICLK 0 CLK_A>;
236 pinctrl_pwm1_chan0_default: pwm1-0-default {
238 pwm-out = <&pio3 0 ALT1 OUT>;
241 pinctrl_pwm1_chan1_default: pwm1-1-default {
243 pwm-out = <&pio4 4 ALT1 OUT>;
246 pinctrl_pwm1_chan2_default: pwm1-2-default {
248 pwm-out = <&pio4 6 ALT3 OUT>;
251 pinctrl_pwm1_chan3_default: pwm1-3-default {
253 pwm-out = <&pio4 7 ALT3 OUT>;
259 pin-controller-front0 {
260 #address-cells = <1>;
262 compatible = "st,stih407-front-pinctrl";
263 st,syscfg = <&syscfg_front>;
264 reg = <0x0920f080 0x4>;
265 reg-names = "irqmux";
266 interrupts = <GIC_SPI 189 IRQ_TYPE_NONE>;
267 interrupts-names = "irqmux";
268 ranges = <0 0x09200000 0x10000>;
270 pio10: pio@09200000 {
273 interrupt-controller;
274 #interrupt-cells = <2>;
276 st,bank-name = "PIO10";
278 pio11: pio@09201000 {
281 interrupt-controller;
282 #interrupt-cells = <2>;
283 reg = <0x1000 0x100>;
284 st,bank-name = "PIO11";
286 pio12: pio@09202000 {
289 interrupt-controller;
290 #interrupt-cells = <2>;
291 reg = <0x2000 0x100>;
292 st,bank-name = "PIO12";
294 pio13: pio@09203000 {
297 interrupt-controller;
298 #interrupt-cells = <2>;
299 reg = <0x3000 0x100>;
300 st,bank-name = "PIO13";
302 pio14: pio@09204000 {
305 interrupt-controller;
306 #interrupt-cells = <2>;
307 reg = <0x4000 0x100>;
308 st,bank-name = "PIO14";
310 pio15: pio@09205000 {
313 interrupt-controller;
314 #interrupt-cells = <2>;
315 reg = <0x5000 0x100>;
316 st,bank-name = "PIO15";
318 pio16: pio@09206000 {
321 interrupt-controller;
322 #interrupt-cells = <2>;
323 reg = <0x6000 0x100>;
324 st,bank-name = "PIO16";
326 pio17: pio@09207000 {
329 interrupt-controller;
330 #interrupt-cells = <2>;
331 reg = <0x7000 0x100>;
332 st,bank-name = "PIO17";
334 pio18: pio@09208000 {
337 interrupt-controller;
338 #interrupt-cells = <2>;
339 reg = <0x8000 0x100>;
340 st,bank-name = "PIO18";
342 pio19: pio@09209000 {
345 interrupt-controller;
346 #interrupt-cells = <2>;
347 reg = <0x9000 0x100>;
348 st,bank-name = "PIO19";
353 pinctrl_serial0: serial0-0 {
355 tx = <&pio17 0 ALT1 OUT>;
356 rx = <&pio17 1 ALT1 IN>;
362 pinctrl_serial1: serial1-0 {
364 tx = <&pio16 0 ALT1 OUT>;
365 rx = <&pio16 1 ALT1 IN>;
371 pinctrl_serial2: serial2-0 {
373 tx = <&pio15 0 ALT1 OUT>;
374 rx = <&pio15 1 ALT1 IN>;
382 sd_clk = <&pio19 3 ALT5 BIDIR NICLK 0 CLK_B>;
383 sd_cmd = <&pio19 2 ALT5 BIDIR_PU BYPASS 0>;
384 sd_dat0 = <&pio19 4 ALT5 BIDIR_PU BYPASS 0>;
385 sd_dat1 = <&pio19 5 ALT5 BIDIR_PU BYPASS 0>;
386 sd_dat2 = <&pio19 6 ALT5 BIDIR_PU BYPASS 0>;
387 sd_dat3 = <&pio19 7 ALT5 BIDIR_PU BYPASS 0>;
388 sd_led = <&pio16 6 ALT6 OUT>;
389 sd_pwren = <&pio16 7 ALT6 OUT>;
390 sd_cd = <&pio19 0 ALT6 IN>;
391 sd_wp = <&pio19 1 ALT6 IN>;
398 pinctrl_i2c0_default: i2c0-default {
400 sda = <&pio10 6 ALT2 BIDIR>;
401 scl = <&pio10 5 ALT2 BIDIR>;
407 pinctrl_i2c1_default: i2c1-default {
409 sda = <&pio11 1 ALT2 BIDIR>;
410 scl = <&pio11 0 ALT2 BIDIR>;
416 pinctrl_i2c2_default: i2c2-default {
418 sda = <&pio15 6 ALT2 BIDIR>;
419 scl = <&pio15 5 ALT2 BIDIR>;
425 pinctrl_i2c3_default: i2c3-default {
427 sda = <&pio18 6 ALT1 BIDIR>;
428 scl = <&pio18 5 ALT1 BIDIR>;
434 pinctrl_spi0_default: spi0-default {
436 mtsr = <&pio12 6 ALT2 BIDIR>;
437 mrst = <&pio12 7 ALT2 BIDIR>;
438 scl = <&pio12 5 ALT2 BIDIR>;
444 pinctrl_tsin0_parallel: tsin0_parallel {
446 DATA7 = <&pio10 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
447 DATA6 = <&pio10 5 ALT1 IN SE_NICLK_IO 0 CLK_A>;
448 DATA5 = <&pio10 6 ALT1 IN SE_NICLK_IO 0 CLK_A>;
449 DATA4 = <&pio10 7 ALT1 IN SE_NICLK_IO 0 CLK_A>;
450 DATA3 = <&pio11 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
451 DATA2 = <&pio11 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
452 DATA1 = <&pio11 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
453 DATA0 = <&pio11 3 ALT1 IN SE_NICLK_IO 0 CLK_A>;
454 CLKIN = <&pio10 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
455 VALID = <&pio10 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
456 ERROR = <&pio10 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
457 PKCLK = <&pio10 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
460 pinctrl_tsin0_serial: tsin0_serial {
462 DATA7 = <&pio10 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
463 CLKIN = <&pio10 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
464 VALID = <&pio10 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
465 ERROR = <&pio10 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
466 PKCLK = <&pio10 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
472 pinctrl_tsin1_parallel: tsin1_parallel {
474 DATA7 = <&pio12 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
475 DATA6 = <&pio12 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
476 DATA5 = <&pio12 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
477 DATA4 = <&pio12 3 ALT1 IN SE_NICLK_IO 0 CLK_A>;
478 DATA3 = <&pio12 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
479 DATA2 = <&pio12 5 ALT1 IN SE_NICLK_IO 0 CLK_A>;
480 DATA1 = <&pio12 6 ALT1 IN SE_NICLK_IO 0 CLK_A>;
481 DATA0 = <&pio12 7 ALT1 IN SE_NICLK_IO 0 CLK_A>;
482 CLKIN = <&pio11 7 ALT1 IN CLKNOTDATA 0 CLK_A>;
483 VALID = <&pio11 5 ALT1 IN SE_NICLK_IO 0 CLK_A>;
484 ERROR = <&pio11 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
485 PKCLK = <&pio11 6 ALT1 IN SE_NICLK_IO 0 CLK_A>;
488 pinctrl_tsin1_serial: tsin1_serial {
490 DATA7 = <&pio12 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
491 CLKIN = <&pio11 7 ALT1 IN CLKNOTDATA 0 CLK_A>;
492 VALID = <&pio11 5 ALT1 IN SE_NICLK_IO 0 CLK_A>;
493 ERROR = <&pio11 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
494 PKCLK = <&pio11 6 ALT1 IN SE_NICLK_IO 0 CLK_A>;
500 pinctrl_tsin2_parallel: tsin2_parallel {
502 DATA7 = <&pio13 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
503 DATA6 = <&pio13 5 ALT2 IN SE_NICLK_IO 0 CLK_B>;
504 DATA5 = <&pio13 6 ALT2 IN SE_NICLK_IO 0 CLK_B>;
505 DATA4 = <&pio13 7 ALT2 IN SE_NICLK_IO 0 CLK_B>;
506 DATA3 = <&pio14 0 ALT2 IN SE_NICLK_IO 0 CLK_A>;
507 DATA2 = <&pio14 1 ALT2 IN SE_NICLK_IO 0 CLK_B>;
508 DATA1 = <&pio14 2 ALT2 IN SE_NICLK_IO 0 CLK_A>;
509 DATA0 = <&pio14 3 ALT2 IN SE_NICLK_IO 0 CLK_A>;
510 CLKIN = <&pio13 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
511 VALID = <&pio13 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
512 ERROR = <&pio13 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
513 PKCLK = <&pio13 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
516 pinctrl_tsin2_serial: tsin2_serial {
518 DATA7 = <&pio13 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
519 CLKIN = <&pio13 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
520 VALID = <&pio13 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
521 ERROR = <&pio13 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
522 PKCLK = <&pio13 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
528 pinctrl_tsin3_serial: tsin3_serial {
530 DATA7 = <&pio14 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
531 CLKIN = <&pio14 0 ALT1 IN CLKNOTDATA 0 CLK_A>;
532 VALID = <&pio13 6 ALT1 IN SE_NICLK_IO 0 CLK_A>;
533 ERROR = <&pio13 5 ALT1 IN SE_NICLK_IO 0 CLK_A>;
534 PKCLK = <&pio13 7 ALT1 IN SE_NICLK_IO 0 CLK_A>;
540 pinctrl_tsin4_serial_alt3: tsin4_serial_alt3 {
542 DATA7 = <&pio14 6 ALT3 IN SE_NICLK_IO 0 CLK_A>;
543 CLKIN = <&pio14 5 ALT3 IN CLKNOTDATA 0 CLK_A>;
544 VALID = <&pio14 3 ALT3 IN SE_NICLK_IO 0 CLK_B>;
545 ERROR = <&pio14 2 ALT3 IN SE_NICLK_IO 0 CLK_B>;
546 PKCLK = <&pio14 4 ALT3 IN SE_NICLK_IO 0 CLK_A>;
552 pinctrl_tsin5_serial_alt1: tsin5_serial_alt1 {
554 DATA7 = <&pio18 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
555 CLKIN = <&pio18 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
556 VALID = <&pio18 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
557 ERROR = <&pio18 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
558 PKCLK = <&pio18 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
561 pinctrl_tsin5_serial_alt2: tsin5_serial_alt2 {
563 DATA7 = <&pio19 4 ALT2 IN SE_NICLK_IO 0 CLK_A>;
564 CLKIN = <&pio19 3 ALT2 IN CLKNOTDATA 0 CLK_A>;
565 VALID = <&pio19 1 ALT2 IN SE_NICLK_IO 0 CLK_A>;
566 ERROR = <&pio19 0 ALT2 IN SE_NICLK_IO 0 CLK_A>;
567 PKCLK = <&pio19 2 ALT2 IN SE_NICLK_IO 0 CLK_A>;
573 pinctrl_tsout0_parallel: tsout0_parallel {
575 DATA7 = <&pio12 0 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
576 DATA6 = <&pio12 1 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
577 DATA5 = <&pio12 2 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
578 DATA4 = <&pio12 3 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
579 DATA3 = <&pio12 4 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
580 DATA2 = <&pio12 5 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
581 DATA1 = <&pio12 6 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
582 DATA0 = <&pio12 7 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
583 CLKIN = <&pio11 7 ALT3 OUT NICLK 0 CLK_A>;
584 VALID = <&pio11 5 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
585 ERROR = <&pio11 4 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
586 PKCLK = <&pio11 6 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
589 pinctrl_tsout0_serial: tsout0_serial {
591 DATA7 = <&pio12 0 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
592 CLKIN = <&pio11 7 ALT3 OUT NICLK 0 CLK_A>;
593 VALID = <&pio11 5 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
594 ERROR = <&pio11 4 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
595 PKCLK = <&pio11 6 ALT3 OUT SE_NICLK_IO 0 CLK_A>;
601 pinctrl_tsout1_serial: tsout1_serial {
603 DATA7 = <&pio19 4 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
604 CLKIN = <&pio19 3 ALT1 OUT NICLK 0 CLK_A>;
605 VALID = <&pio19 1 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
606 ERROR = <&pio19 0 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
607 PKCLK = <&pio19 2 ALT1 OUT SE_NICLK_IO 0 CLK_A>;
613 pinctrl_mtsin0_parallel: mtsin0_parallel {
615 DATA7 = <&pio10 4 ALT3 IN SE_NICLK_IO 0 CLK_A>;
616 DATA6 = <&pio10 5 ALT3 IN SE_NICLK_IO 0 CLK_A>;
617 DATA5 = <&pio10 6 ALT3 IN SE_NICLK_IO 0 CLK_A>;
618 DATA4 = <&pio10 7 ALT3 IN SE_NICLK_IO 0 CLK_A>;
619 DATA3 = <&pio11 0 ALT3 IN SE_NICLK_IO 0 CLK_A>;
620 DATA2 = <&pio11 1 ALT3 IN SE_NICLK_IO 0 CLK_A>;
621 DATA1 = <&pio11 2 ALT3 IN SE_NICLK_IO 0 CLK_A>;
622 DATA0 = <&pio11 3 ALT3 IN SE_NICLK_IO 0 CLK_A>;
623 CLKIN = <&pio10 3 ALT3 IN CLKNOTDATA 0 CLK_A>;
624 VALID = <&pio10 1 ALT3 IN SE_NICLK_IO 0 CLK_A>;
625 ERROR = <&pio10 0 ALT3 IN SE_NICLK_IO 0 CLK_A>;
626 PKCLK = <&pio10 2 ALT3 IN SE_NICLK_IO 0 CLK_A>;
632 pin-controller-front1 {
633 #address-cells = <1>;
635 compatible = "st,stih407-front-pinctrl";
636 st,syscfg = <&syscfg_front>;
637 reg = <0x0921f080 0x4>;
638 reg-names = "irqmux";
639 interrupts = <GIC_SPI 190 IRQ_TYPE_NONE>;
640 interrupts-names = "irqmux";
641 ranges = <0 0x09210000 0x10000>;
644 pinctrl_tsin4_serial_alt1: tsin4_serial_alt1 {
646 DATA7 = <&pio20 4 ALT1 IN SE_NICLK_IO 0 CLK_A>;
647 CLKIN = <&pio20 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
648 VALID = <&pio20 1 ALT1 IN SE_NICLK_IO 0 CLK_A>;
649 ERROR = <&pio20 0 ALT1 IN SE_NICLK_IO 0 CLK_A>;
650 PKCLK = <&pio20 2 ALT1 IN SE_NICLK_IO 0 CLK_A>;
655 pio20: pio@09210000 {
658 interrupt-controller;
659 #interrupt-cells = <2>;
661 st,bank-name = "PIO20";
665 pin-controller-rear {
666 #address-cells = <1>;
668 compatible = "st,stih407-rear-pinctrl";
669 st,syscfg = <&syscfg_rear>;
670 reg = <0x0922f080 0x4>;
671 reg-names = "irqmux";
672 interrupts = <GIC_SPI 191 IRQ_TYPE_NONE>;
673 interrupts-names = "irqmux";
674 ranges = <0 0x09220000 0x6000>;
676 pio30: gpio@09220000 {
679 interrupt-controller;
680 #interrupt-cells = <2>;
682 st,bank-name = "PIO30";
684 pio31: gpio@09221000 {
687 interrupt-controller;
688 #interrupt-cells = <2>;
689 reg = <0x1000 0x100>;
690 st,bank-name = "PIO31";
692 pio32: gpio@09222000 {
695 interrupt-controller;
696 #interrupt-cells = <2>;
697 reg = <0x2000 0x100>;
698 st,bank-name = "PIO32";
700 pio33: gpio@09223000 {
703 interrupt-controller;
704 #interrupt-cells = <2>;
705 reg = <0x3000 0x100>;
706 st,bank-name = "PIO33";
708 pio34: gpio@09224000 {
711 interrupt-controller;
712 #interrupt-cells = <2>;
713 reg = <0x4000 0x100>;
714 st,bank-name = "PIO34";
716 pio35: gpio@09225000 {
719 interrupt-controller;
720 #interrupt-cells = <2>;
721 reg = <0x5000 0x100>;
722 st,bank-name = "PIO35";
723 st,retime-pin-mask = <0x7f>;
727 pinctrl_i2c4_default: i2c4-default {
729 sda = <&pio30 1 ALT1 BIDIR>;
730 scl = <&pio30 0 ALT1 BIDIR>;
736 pinctrl_i2c5_default: i2c5-default {
738 sda = <&pio34 4 ALT1 BIDIR>;
739 scl = <&pio34 3 ALT1 BIDIR>;
745 pinctrl_usb3: usb3-2 {
747 usb-oc-detect = <&pio35 4 ALT1 IN>;
748 usb-pwr-enable = <&pio35 5 ALT1 OUT>;
749 usb-vbus-valid = <&pio35 6 ALT1 IN>;
755 pinctrl_pwm0_chan0_default: pwm0-0-default {
757 pwm-out = <&pio31 1 ALT1 OUT>;
763 pin-controller-flash {
764 #address-cells = <1>;
766 compatible = "st,stih407-flash-pinctrl";
767 st,syscfg = <&syscfg_flash>;
768 reg = <0x0923f080 0x4>;
769 reg-names = "irqmux";
770 interrupts = <GIC_SPI 192 IRQ_TYPE_NONE>;
771 interrupts-names = "irqmux";
772 ranges = <0 0x09230000 0x3000>;
774 pio40: gpio@09230000 {
777 interrupt-controller;
778 #interrupt-cells = <2>;
780 st,bank-name = "PIO40";
782 pio41: gpio@09231000 {
785 interrupt-controller;
786 #interrupt-cells = <2>;
787 reg = <0x1000 0x100>;
788 st,bank-name = "PIO41";
790 pio42: gpio@09232000 {
793 interrupt-controller;
794 #interrupt-cells = <2>;
795 reg = <0x2000 0x100>;
796 st,bank-name = "PIO42";
800 pinctrl_mmc0: mmc0-0 {
802 emmc_clk = <&pio40 6 ALT1 BIDIR>;
803 emmc_cmd = <&pio40 7 ALT1 BIDIR_PU>;
804 emmc_d0 = <&pio41 0 ALT1 BIDIR_PU>;
805 emmc_d1 = <&pio41 1 ALT1 BIDIR_PU>;
806 emmc_d2 = <&pio41 2 ALT1 BIDIR_PU>;
807 emmc_d3 = <&pio41 3 ALT1 BIDIR_PU>;
808 emmc_d4 = <&pio41 4 ALT1 BIDIR_PU>;
809 emmc_d5 = <&pio41 5 ALT1 BIDIR_PU>;
810 emmc_d6 = <&pio41 6 ALT1 BIDIR_PU>;
811 emmc_d7 = <&pio41 7 ALT1 BIDIR_PU>;