···11-SEMTECH SX150x GPIO expander bindings22-33-44-Required properties:55-66-- compatible: should be "semtech,sx1506q",77- "semtech,sx1508q",88- "semtech,sx1509q",99- "semtech,sx1502q".1010-1111-- reg: The I2C slave address for this device.1212-1313-- interrupt-parent: phandle of the parent interrupt controller.1414-1515-- interrupts: Interrupt specifier for the controllers interrupt.1616-1717-- #gpio-cells: Should be 2. The first cell is the GPIO number and the1818- second cell is used to specify optional parameters:1919- bit 0: polarity (0: normal, 1: inverted)2020-2121-- gpio-controller: Marks the device as a GPIO controller.2222-2323-- interrupt-controller: Marks the device as a interrupt controller.2424-2525-The GPIO expander can optionally be used as an interrupt controller, in2626-which case it uses the default two cell specifier as described in2727-Documentation/devicetree/bindings/interrupt-controller/interrupts.txt.2828-2929-Example:3030-3131- i2c_gpio_expander@20{3232- #gpio-cells = <2>;3333- #interrupt-cells = <2>;3434- compatible = "semtech,sx1506q";3535- reg = <0x20>;3636- interrupt-parent = <&gpio_1>;3737- interrupts = <16 0>;3838-3939- gpio-controller;4040- interrupt-controller;4141- };
···11+SEMTECH SX150x GPIO expander bindings22+33+Please refer to pinctrl-bindings.txt, ../gpio/gpio.txt, and44+../interrupt-controller/interrupts.txt for generic information regarding55+pin controller, GPIO, and interrupt bindings.66+77+Required properties:88+- compatible: should be one of :99+ "semtech,sx1506q",1010+ "semtech,sx1508q",1111+ "semtech,sx1509q",1212+ "semtech,sx1502q".1313+1414+- reg: The I2C slave address for this device.1515+1616+- #gpio-cells: Should be 2. The first cell is the GPIO number and the1717+ second cell is used to specify optional parameters:1818+ bit 0: polarity (0: normal, 1: inverted)1919+2020+- gpio-controller: Marks the device as a GPIO controller.2121+2222+Optional properties :2323+- interrupt-parent: phandle of the parent interrupt controller.2424+2525+- interrupts: Interrupt specifier for the controllers interrupt.2626+2727+- interrupt-controller: Marks the device as a interrupt controller.2828+2929+- semtech,probe-reset: Will trigger a reset of the GPIO expander on probe,3030+ only for sx1508q and sx1509q3131+3232+The GPIO expander can optionally be used as an interrupt controller, in3333+which case it uses the default two cell specifier.3434+3535+Required properties for pin configuration sub-nodes:3636+ - pins: List of pins to which the configuration applies.3737+3838+Optional properties for pin configuration sub-nodes:3939+----------------------------------------------------4040+ - bias-disable: disable any pin bias, except the OSCIO pin4141+ - bias-pull-up: pull up the pin, except the OSCIO pin4242+ - bias-pull-down: pull down the pin, except the OSCIO pin4343+ - bias-pull-pin-default: use pin-default pull state, except the OSCIO pin4444+ - drive-push-pull: drive actively high and low4545+ - drive-open-drain: drive with open drain only for sx1508q and sx1509q and except the OSCIO pin4646+ - output-low: set the pin to output mode with low level4747+ - output-high: set the pin to output mode with high level4848+4949+Example:5050+5151+ i2c0gpio-expander@20{5252+ #gpio-cells = <2>;5353+ #interrupt-cells = <2>;5454+ compatible = "semtech,sx1506q";5555+ reg = <0x20>;5656+ interrupt-parent = <&gpio_1>;5757+ interrupts = <16 0>;5858+5959+ gpio-controller;6060+ interrupt-controller;6161+6262+ pinctrl-names = "default";6363+ pinctrl-0 = <&gpio1_cfg_pins>;6464+6565+ gpio1_cfg_pins: gpio1-cfg {6666+ pins = "gpio1";6767+ bias-pull-up;6868+ };6969+ };
+5-8
drivers/gpio/Kconfig
···781781 platform-neutral GPIO calls.782782783783config GPIO_SX150X784784- bool "Semtech SX150x I2C GPIO expander"785785- depends on I2C=y786786- select GPIOLIB_IRQCHIP784784+ bool "Semtech SX150x I2C GPIO expander (deprecated)"785785+ depends on PINCTRL && I2C=y786786+ select PINCTRL_SX150X787787 default n788788 help789789- Say yes here to provide support for Semtech SX150-series I2C790790- GPIO expanders. Compatible models include:791791-792792- 8 bits: sx1508q793793- 16 bits: sx1509q789789+ Say yes here to provide support for Semtech SX150x-series I2C790790+ GPIO expanders. The GPIO driver was replaced by a Pinctrl version.794791795792config GPIO_TPIC2810796793 tristate "TPIC2810 8-Bit I2C GPO expander"