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_oxnas.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 * Oxford Semiconductor OXNAS SoC GPIO Controller
    2 
    3 Please refer to gpio.txt for generic information regarding GPIO bindings.
    4 
    5 Required properties:
    6  - compatible: "oxsemi,ox810se-gpio" or "oxsemi,ox820-gpio"
    7  - reg: Base address and length for the device.
    8  - interrupts: The port interrupt shared by all pins.
    9  - gpio-controller: Marks the port as GPIO controller.
   10  - #gpio-cells: Two. The first cell is the pin number and
   11    the second cell is used to specify the gpio polarity as defined in
   12    defined in <dt-bindings/gpio/gpio.h>:
   13       0 = GPIO_ACTIVE_HIGH
   14       1 = GPIO_ACTIVE_LOW
   15  - interrupt-controller: Marks the device node as an interrupt controller.
   16  - #interrupt-cells: Two. The first cell is the GPIO number and second cell
   17    is used to specify the trigger type as defined in
   18    <dt-bindings/interrupt-controller/irq.h>:
   19       IRQ_TYPE_EDGE_RISING
   20       IRQ_TYPE_EDGE_FALLING
   21       IRQ_TYPE_EDGE_BOTH
   22  - gpio-ranges: Interaction with the PINCTRL subsystem, it also specifies the
   23    gpio base and count, should be in the format of numeric-gpio-range as
   24    specified in the gpio.txt file.
   25 
   26 Example:
   27 
   28 gpio0: gpio@0 {
   29         compatible = "oxsemi,ox810se-gpio";
   30         reg = <0x000000 0x100000>;
   31         interrupts = <21>;
   32         #gpio-cells = <2>;
   33         gpio-controller;
   34         interrupt-controller;
   35         #interrupt-cells = <2>;
   36         gpio-ranges = <&pinctrl 0 0 32>;
   37 };
   38 
   39 keys {
   40         ...
   41 
   42         button-esc {
   43                 label = "ESC";
   44                 linux,code = <1>;
   45                 gpios = <&gpio0 12 0>;
   46         };
   47 };

Cache object: 642676db974f283c5184960982d6ef44


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