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-max732x.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 * MAX732x-compatible I/O expanders
    2 
    3 Required properties:
    4   - compatible: Should be one of the following:
    5     - "maxim,max7319": For the Maxim MAX7319
    6     - "maxim,max7320": For the Maxim MAX7320
    7     - "maxim,max7321": For the Maxim MAX7321
    8     - "maxim,max7322": For the Maxim MAX7322
    9     - "maxim,max7323": For the Maxim MAX7323
   10     - "maxim,max7324": For the Maxim MAX7324
   11     - "maxim,max7325": For the Maxim MAX7325
   12     - "maxim,max7326": For the Maxim MAX7326
   13     - "maxim,max7327": For the Maxim MAX7327
   14   - reg: I2C slave address for this device.
   15   - gpio-controller: Marks the device node as a GPIO controller.
   16   - #gpio-cells: Should be 2.
   17     - first cell is the GPIO number
   18     - second cell specifies GPIO flags, as defined in <dt-bindings/gpio/gpio.h>.
   19       Only the GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW flags are supported.
   20 
   21 Optional properties:
   22 
   23   The I/O expander can detect input state changes, and thus optionally act as
   24   an interrupt controller. When the expander interrupt line is connected all the
   25   following properties must be set. For more information please see the
   26   interrupt controller device tree bindings documentation available at
   27   Documentation/devicetree/bindings/interrupt-controller/interrupts.txt.
   28 
   29   - interrupt-controller: Identifies the node as an interrupt controller.
   30   - #interrupt-cells: Number of cells to encode an interrupt source, shall be 2.
   31     - first cell is the pin number
   32     - second cell is used to specify flags
   33   - interrupts: Interrupt specifier for the controllers interrupt.
   34 
   35 Please refer to gpio.txt in this directory for details of the common GPIO
   36 bindings used by client devices.
   37 
   38 Example 1. MAX7325 with interrupt support enabled (CONFIG_GPIO_MAX732X_IRQ=y):
   39 
   40         expander: max7325@6d {
   41                 compatible = "maxim,max7325";
   42                 reg = <0x6d>;
   43                 gpio-controller;
   44                 #gpio-cells = <2>;
   45                 interrupt-controller;
   46                 #interrupt-cells = <2>;
   47                 interrupt-parent = <&gpio4>;
   48                 interrupts = <29 IRQ_TYPE_EDGE_FALLING>;
   49         };
   50 
   51 Example 2. MAX7325 with interrupt support disabled (CONFIG_GPIO_MAX732X_IRQ=n):
   52 
   53         expander: max7325@6d {
   54                 compatible = "maxim,max7325";
   55                 reg = <0x6d>;
   56                 gpio-controller;
   57                 #gpio-cells = <2>;
   58         };

Cache object: 189db1128bdecc0fcd35daac4d6f6672


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