Path: blob/master/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml
26308 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,tca95547677reg:78maxItems: 17980gpio-controller: true8182'#gpio-cells':83const: 28485gpio-line-names:86minItems: 187maxItems: 408889interrupts:90maxItems: 19192interrupt-controller: true9394'#interrupt-cells':95const: 29697reset-gpios:98maxItems: 199description:100GPIO specification for the RESET input. This is an active low signal to101the PCA953x. Not valid for Maxim MAX732x devices.102103vcc-supply:104description:105Optional power supply. Not valid for Maxim MAX732x devices.106107wakeup-source:108$ref: /schemas/types.yaml#/definitions/flag109110patternProperties:111"^(hog-[0-9]+|.+-hog(-[0-9]+)?)$":112type: object113required:114- gpio-hog115116required:117- compatible118- reg119- gpio-controller120- "#gpio-cells"121122additionalProperties: false123124allOf:125- if:126properties:127compatible:128contains:129enum:130- maxim,max7320131- maxim,max7321132- maxim,max7322133- maxim,max7323134- maxim,max7324135- maxim,max7325136- maxim,max7326137- maxim,max7327138- toradex,ecgpiol16139then:140properties:141reset-gpios: false142vcc-supply: false143144examples:145- |146#include <dt-bindings/gpio/gpio.h>147#include <dt-bindings/interrupt-controller/irq.h>148149i2c {150#address-cells = <1>;151#size-cells = <0>;152153gpio@20 {154compatible = "nxp,pca9505";155reg = <0x20>;156pinctrl-names = "default";157pinctrl-0 = <&pinctrl_pca9505>;158gpio-controller;159#gpio-cells = <2>;160interrupt-parent = <&gpio3>;161interrupts = <23 IRQ_TYPE_LEVEL_LOW>;162163usb3-sata-sel-hog {164gpio-hog;165gpios = <4 GPIO_ACTIVE_HIGH>;166output-low;167line-name = "usb3_sata_sel";168};169};170};171172- |173#include <dt-bindings/interrupt-controller/irq.h>174175i2c {176#address-cells = <1>;177#size-cells = <0>;178179gpio99: gpio@22 {180compatible = "nxp,pcal6524";181reg = <0x22>;182interrupt-parent = <&gpio6>;183interrupts = <1 IRQ_TYPE_EDGE_FALLING>; /* gpio6_161 */184interrupt-controller;185#interrupt-cells = <2>;186vcc-supply = <&vdds_1v8_main>;187gpio-controller;188#gpio-cells = <2>;189gpio-line-names = "hdmi-ct-hpd", "hdmi.ls-oe", "p02", "p03",190"vibra", "fault2", "p06", "p07", "en-usb",191"en-host1", "en-host2", "chg-int", "p14", "p15",192"mic-int", "en-modem", "shdn-hs-amp",193"chg-status+red", "green", "blue", "en-esata",194"fault1", "p26", "p27";195};196};197198- |199#include <dt-bindings/interrupt-controller/irq.h>200201i2c {202#address-cells = <1>;203#size-cells = <0>;204205/* MAX7325 with interrupt support enabled */206gpio@6d {207compatible = "maxim,max7325";208reg = <0x6d>;209gpio-controller;210#gpio-cells = <2>;211interrupt-controller;212#interrupt-cells = <2>;213interrupt-parent = <&gpio4>;214interrupts = <29 IRQ_TYPE_EDGE_FALLING>;215};216};217218- |219i2c {220#address-cells = <1>;221#size-cells = <0>;222223/* MAX7325 with interrupt support disabled */224gpio@6e {225compatible = "maxim,max7325";226reg = <0x6e>;227gpio-controller;228#gpio-cells = <2>;229};230};231232233