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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/gpio/gpio-altera.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 ] ~

Diff markup

Differences between /Documentation/devicetree/bindings/gpio/gpio-altera.txt (Architecture sparc) and /Documentation/devicetree/bindings/gpio/gpio-altera.txt (Architecture mips)


  1 Altera GPIO controller bindings                     1 Altera GPIO controller bindings
  2                                                     2 
  3 Required properties:                                3 Required properties:
  4 - compatible:                                       4 - compatible:
  5   - "altr,pio-1.0"                                  5   - "altr,pio-1.0"
  6 - reg: Physical base address and length of the      6 - reg: Physical base address and length of the controller's registers.
  7 - #gpio-cells : Should be 2                         7 - #gpio-cells : Should be 2
  8   - The first cell is the gpio offset number.       8   - The first cell is the gpio offset number.
  9   - The second cell is reserved and is current      9   - The second cell is reserved and is currently unused.
 10 - gpio-controller : Marks the device node as a     10 - gpio-controller : Marks the device node as a GPIO controller.
 11 - interrupt-controller: Mark the device node a     11 - interrupt-controller: Mark the device node as an interrupt controller
 12 - #interrupt-cells : Should be 2. The interrup     12 - #interrupt-cells : Should be 2. The interrupt type is fixed in the hardware.
 13   - The first cell is the GPIO offset number w     13   - The first cell is the GPIO offset number within the GPIO controller.
 14   - The second cell is the interrupt trigger t     14   - The second cell is the interrupt trigger type and level flags.
 15 - interrupts: Specify the interrupt.               15 - interrupts: Specify the interrupt.
 16 - altr,interrupt-type: Specifies the interrupt     16 - altr,interrupt-type: Specifies the interrupt trigger type the GPIO
 17   hardware is synthesized. This field is requi     17   hardware is synthesized. This field is required if the Altera GPIO controller
 18   used has IRQ enabled as the interrupt type i     18   used has IRQ enabled as the interrupt type is not software controlled,
 19   but hardware synthesized. Required if GPIO i     19   but hardware synthesized. Required if GPIO is used as an interrupt
 20   controller. The value is defined in <dt-bind     20   controller. The value is defined in <dt-bindings/interrupt-controller/irq.h>
 21   Only the following flags are supported:          21   Only the following flags are supported:
 22     IRQ_TYPE_EDGE_RISING                           22     IRQ_TYPE_EDGE_RISING
 23     IRQ_TYPE_EDGE_FALLING                          23     IRQ_TYPE_EDGE_FALLING
 24     IRQ_TYPE_EDGE_BOTH                             24     IRQ_TYPE_EDGE_BOTH
 25     IRQ_TYPE_LEVEL_HIGH                            25     IRQ_TYPE_LEVEL_HIGH
 26                                                    26 
 27 Optional properties:                               27 Optional properties:
 28 - altr,ngpio: Width of the GPIO bank. This def     28 - altr,ngpio: Width of the GPIO bank. This defines how many pins the
 29   GPIO device has. Ranges between 1-32. Option     29   GPIO device has. Ranges between 1-32. Optional and defaults to 32 if not
 30   specified.                                       30   specified.
 31                                                    31 
 32 Example:                                           32 Example:
 33                                                    33 
 34 gpio_altr: gpio@ff200000 {                         34 gpio_altr: gpio@ff200000 {
 35         compatible = "altr,pio-1.0";               35         compatible = "altr,pio-1.0";
 36         reg = <0xff200000 0x10>;                   36         reg = <0xff200000 0x10>;
 37         interrupts = <0 45 4>;                     37         interrupts = <0 45 4>;
 38         altr,ngpio = <32>;                         38         altr,ngpio = <32>;
 39         altr,interrupt-type = <IRQ_TYPE_EDGE_R     39         altr,interrupt-type = <IRQ_TYPE_EDGE_RISING>;
 40         #gpio-cells = <2>;                         40         #gpio-cells = <2>;
 41         gpio-controller;                           41         gpio-controller;
 42         #interrupt-cells = <2>;                    42         #interrupt-cells = <2>;
 43         interrupt-controller;                      43         interrupt-controller;
 44 };                                                 44 };
                                                      

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