Path: blob/master/Documentation/devicetree/bindings/gpio/gpio-adnp.txt
26308 views
Avionic Design N-bit GPIO expander bindings12Required properties:3- compatible: should be "ad,gpio-adnp"4- reg: The I2C slave address for this device.5- interrupts: Interrupt specifier for the controllers interrupt.6- #gpio-cells: Should be 2. The first cell is the GPIO number and the7second cell is used to specify optional parameters:8- bit 0: polarity (0: normal, 1: inverted)9- gpio-controller: Marks the device as a GPIO controller10- nr-gpios: The number of pins supported by the controller.1112The GPIO expander can optionally be used as an interrupt controller, in13which case it uses the default two cell specifier as described in14Documentation/devicetree/bindings/interrupt-controller/interrupts.txt.1516Example:1718gpioext: gpio-controller@41 {19compatible = "ad,gpio-adnp";20reg = <0x41>;2122interrupt-parent = <&gpio>;23interrupts = <160 1>;2425gpio-controller;26#gpio-cells = <2>;2728interrupt-controller;29#interrupt-cells = <2>;3031nr-gpios = <64>;32};333435