1 Avionic Design N-bit GPIO expander bindings 1 Avionic Design N-bit GPIO expander bindings 2 2 3 Required properties: 3 Required properties: 4 - compatible: should be "ad,gpio-adnp" 4 - compatible: should be "ad,gpio-adnp" 5 - reg: The I2C slave address for this device. 5 - reg: The I2C slave address for this device. 6 - interrupts: Interrupt specifier for the cont 6 - interrupts: Interrupt specifier for the controllers interrupt. 7 - #gpio-cells: Should be 2. The first cell is 7 - #gpio-cells: Should be 2. The first cell is the GPIO number and the 8 second cell is used to specify optional para 8 second cell is used to specify optional parameters: 9 - bit 0: polarity (0: normal, 1: inverted) 9 - bit 0: polarity (0: normal, 1: inverted) 10 - gpio-controller: Marks the device as a GPIO 10 - gpio-controller: Marks the device as a GPIO controller 11 - nr-gpios: The number of pins supported by th 11 - nr-gpios: The number of pins supported by the controller. 12 12 13 The GPIO expander can optionally be used as an 13 The GPIO expander can optionally be used as an interrupt controller, in 14 which case it uses the default two cell specif 14 which case it uses the default two cell specifier as described in 15 Documentation/devicetree/bindings/interrupt-co 15 Documentation/devicetree/bindings/interrupt-controller/interrupts.txt. 16 16 17 Example: 17 Example: 18 18 19 gpioext: gpio-controller@41 { 19 gpioext: gpio-controller@41 { 20 compatible = "ad,gpio-adnp"; 20 compatible = "ad,gpio-adnp"; 21 reg = <0x41>; 21 reg = <0x41>; 22 22 23 interrupt-parent = <&gpio>; 23 interrupt-parent = <&gpio>; 24 interrupts = <160 1>; 24 interrupts = <160 1>; 25 25 26 gpio-controller; 26 gpio-controller; 27 #gpio-cells = <2>; 27 #gpio-cells = <2>; 28 28 29 interrupt-controller; 29 interrupt-controller; 30 #interrupt-cells = <2>; 30 #interrupt-cells = <2>; 31 31 32 nr-gpios = <64>; 32 nr-gpios = <64>; 33 }; 33 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.