diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2018-06-19 19:24:41 +0200 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2018-07-10 08:08:57 -0600 |
commit | 24a29949230c95d528d890e67004f239d4227a02 (patch) | |
tree | bfd8fbb3ae8195053e39db9dd735e961f29a039a /Documentation/devicetree/bindings/gpio | |
parent | b01dcdd86e8c20599ee9293392d6fef8397fbc5d (diff) | |
download | linux-stable-24a29949230c95d528d890e67004f239d4227a02.tar.gz linux-stable-24a29949230c95d528d890e67004f239d4227a02.tar.bz2 linux-stable-24a29949230c95d528d890e67004f239d4227a02.zip |
dt-bindings: gpio: pca953x: Document interrupts, update example
The device can optionally supply an interrupt, hence document that.
Add required GPIO properties to the example (extracted from a patch by
Wolfram Sang).
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/gpio')
-rw-r--r-- | Documentation/devicetree/bindings/gpio/gpio-pca953x.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt b/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt index 88f228665507..4e3c550e319a 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt +++ b/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt @@ -37,6 +37,7 @@ Required properties: - #interrupt-cells: if to be used as interrupt expander. Optional properties: + - interrupts: interrupt specifier for the device's interrupt output. - reset-gpios: GPIO specification for the RESET input. This is an active low signal to the PCA953x. - vcc-supply: power supply regulator. @@ -49,6 +50,8 @@ Example: reg = <0x20>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pca9505>; + gpio-controller; + #gpio-cells = <2>; interrupt-parent = <&gpio3>; interrupts = <23 IRQ_TYPE_LEVEL_LOW>; }; |