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/pinctrl/pinctrl-sx150x.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 SEMTECH SX150x GPIO expander bindings
    2 
    3 Please refer to pinctrl-bindings.txt, ../gpio/gpio.txt, and
    4 ../interrupt-controller/interrupts.txt for generic information regarding
    5 pin controller, GPIO, and interrupt bindings.
    6 
    7 Required properties:
    8 - compatible: should be one of :
    9                         "semtech,sx1501q",
   10                         "semtech,sx1502q",
   11                         "semtech,sx1503q",
   12                         "semtech,sx1504q",
   13                         "semtech,sx1505q",
   14                         "semtech,sx1506q",
   15                         "semtech,sx1507q",
   16                         "semtech,sx1508q",
   17                         "semtech,sx1509q".
   18 
   19 - reg: The I2C slave address for this device.
   20 
   21 - #gpio-cells: Should be 2. The first cell is the GPIO number and the
   22                 second cell is used to specify optional parameters:
   23                 bit 0: polarity (0: normal, 1: inverted)
   24 
   25 - gpio-controller: Marks the device as a GPIO controller.
   26 
   27 Optional properties :
   28 - interrupts: Interrupt specifier for the controllers interrupt.
   29 
   30 - interrupt-controller: Marks the device as a interrupt controller.
   31 
   32 - semtech,probe-reset: Will trigger a reset of the GPIO expander on probe,
   33                 only for sx1507q, sx1508q and sx1509q
   34 
   35 The GPIO expander can optionally be used as an interrupt controller, in
   36 which case it uses the default two cell specifier.
   37 
   38 Required properties for pin configuration sub-nodes:
   39  - pins: List of pins to which the configuration applies.
   40 
   41 Optional properties for pin configuration sub-nodes:
   42 ----------------------------------------------------
   43  - bias-disable: disable any pin bias, except the OSCIO pin
   44  - bias-pull-up: pull up the pin, except the OSCIO pin
   45  - bias-pull-down: pull down the pin, except the OSCIO pin
   46  - bias-pull-pin-default: use pin-default pull state, except the OSCIO pin
   47  - drive-push-pull: drive actively high and low
   48  - drive-open-drain: drive with open drain only for sx1507q, sx1508q and sx1509q and except the OSCIO pin
   49  - output-low: set the pin to output mode with low level
   50  - output-high: set the pin to output mode with high level
   51 
   52 Example:
   53 
   54         i2c0gpio-expander@20{
   55                 #gpio-cells = <2>;
   56                 #interrupt-cells = <2>;
   57                 compatible = "semtech,sx1506q";
   58                 reg = <0x20>;
   59                 interrupt-parent = <&gpio_1>;
   60                 interrupts = <16 0>;
   61 
   62                 gpio-controller;
   63                 interrupt-controller;
   64 
   65                 pinctrl-names = "default";
   66                 pinctrl-0 = <&gpio1_cfg_pins>;
   67 
   68                 gpio1_cfg_pins: gpio1-cfg {
   69                         pins = "gpio1";
   70                         bias-pull-up;
   71                 };
   72         };

Cache object: 511eecd4dc3df1d307c5075260c3e694


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