The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/Bindings/gpio/gpio-altera.txt

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

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

Cache object: 1f87f9462a2ebfe48baee094ebd9e581


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.