162306a36Sopenharmony_ciAvionic Design N-bit GPIO expander bindings 262306a36Sopenharmony_ci 362306a36Sopenharmony_ciRequired properties: 462306a36Sopenharmony_ci- compatible: should be "ad,gpio-adnp" 562306a36Sopenharmony_ci- reg: The I2C slave address for this device. 662306a36Sopenharmony_ci- interrupts: Interrupt specifier for the controllers interrupt. 762306a36Sopenharmony_ci- #gpio-cells: Should be 2. The first cell is the GPIO number and the 862306a36Sopenharmony_ci second cell is used to specify optional parameters: 962306a36Sopenharmony_ci - bit 0: polarity (0: normal, 1: inverted) 1062306a36Sopenharmony_ci- gpio-controller: Marks the device as a GPIO controller 1162306a36Sopenharmony_ci- nr-gpios: The number of pins supported by the controller. 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ciThe GPIO expander can optionally be used as an interrupt controller, in 1462306a36Sopenharmony_ciwhich case it uses the default two cell specifier as described in 1562306a36Sopenharmony_ciDocumentation/devicetree/bindings/interrupt-controller/interrupts.txt. 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ciExample: 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci gpioext: gpio-controller@41 { 2062306a36Sopenharmony_ci compatible = "ad,gpio-adnp"; 2162306a36Sopenharmony_ci reg = <0x41>; 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ci interrupt-parent = <&gpio>; 2462306a36Sopenharmony_ci interrupts = <160 1>; 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ci gpio-controller; 2762306a36Sopenharmony_ci #gpio-cells = <2>; 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ci interrupt-controller; 3062306a36Sopenharmony_ci #interrupt-cells = <2>; 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci nr-gpios = <64>; 3362306a36Sopenharmony_ci }; 34