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-atlas7.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 CSR SiRFatlas7 GPIO controller bindings
    2 
    3 Required properties:
    4 - compatible    : "sirf,atlas7-gpio"
    5 - reg           : Address range of the pinctrl registers
    6 - interrupts    : Interrupts used by every GPIO group
    7 - gpio-banks    : How many gpio banks on this controller
    8 - gpio-controller : Indicates this device is a GPIO controller
    9 - interrupt-controller  : Marks the device node as an interrupt controller
   10 
   11 The GPIO controller also acts as an interrupt controller. It uses the default
   12 two cells specifier as described in Documentation/devicetree/bindings/
   13 interrupt-controller/interrupts.txt.
   14 
   15 Example:
   16 
   17         gpio_0: gpio_mediam@17040000 {
   18                 compatible = "sirf,atlas7-gpio";
   19                 reg = <0x17040000 0x1000>;
   20                 interrupts = <0 13 0>, <0 14 0>;
   21 
   22                 #gpio-cells = <2>;
   23                 #interrupt-cells = <2>;
   24 
   25                 gpio-controller;
   26                 interrupt-controller;
   27 
   28                 gpio-banks = <2>;
   29                 gpio-ranges = <&pinctrl 0 0 0>,
   30                                 <&pinctrl 32 0 0>;
   31                 gpio-ranges-group-names = "lvds_gpio_grp",
   32                                         "uart_nand_gpio_grp";
   33         };
   34 
   35         leds {
   36                 compatible = "gpio-leds";
   37 
   38                 led1 {
   39                         gpios = <&gpio_1 15 0>;
   40                         ...
   41                 };
   42 
   43                 led2 {
   44                         gpios = <&gpio_2 34 0>;
   45                         ...
   46                 };
   47         };
   48 
   49 Please refer to gpio.txt in this directory for details of the common
   50 gpio properties used by devices.

Cache object: fce43052eab232b3b83e71979de4753b


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