1 --- a/Documentation/devicetree/bindings/pinctrl/atmel,at91-pio4-pinctrl.txt
2 +++ b/Documentation/devicetree/bindings/pinctrl/atmel,at91-pio4-pinctrl.txt
3 @@ -35,7 +35,12 @@ right representation of the pin.
5 - GENERIC_PINCONFIG: generic pinconfig options to use, bias-disable,
6 bias-pull-down, bias-pull-up, drive-open-drain, input-schmitt-enable,
7 -input-debounce, output-low, output-high.
8 +input-debounce, output-low, output-high, drive-strength.
10 +Concerning the drive-strength property, the values accepted are
11 +ATMEL_PIO_DRVSTR_LO, ATMEL_PIO_DRVSTR_ME, ATMEL_PIO_DRVSTR_HI. The current
12 +depends on VDDIOP. You can find the details in the DC Characteristics table
17 --- a/arch/arm/boot/dts/Makefile
18 +++ b/arch/arm/boot/dts/Makefile
19 @@ -49,6 +49,7 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \
21 dtb-$(CONFIG_SOC_SAM_V7) += \
23 + at91-sama5d27_som1_ek.dtb \
24 at91-sama5d2_xplained.dtb \
25 at91-sama5d3_xplained.dtb \
28 +++ b/arch/arm/boot/dts/at91-sama5d27_som1.dtsi
31 + * at91-sama5d27_som1.dtsi - Device Tree file for SAMA5D27 SoM1 board
33 + * Copyright (c) 2017, Microchip Technology Inc.
34 + * 2017 Cristian Birsan <cristian.birsan@microchip.com>
35 + * 2017 Claudiu Beznea <claudiu.beznea@microchip.com>
37 + * This file is dual-licensed: you can use it either under the terms
38 + * of the GPL or the X11 license, at your option. Note that this dual
39 + * licensing only applies to this file, and not this project as a
42 + * a) This file is free software; you can redistribute it and/or
43 + * modify it under the terms of the GNU General Public License as
44 + * published by the Free Software Foundation; either version 2 of the
45 + * License, or (at your option) any later version.
47 + * This file is distributed in the hope that it will be useful,
48 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
49 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
50 + * GNU General Public License for more details.
52 + * Or, alternatively,
54 + * b) Permission is hereby granted, free of charge, to any person
55 + * obtaining a copy of this software and associated documentation
56 + * files (the "Software"), to deal in the Software without
57 + * restriction, including without limitation the rights to use,
58 + * copy, modify, merge, publish, distribute, sublicense, and/or
59 + * sell copies of the Software, and to permit persons to whom the
60 + * Software is furnished to do so, subject to the following
63 + * The above copyright notice and this permission notice shall be
64 + * included in all copies or substantial portions of the Software.
66 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
67 + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
68 + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
69 + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
70 + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
71 + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
72 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
73 + * OTHER DEALINGS IN THE SOFTWARE.
75 +#include "sama5d2.dtsi"
76 +#include "sama5d2-pinfunc.h"
79 + model = "Atmel SAMA5D27 SoM1";
80 + compatible = "atmel,sama5d27-som1", "atmel,sama5d27", "atmel,sama5d2", "atmel,sama5";
84 + clock-frequency = <32768>;
88 + clock-frequency = <24000000>;
94 + qspi1: spi@f0024000 {
95 + pinctrl-names = "default";
96 + pinctrl-0 = <&pinctrl_qspi1_default>;
99 + #address-cells = <1>;
101 + compatible = "jedec,spi-nor";
103 + spi-max-frequency = <80000000>;
106 + at91bootstrap@00000000 {
107 + label = "at91bootstrap";
108 + reg = <0x00000000 0x00010000>;
111 + bootloader@00010000 {
112 + label = "bootloader";
113 + reg = <0x00010000 0x000a0000>;
116 + bootloaderenv@000b0000 {
117 + label = "bootloader env";
118 + reg = <0x000b0000 0x00010000>;
122 + label = "device tree";
123 + reg = <0x000c0000 0x0020000>;
128 + reg = <0x000e0000 0x0400000>;
133 + macb0: ethernet@f8008000 {
134 + pinctrl-names = "default";
135 + pinctrl-0 = <&pinctrl_macb0_default>;
140 + interrupt-parent = <&pioA>;
141 + interrupts = <PIN_PD31 IRQ_TYPE_LEVEL_LOW>;
142 + pinctrl-names = "default";
143 + pinctrl-0 = <&pinctrl_macb0_phy_irq>;
147 + i2c0: i2c@f8028000 {
149 + pinctrl-names = "default";
150 + pinctrl-0 = <&pinctrl_i2c0_default>;
154 + compatible = "24c02";
161 + pinctrl_i2c0_default: i2c0_default {
162 + pinmux = <PIN_PD21__TWD0>,
167 + pinctrl_qspi1_default: qspi1_default {
169 + pinmux = <PIN_PB5__QSPI1_SCK>,
170 + <PIN_PB6__QSPI1_CS>;
175 + pinmux = <PIN_PB7__QSPI1_IO0>,
176 + <PIN_PB8__QSPI1_IO1>,
177 + <PIN_PB9__QSPI1_IO2>,
178 + <PIN_PB10__QSPI1_IO3>;
183 + pinctrl_macb0_default: macb0_default {
184 + pinmux = <PIN_PD9__GTXCK>,
197 + pinctrl_macb0_phy_irq: macb0_phy_irq {
198 + pinmux = <PIN_PD31__GPIO>;
206 +++ b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
209 + * at91-sama5d27_som1_ek.dts - Device Tree file for SAMA5D27-SOM1-EK board
211 + * Copyright (c) 2017, Microchip Technology Inc.
212 + * 2016 Nicolas Ferre <nicolas.ferre@atmel.com>
213 + * 2017 Cristian Birsan <cristian.birsan@microchip.com>
214 + * 2017 Claudiu Beznea <claudiu.beznea@microchip.com>
216 + * This file is dual-licensed: you can use it either under the terms
217 + * of the GPL or the X11 license, at your option. Note that this dual
218 + * licensing only applies to this file, and not this project as a
221 + * a) This file is free software; you can redistribute it and/or
222 + * modify it under the terms of the GNU General Public License as
223 + * published by the Free Software Foundation; either version 2 of the
224 + * License, or (at your option) any later version.
226 + * This file is distributed in the hope that it will be useful,
227 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
228 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
229 + * GNU General Public License for more details.
231 + * Or, alternatively,
233 + * b) Permission is hereby granted, free of charge, to any person
234 + * obtaining a copy of this software and associated documentation
235 + * files (the "Software"), to deal in the Software without
236 + * restriction, including without limitation the rights to use,
237 + * copy, modify, merge, publish, distribute, sublicense, and/or
238 + * sell copies of the Software, and to permit persons to whom the
239 + * Software is furnished to do so, subject to the following
242 + * The above copyright notice and this permission notice shall be
243 + * included in all copies or substantial portions of the Software.
245 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
246 + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
247 + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
248 + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
249 + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
250 + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
251 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
252 + * OTHER DEALINGS IN THE SOFTWARE.
255 +#include "at91-sama5d27_som1_ek_common.dtsi"
258 + model = "Atmel SAMA5D27 SOM1 EK";
259 + compatible = "atmel,sama5d27-som1-ek", "atmel,sama5d27-som1", "atmel,sama5d27", "atmel,sama5d2", "atmel,sama5";
262 +++ b/arch/arm/boot/dts/at91-sama5d27_som1_ek_common.dtsi
265 + * at91-sama5d27_som1_ek_common.dtsi - Device Tree file for SAMA5D27-SOM1-EK board
267 + * Copyright (c) 2017, Microchip Technology Inc.
268 + * 2016 Nicolas Ferre <nicolas.ferre@atmel.com>
269 + * 2017 Cristian Birsan <cristian.birsan@microchip.com>
270 + * 2017 Claudiu Beznea <claudiu.beznea@microchip.com>
272 + * This file is dual-licensed: you can use it either under the terms
273 + * of the GPL or the X11 license, at your option. Note that this dual
274 + * licensing only applies to this file, and not this project as a
277 + * a) This file is free software; you can redistribute it and/or
278 + * modify it under the terms of the GNU General Public License as
279 + * published by the Free Software Foundation; either version 2 of the
280 + * License, or (at your option) any later version.
282 + * This file is distributed in the hope that it will be useful,
283 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
284 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
285 + * GNU General Public License for more details.
287 + * Or, alternatively,
289 + * b) Permission is hereby granted, free of charge, to any person
290 + * obtaining a copy of this software and associated documentation
291 + * files (the "Software"), to deal in the Software without
292 + * restriction, including without limitation the rights to use,
293 + * copy, modify, merge, publish, distribute, sublicense, and/or
294 + * sell copies of the Software, and to permit persons to whom the
295 + * Software is furnished to do so, subject to the following
298 + * The above copyright notice and this permission notice shall be
299 + * included in all copies or substantial portions of the Software.
301 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
302 + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
303 + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
304 + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
305 + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
306 + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
307 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
308 + * OTHER DEALINGS IN THE SOFTWARE.
310 +#include "at91-sama5d27_som1.dtsi"
311 +#include <dt-bindings/mfd/atmel-flexcom.h>
312 +#include <dt-bindings/gpio/gpio.h>
313 +#include <dt-bindings/pinctrl/at91.h>
316 + model = "Atmel SAMA5D27 SOM1 EK";
317 + compatible = "atmel,sama5d27-som1-ek", "atmel,sama5d27-som1", "atmel,sama5d27", "atmel,sama5d2", "atmel,sama5";
320 + serial0 = &uart1; /* DBGU */
321 + serial1 = &uart4; /* mikro BUS 1 */
322 + serial2 = &uart2; /* mikro BUS 2 */
328 + stdout-path = "serial0:115200n8";
332 + usb0: gadget@00300000 {
333 + atmel,vbus-gpio = <&pioA PIN_PD20 GPIO_ACTIVE_HIGH>;
334 + pinctrl-names = "default";
335 + pinctrl-0 = <&pinctrl_usba_vbus>;
339 + usb1: ohci@00400000 {
341 + atmel,vbus-gpio = <0 /* &pioA PIN_PD20 GPIO_ACTIVE_HIGH */
342 + &pioA PIN_PA27 GPIO_ACTIVE_HIGH
345 + pinctrl-names = "default";
346 + pinctrl-0 = <&pinctrl_usb_default>;
350 + usb2: ehci@00500000 {
354 + sdmmc0: sdio-host@a0000000 {
356 + pinctrl-names = "default";
357 + pinctrl-0 = <&pinctrl_sdmmc0_default>;
361 + sdmmc1: sdio-host@b0000000 {
363 + pinctrl-names = "default";
364 + pinctrl-0 = <&pinctrl_sdmmc1_default>;
369 + hlcdc: hlcdc@f0000000 {
370 + status = "disabled";
372 + hlcdc-display-controller {
373 + pinctrl-names = "default";
374 + pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_rgb>;
377 + hlcdc_pwm: hlcdc-pwm {
378 + pinctrl-names = "default";
379 + pinctrl-0 = <&pinctrl_lcd_pwm>;
383 + pmc: pmc@f0014000 {
385 + compatible = "atmel,sama5d2-pmc-fast-startup";
386 + #address-cells = <1>;
389 + atmel,wakeup-rtc-timer;
395 + gmac_wol: input@10 {
397 + atmel,wakeup-active-high;
402 + isc: isc@f0008000 {
403 + pinctrl-names = "default";
404 + pinctrl-0 = <&pinctrl_isc_base &pinctrl_isc_data_8bit &pinctrl_isc_data_9_10 &pinctrl_isc_data_11_12>;
408 + qspi1: spi@f0024000 {
412 + spi0: spi@f8000000 {
413 + pinctrl-names = "default";
414 + pinctrl-0 = <&pinctrl_spi0_default>;
418 + macb0: ethernet@f8008000 {
422 + uart1: serial@f8020000 {
423 + pinctrl-names = "default";
424 + pinctrl-0 = <&pinctrl_uart1_default>;
430 + uart2: serial@f8024000 {
431 + pinctrl-names = "default";
432 + pinctrl-0 = <&pinctrl_mikrobus2_uart>;
438 + pwm0: pwm@f802c000 {
439 + pinctrl-names = "default";
440 + pinctrl-0 = <&pinctrl_mikrobus1_pwm &pinctrl_mikrobus2_pwm>;
441 + status = "disabled"; /* Conflict with leds. */
444 + flx1: flexcom@f8038000 {
445 + atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
449 + compatible = "atmel,sama5d2-i2c";
450 + reg = <0x600 0x200>;
451 + interrupts = <20 IRQ_TYPE_LEVEL_HIGH 7>;
453 + dma-names = "tx", "rx";
454 + #address-cells = <1>;
456 + clocks = <&flx1_clk>;
457 + pinctrl-names = "default";
458 + pinctrl-0 = <&pinctrl_mikrobus_i2c>;
459 + atmel,fifo-size = <16>;
465 + atmel,shdwc-debouncer = <976>;
466 + atmel,wakeup-rtc-timer;
470 + atmel,wakeup-type = "low";
474 + watchdog@f8048040 {
478 + uart3: serial@fc008000 {
481 + pinctrl-names = "default";
482 + pinctrl-0 = <&pinctrl_uart3_default>;
483 + status = "disabled"; /* Conflict with isc. */
486 + uart4: serial@fc00c000 {
489 + pinctrl-names = "default";
490 + pinctrl-0 = <&pinctrl_mikrobus1_uart>;
494 + flx3: flexcom@fc014000 {
495 + atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
496 + status = "disabled";
498 + uart7: serial@200 {
499 + compatible = "atmel,at91sam9260-usart";
500 + reg = <0x200 0x200>;
501 + interrupts = <22 IRQ_TYPE_LEVEL_HIGH 7>;
502 + clocks = <&flx3_clk>;
503 + clock-names = "usart";
504 + pinctrl-names = "default";
505 + pinctrl-0 = <&pinctrl_flx3_default>;
506 + atmel,fifo-size = <32>;
507 + status = "disabled"; /* Conflict with isc. */
511 + compatible = "atmel,at91rm9200-spi";
512 + reg = <0x400 0x200>;
513 + interrupts = <22 IRQ_TYPE_LEVEL_HIGH 7>;
514 + clocks = <&flx3_clk>;
515 + clock-names = "spi_clk";
516 + pinctrl-names = "default";
517 + pinctrl-0 = <&pinctrl_flx3_default>;
518 + atmel,fifo-size = <16>;
519 + status = "disabled"; /* Conflict with isc. */
523 + flx4: flexcom@fc018000 {
524 + atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
527 + uart6: serial@200 {
528 + compatible = "atmel,at91sam9260-usart";
529 + reg = <0x200 0x200>;
530 + interrupts = <23 IRQ_TYPE_LEVEL_HIGH 7>;
531 + clocks = <&flx4_clk>;
532 + clock-names = "usart";
533 + pinctrl-names = "default";
534 + pinctrl-0 = <&pinctrl_flx4_default>;
535 + atmel,fifo-size = <32>;
536 + status = "disabled"; /* Conflict with spi3 and i2c3. */
540 + compatible = "atmel,at91rm9200-spi";
541 + reg = <0x400 0x200>;
542 + interrupts = <23 IRQ_TYPE_LEVEL_HIGH 7>;
543 + clocks = <&flx4_clk>;
544 + clock-names = "spi_clk";
545 + pinctrl-names = "default";
546 + pinctrl-0 = <&pinctrl_mikrobus_spi &pinctrl_mikrobus1_spi_cs &pinctrl_mikrobus2_spi_cs>;
547 + atmel,fifo-size = <16>;
552 + compatible = "atmel,sama5d2-i2c";
553 + reg = <0x600 0x200>;
554 + interrupts = <23 IRQ_TYPE_LEVEL_HIGH 7>;
556 + dma-names = "tx", "rx";
557 + #address-cells = <1>;
559 + clocks = <&flx4_clk>;
560 + pinctrl-names = "default";
561 + pinctrl-0 = <&pinctrl_flx4_default>;
562 + atmel,fifo-size = <16>;
563 + status = "disabled"; /* Conflict with uart6 and spi3. */
567 + i2c1: i2c@fc028000 {
569 + pinctrl-names = "default";
570 + pinctrl-0 = <&pinctrl_i2c1_default>;
576 + pinctrl_lcd_base: pinctrl_lcd_base {
577 + pinmux = <PIN_PC5__LCDVSYNC>,
578 + <PIN_PC6__LCDHSYNC>,
582 + drive-strength = <ATMEL_PIO_DRVSTR_ME>;
585 + pinctrl_lcd_rgb: pinctrl_lcd_rgb {
586 + pinmux = <PIN_PB11__LCDDAT0>,
587 + <PIN_PB12__LCDDAT1>,
588 + <PIN_PB13__LCDDAT2>,
589 + <PIN_PB14__LCDDAT3>,
590 + <PIN_PB15__LCDDAT4>,
591 + <PIN_PB16__LCDDAT5>,
592 + <PIN_PB17__LCDDAT6>,
593 + <PIN_PB18__LCDDAT7>,
594 + <PIN_PB19__LCDDAT8>,
595 + <PIN_PB20__LCDDAT9>,
596 + <PIN_PB21__LCDDAT10>,
597 + <PIN_PB22__LCDDAT11>,
598 + <PIN_PB23__LCDDAT12>,
599 + <PIN_PB24__LCDDAT13>,
600 + <PIN_PB25__LCDDAT14>,
601 + <PIN_PB26__LCDDAT15>,
602 + <PIN_PB27__LCDDAT16>,
603 + <PIN_PB28__LCDDAT17>,
604 + <PIN_PB29__LCDDAT18>,
605 + <PIN_PB30__LCDDAT19>,
606 + <PIN_PB31__LCDDAT20>,
607 + <PIN_PC0__LCDDAT21>,
608 + <PIN_PC1__LCDDAT22>,
609 + <PIN_PC2__LCDDAT23>;
613 + pinctrl_lcd_pwm: pinctrl_lcd_pwm {
614 + pinmux = <PIN_PC3__LCDPWM>;
618 + pinctrl_can1_default: can1_default {
619 + pinmux = <PIN_PC26__CANTX1>,
620 + <PIN_PC27__CANRX1>;
624 + pinctrl_flx3_default: flx3_default {
625 + pinmux = <PIN_PC20__FLEXCOM3_IO0>,
626 + <PIN_PC19__FLEXCOM3_IO1>,
627 + <PIN_PC18__FLEXCOM3_IO2>,
628 + <PIN_PC21__FLEXCOM3_IO3>,
629 + <PIN_PC22__FLEXCOM3_IO4>;
633 + pinctrl_i2c1_default: i2c1_default {
634 + pinmux = <PIN_PD4__TWD1>,
639 + pinctrl_isc_base: isc_base {
640 + pinmux = <PIN_PC21__ISC_PCK>,
641 + <PIN_PC22__ISC_VSYNC>,
642 + <PIN_PC23__ISC_HSYNC>,
643 + <PIN_PC24__ISC_MCK>;
647 + pinctrl_isc_data_8bit: isc_data_8bit {
648 + pinmux = <PIN_PC20__ISC_D11>,
649 + <PIN_PC19__ISC_D10>,
650 + <PIN_PC18__ISC_D9>,
651 + <PIN_PC17__ISC_D8>,
652 + <PIN_PC16__ISC_D7>,
653 + <PIN_PC15__ISC_D6>,
654 + <PIN_PC14__ISC_D5>,
655 + <PIN_PC13__ISC_D4>;
659 + pinctrl_isc_data_9_10: isc_data_9_10 {
660 + pinmux = <PIN_PC12__ISC_D3>,
661 + <PIN_PC11__ISC_D2>;
665 + pinctrl_isc_data_11_12: isc_data_11_12 {
666 + pinmux = <PIN_PC10__ISC_D1>,
671 + pinctrl_key_gpio_default: key_gpio_default {
672 + pinmux = <PIN_PA29__GPIO>;
676 + pinctrl_led_gpio_default: led_gpio_default {
677 + pinmux = <PIN_PA10__GPIO>,
683 + pinctrl_sdmmc0_default: sdmmc0_default {
685 + pinmux = <PIN_PA1__SDMMC0_CMD>,
686 + <PIN_PA2__SDMMC0_DAT0>,
687 + <PIN_PA3__SDMMC0_DAT1>,
688 + <PIN_PA4__SDMMC0_DAT2>,
689 + <PIN_PA5__SDMMC0_DAT3>,
690 + <PIN_PA6__SDMMC0_DAT4>,
691 + <PIN_PA7__SDMMC0_DAT5>,
692 + <PIN_PA8__SDMMC0_DAT6>,
693 + <PIN_PA9__SDMMC0_DAT7>;
698 + pinmux = <PIN_PA0__SDMMC0_CK>,
699 + <PIN_PA11__SDMMC0_VDDSEL>,
700 + <PIN_PA13__SDMMC0_CD>;
705 + pinctrl_sdmmc1_default: sdmmc1_default {
707 + pinmux = <PIN_PA28__SDMMC1_CMD>,
708 + <PIN_PA18__SDMMC1_DAT0>,
709 + <PIN_PA19__SDMMC1_DAT1>,
710 + <PIN_PA20__SDMMC1_DAT2>,
711 + <PIN_PA21__SDMMC1_DAT3>;
716 + pinmux = <PIN_PA22__SDMMC1_CK>,
717 + <PIN_PA30__SDMMC1_CD>;
722 + pinctrl_spi0_default: spi0_default {
723 + pinmux = <PIN_PA14__SPI0_SPCK>,
724 + <PIN_PA15__SPI0_MOSI>,
725 + <PIN_PA16__SPI0_MISO>,
726 + <PIN_PA17__SPI0_NPCS0>;
730 + pinctrl_uart1_default: uart1_default {
731 + pinmux = <PIN_PD2__URXD1>,
736 + pinctrl_uart3_default: uart3_default {
737 + pinmux = <PIN_PC12__URXD3>,
742 + pinctrl_usb_default: usb_default {
743 + pinmux = <PIN_PA27__GPIO>,
748 + pinctrl_usba_vbus: usba_vbus {
749 + pinmux = <PIN_PD20__GPIO>;
753 + pinctrl_mikrobus1_an: mikrobus1_an {
754 + pinmux = <PIN_PD25__GPIO>;
758 + pinctrl_mikrobus2_an: mikrobus2_an {
759 + pinmux = <PIN_PD26__GPIO>;
763 + pinctrl_mikrobus1_rst: mikrobus1_rst {
764 + pinmux = <PIN_PB2__GPIO>;
768 + pinctrl_mikrobus2_rst: mikrobus2_rst {
769 + pinmux = <PIN_PA26__GPIO>;
773 + pinctrl_mikrobus1_spi_cs: mikrobus1_spi_cs {
774 + pinmux = <PIN_PD0__FLEXCOM4_IO4>;
778 + pinctrl_mikrobus2_spi_cs: mikrobus2_spi_cs {
779 + pinmux = <PIN_PC31__FLEXCOM4_IO3>;
783 + pinctrl_mikrobus_spi: mikrobus_spi {
784 + pinmux = <PIN_PC28__FLEXCOM4_IO0>,
785 + <PIN_PC29__FLEXCOM4_IO1>,
786 + <PIN_PC30__FLEXCOM4_IO2>;
790 + pinctrl_mikrobus1_pwm: mikrobus1_pwm {
791 + pinmux = <PIN_PB1__PWML1>;
795 + pinctrl_mikrobus2_pwm: mikrobus2_pwm {
796 + pinmux = <PIN_PA31__PWML0>;
800 + pinctrl_mikrobus1_int: mikrobus1_int {
801 + pinmux = <PIN_PB0__GPIO>;
805 + pinctrl_mikrobus2_int: mikrobus2_int {
806 + pinmux = <PIN_PA25__GPIO>;
810 + pinctrl_mikrobus1_uart: mikrobus1_uart {
811 + pinmux = <PIN_PB3__URXD4>,
816 + pinctrl_mikrobus2_uart: mikrobus2_uart {
817 + pinmux = <PIN_PD23__URXD2>,
822 + pinctrl_mikrobus_i2c: mikrobus1_i2c {
823 + pinmux = <PIN_PA24__FLEXCOM1_IO0>,
824 + <PIN_PA23__FLEXCOM1_IO1>;
828 + pinctrl_flx4_default: flx4_uart_default {
829 + pinmux = <PIN_PC28__FLEXCOM4_IO0>,
830 + <PIN_PC29__FLEXCOM4_IO1>,
831 + <PIN_PC30__FLEXCOM4_IO2>,
832 + <PIN_PC31__FLEXCOM4_IO3>,
833 + <PIN_PD0__FLEXCOM4_IO4>;
838 + can1: can@fc050000 {
839 + pinctrl-names = "default";
840 + pinctrl-0 = <&pinctrl_can1_default>;
847 + compatible = "gpio-keys";
849 + pinctrl-names = "default";
850 + pinctrl-0 = <&pinctrl_key_gpio_default>;
854 + gpios = <&pioA PIN_PA29 GPIO_ACTIVE_LOW>;
855 + linux,code = <0x104>;
861 + compatible = "gpio-leds";
862 + pinctrl-names = "default";
863 + pinctrl-0 = <&pinctrl_led_gpio_default>;
864 + status = "okay"; /* Conflict with pwm0. */
868 + gpios = <&pioA PIN_PA10 GPIO_ACTIVE_HIGH>;
873 + gpios = <&pioA PIN_PB1 GPIO_ACTIVE_HIGH>;
878 + gpios = <&pioA PIN_PA31 GPIO_ACTIVE_HIGH>;
879 + linux,default-trigger = "heartbeat";
883 --- a/include/dt-bindings/pinctrl/at91.h
884 +++ b/include/dt-bindings/pinctrl/at91.h
886 #define AT91_PERIPH_C 3
887 #define AT91_PERIPH_D 4
889 +#define ATMEL_PIO_DRVSTR_LO 1
890 +#define ATMEL_PIO_DRVSTR_ME 2
891 +#define ATMEL_PIO_DRVSTR_HI 3
893 #endif /* __DT_BINDINGS_AT91_PINCTRL_H__ */