Path: blob/master/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml
52978 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/gpio/gpio-pca95xx.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: NXP PCA95xx I2C GPIO multiplexer78maintainers:9- Krzysztof Kozlowski <krzk@kernel.org>1011description: |+12Bindings for the family of I2C GPIO multiplexers/expanders: NXP PCA95xx,13Maxim MAX73xx1415properties:16compatible:17oneOf:18- items:19- const: toradex,ecgpiol1620- const: nxp,pcal641621- items:22- const: diodes,pi4ioe5v6534q23- const: nxp,pcal653424- items:25- enum:26- exar,xra120227- maxim,max731028- maxim,max731229- maxim,max731330- maxim,max731531- maxim,max731932- maxim,max732033- maxim,max732134- maxim,max732235- maxim,max732336- maxim,max732437- maxim,max732538- maxim,max732639- maxim,max732740- nxp,pca640841- nxp,pca641642- nxp,pca950543- nxp,pca950644- nxp,pca953445- nxp,pca953546- nxp,pca953647- nxp,pca953748- nxp,pca953849- nxp,pca953950- nxp,pca955451- nxp,pca955552- nxp,pca955653- nxp,pca955754- nxp,pca957455- nxp,pca957556- nxp,pca969857- nxp,pcal640858- nxp,pcal641659- nxp,pcal652460- nxp,pcal653461- nxp,pcal953562- nxp,pcal9554b63- nxp,pcal9555a64- onnn,cat955465- onnn,pca965466- ti,pca610767- ti,pca953668- ti,tca640869- ti,tca641670- ti,tca641871- ti,tca642472- ti,tca953573- ti,tca953874- ti,tca953975- ti,tca955476- ti,tcal640877- ti,tcal64167879reg:80maxItems: 18182gpio-controller: true8384'#gpio-cells':85const: 28687gpio-line-names:88minItems: 189maxItems: 409091interrupts:92maxItems: 19394interrupt-controller: true9596'#interrupt-cells':97const: 29899reset-gpios:100maxItems: 1101description:102GPIO specification for the RESET input. This is an active low signal to103the PCA953x. Not valid for Maxim MAX732x devices.104105vcc-supply:106description:107Optional power supply. Not valid for Maxim MAX732x devices.108109wakeup-source:110$ref: /schemas/types.yaml#/definitions/flag111112patternProperties:113"^(hog-[0-9]+|.+-hog(-[0-9]+)?)$":114type: object115required:116- gpio-hog117118required:119- compatible120- reg121- gpio-controller122- "#gpio-cells"123124additionalProperties: false125126allOf:127- if:128properties:129compatible:130contains:131enum:132- maxim,max7320133- maxim,max7321134- maxim,max7322135- maxim,max7323136- maxim,max7324137- maxim,max7325138- maxim,max7326139- maxim,max7327140- toradex,ecgpiol16141then:142properties:143reset-gpios: false144vcc-supply: false145146examples:147- |148#include <dt-bindings/gpio/gpio.h>149#include <dt-bindings/interrupt-controller/irq.h>150151i2c {152#address-cells = <1>;153#size-cells = <0>;154155gpio@20 {156compatible = "nxp,pca9505";157reg = <0x20>;158pinctrl-names = "default";159pinctrl-0 = <&pinctrl_pca9505>;160gpio-controller;161#gpio-cells = <2>;162interrupt-parent = <&gpio3>;163interrupts = <23 IRQ_TYPE_LEVEL_LOW>;164165usb3-sata-sel-hog {166gpio-hog;167gpios = <4 GPIO_ACTIVE_HIGH>;168output-low;169line-name = "usb3_sata_sel";170};171};172};173174- |175#include <dt-bindings/interrupt-controller/irq.h>176177i2c {178#address-cells = <1>;179#size-cells = <0>;180181gpio99: gpio@22 {182compatible = "nxp,pcal6524";183reg = <0x22>;184interrupt-parent = <&gpio6>;185interrupts = <1 IRQ_TYPE_EDGE_FALLING>; /* gpio6_161 */186interrupt-controller;187#interrupt-cells = <2>;188vcc-supply = <&vdds_1v8_main>;189gpio-controller;190#gpio-cells = <2>;191gpio-line-names = "hdmi-ct-hpd", "hdmi.ls-oe", "p02", "p03",192"vibra", "fault2", "p06", "p07", "en-usb",193"en-host1", "en-host2", "chg-int", "p14", "p15",194"mic-int", "en-modem", "shdn-hs-amp",195"chg-status+red", "green", "blue", "en-esata",196"fault1", "p26", "p27";197};198};199200- |201#include <dt-bindings/interrupt-controller/irq.h>202203i2c {204#address-cells = <1>;205#size-cells = <0>;206207/* MAX7325 with interrupt support enabled */208gpio@6d {209compatible = "maxim,max7325";210reg = <0x6d>;211gpio-controller;212#gpio-cells = <2>;213interrupt-controller;214#interrupt-cells = <2>;215interrupt-parent = <&gpio4>;216interrupts = <29 IRQ_TYPE_EDGE_FALLING>;217};218};219220- |221i2c {222#address-cells = <1>;223#size-cells = <0>;224225/* MAX7325 with interrupt support disabled */226gpio@6e {227compatible = "maxim,max7325";228reg = <0x6e>;229gpio-controller;230#gpio-cells = <2>;231};232};233234235