1* Atmel PIO4 Controller 2 3The Atmel PIO4 controller is used to select the function of a pin and to 4configure it. 5 6Required properties: 7- compatible: "atmel,sama5d2-pinctrl". 8- reg: base address and length of the PIO controller. 9- interrupts: interrupt outputs from the controller, one for each bank. 10- interrupt-controller: mark the device node as an interrupt controller. 11- #interrupt-cells: should be two. 12- gpio-controller: mark the device node as a gpio controller. 13- #gpio-cells: should be two. 14 15Please refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for 16a general description of GPIO and interrupt bindings. 17 18Please refer to pinctrl-bindings.txt in this directory for details of the 19common pinctrl bindings used by client devices. 20 21Subnode format 22Each node (or subnode) will list the pins it needs and how to configured these 23pins. 24 25 node { 26 pinmux = <PIN_NUMBER_PINMUX>; 27 GENERIC_PINCONFIG; 28 }; 29 30Required properties: 31- pinmux: integer array. Each integer represents a pin number plus mux and 32ioset settings. Use the macros from boot/dts/<soc>-pinfunc.h file to get the 33right representation of the pin. 34 35Optional properties: 36- GENERIC_PINCONFIG: generic pinconfig options to use, bias-disable, 37bias-pull-down, bias-pull-up, drive-open-drain, input-schmitt-enable, 38input-debounce, output-low, output-high. 39- atmel,drive-strength: 0 or 1 for low drive, 2 for medium drive and 3 for 40high drive. The default value is low drive. 41 42Example: 43 44#include <sama5d2-pinfunc.h> 45 46... 47{ 48 pioA: pinctrl@fc038000 { 49 compatible = "atmel,sama5d2-pinctrl"; 50 reg = <0xfc038000 0x600>; 51 interrupts = <18 IRQ_TYPE_LEVEL_HIGH 7>, 52 <68 IRQ_TYPE_LEVEL_HIGH 7>, 53 <69 IRQ_TYPE_LEVEL_HIGH 7>, 54 <70 IRQ_TYPE_LEVEL_HIGH 7>; 55 interrupt-controller; 56 #interrupt-cells = <2>; 57 gpio-controller; 58 #gpio-cells = <2>; 59 clocks = <&pioA_clk>; 60 61 pinctrl_i2c0_default: i2c0_default { 62 pinmux = <PIN_PD21__TWD0>, 63 <PIN_PD22__TWCK0>; 64 bias-disable; 65 }; 66 67 pinctrl_led_gpio_default: led_gpio_default { 68 pinmux = <PIN_PB0>, 69 <PIN_PB5>; 70 bias-pull-up; 71 atmel,drive-strength = <ATMEL_PIO_DRVSTR_ME>; 72 }; 73 74 pinctrl_sdmmc1_default: sdmmc1_default { 75 cmd_data { 76 pinmux = <PIN_PA28__SDMMC1_CMD>, 77 <PIN_PA18__SDMMC1_DAT0>, 78 <PIN_PA19__SDMMC1_DAT1>, 79 <PIN_PA20__SDMMC1_DAT2>, 80 <PIN_PA21__SDMMC1_DAT3>; 81 bias-pull-up; 82 }; 83 84 ck_cd { 85 pinmux = <PIN_PA22__SDMMC1_CK>, 86 <PIN_PA30__SDMMC1_CD>; 87 bias-disable; 88 }; 89 }; 90 ... 91 }; 92}; 93... 94