Path: blob/master/Documentation/devicetree/bindings/gpio/exar,xra1403.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/exar,xra1403.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: XRA1403 16-bit GPIO Expander with Reset Input78maintainers:9- Nandor Han <nandor.han@ge.com>1011description: >12The XRA1403 is an 16-bit GPIO expander with an SPI interface. Features13available:1415- Individually programmable inputs:16- Internal pull-up resistors17- Polarity inversion18- Individual interrupt enable19- Rising edge and/or Falling edge interrupt20- Input filter21- Individually programmable outputs:22- Output Level Control23- Output Three-State Control2425properties:26compatible:27const: exar,xra14032829reg:30maxItems: 13132gpio-controller: true3334'#gpio-cells':35const: 23637interrupt-controller: true3839'#interrupt-cells':40const: 24142reset-gpios:43description: Control line for the device reset.4445required:46- compatible47- reg48- gpio-controller49- '#gpio-cells'5051allOf:52- $ref: /schemas/spi/spi-peripheral-props.yaml#5354unevaluatedProperties: false5556examples:57- |58#include <dt-bindings/gpio/gpio.h>5960spi {61#address-cells = <1>;62#size-cells = <0>;6364gpio@2 {65compatible = "exar,xra1403";66reg = <2>;67spi-max-frequency = <1000000>;68gpio-controller;69#gpio-cells = <2>;70interrupt-controller;71#interrupt-cells = <2>;72reset-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;73};74};757677