Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
34 lines
972 B
Plaintext
34 lines
972 B
Plaintext
Avionic Design N-bit GPIO expander bindings
|
|
|
|
Required properties:
|
|
- compatible: should be "ad,gpio-adnp"
|
|
- reg: The I2C slave address for this device.
|
|
- interrupts: Interrupt specifier for the controllers interrupt.
|
|
- #gpio-cells: Should be 2. The first cell is the GPIO number and the
|
|
second cell is used to specify optional parameters:
|
|
- bit 0: polarity (0: normal, 1: inverted)
|
|
- gpio-controller: Marks the device as a GPIO controller
|
|
- nr-gpios: The number of pins supported by the controller.
|
|
|
|
The GPIO expander can optionally be used as an interrupt controller, in
|
|
which case it uses the default two cell specifier as described in
|
|
Documentation/devicetree/bindings/interrupt-controller/interrupts.txt.
|
|
|
|
Example:
|
|
|
|
gpioext: gpio-controller@41 {
|
|
compatible = "ad,gpio-adnp";
|
|
reg = <0x41>;
|
|
|
|
interrupt-parent = <&gpio>;
|
|
interrupts = <160 1>;
|
|
|
|
gpio-controller;
|
|
#gpio-cells = <2>;
|
|
|
|
interrupt-controller;
|
|
#interrupt-cells = <2>;
|
|
|
|
nr-gpios = <64>;
|
|
};
|