0001 Avionic Design N-bit GPIO expander bindings
0002
0003 Required properties:
0004 - compatible: should be "ad,gpio-adnp"
0005 - reg: The I2C slave address for this device.
0006 - interrupts: Interrupt specifier for the controllers interrupt.
0007 - #gpio-cells: Should be 2. The first cell is the GPIO number and the
0008 second cell is used to specify optional parameters:
0009 - bit 0: polarity (0: normal, 1: inverted)
0010 - gpio-controller: Marks the device as a GPIO controller
0011 - nr-gpios: The number of pins supported by the controller.
0012
0013 The GPIO expander can optionally be used as an interrupt controller, in
0014 which case it uses the default two cell specifier as described in
0015 Documentation/devicetree/bindings/interrupt-controller/interrupts.txt.
0016
0017 Example:
0018
0019 gpioext: gpio-controller@41 {
0020 compatible = "ad,gpio-adnp";
0021 reg = <0x41>;
0022
0023 interrupt-parent = <&gpio>;
0024 interrupts = <160 1>;
0025
0026 gpio-controller;
0027 #gpio-cells = <2>;
0028
0029 interrupt-controller;
0030 #interrupt-cells = <2>;
0031
0032 nr-gpios = <64>;
0033 };