~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/pinctrl/atmel,at91-pio4-pinctrl.txt

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

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

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php