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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/soc/fsl/cpm_qe/gpio.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 Every GPIO controller node must have #gpio-cells property defined,
  2 this information will be used to translate gpio-specifiers.
  3 
  4 On CPM1 devices, all ports are using slightly different register layouts.
  5 Ports A, C and D are 16bit ports and Ports B and E are 32bit ports.
  6 
  7 On CPM2 devices, all ports are 32bit ports and use a common register layout.
  8 
  9 Required properties:
 10 - compatible : "fsl,cpm1-pario-bank-a", "fsl,cpm1-pario-bank-b",
 11   "fsl,cpm1-pario-bank-c", "fsl,cpm1-pario-bank-d",
 12   "fsl,cpm1-pario-bank-e", "fsl,cpm2-pario-bank"
 13 - #gpio-cells : Should be two. The first cell is the pin number and the
 14   second cell is used to specify optional parameters (currently unused).
 15 - gpio-controller : Marks the port as GPIO controller.
 16 Optional properties:
 17 - fsl,cpm1-gpio-irq-mask : For banks having interrupt capability (like port C
 18   on CPM1), this item tells which ports have an associated interrupt (ports are
 19   listed in the same order as in PCINT register)
 20 - interrupts : This property provides the list of interrupt for each GPIO having
 21   one as described by the fsl,cpm1-gpio-irq-mask property. There should be as
 22   many interrupts as number of ones in the mask property. The first interrupt in
 23   the list corresponds to the most significant bit of the mask.
 24 
 25 Example of four SOC GPIO banks defined as gpio-controller nodes:
 26 
 27         CPM1_PIO_A: gpio-controller@950 {
 28                 #gpio-cells = <2>;
 29                 compatible = "fsl,cpm1-pario-bank-a";
 30                 reg = <0x950 0x10>;
 31                 gpio-controller;
 32         };
 33 
 34         CPM1_PIO_B: gpio-controller@ab8 {
 35                 #gpio-cells = <2>;
 36                 compatible = "fsl,cpm1-pario-bank-b";
 37                 reg = <0xab8 0x10>;
 38                 gpio-controller;
 39         };
 40 
 41         CPM1_PIO_C: gpio-controller@960 {
 42                 #gpio-cells = <2>;
 43                 compatible = "fsl,cpm1-pario-bank-c";
 44                 reg = <0x960 0x10>;
 45                 fsl,cpm1-gpio-irq-mask = <0x0fff>;
 46                 interrupts = <1 2 6 9 10 11 14 15 23 24 26 31>;
 47                 interrupt-parent = <&CPM_PIC>;
 48                 gpio-controller;
 49         };
 50 
 51         CPM1_PIO_E: gpio-controller@ac8 {
 52                 #gpio-cells = <2>;
 53                 compatible = "fsl,cpm1-pario-bank-e";
 54                 reg = <0xac8 0x18>;
 55                 gpio-controller;
 56         };

~ [ 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