diff mbox series

dt-bindings: gpio: pca953x: Document interrupts, update example

Message ID 20180619172441.20416-1-geert+renesas@glider.be
State New
Headers show
Series dt-bindings: gpio: pca953x: Document interrupts, update example | expand

Commit Message

Geert Uytterhoeven June 19, 2018, 5:24 p.m. UTC
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>
---
 Documentation/devicetree/bindings/gpio/gpio-pca953x.txt | 3 +++
 1 file changed, 3 insertions(+)

Comments

Rob Herring June 26, 2018, 8:24 p.m. UTC | #1
On Tue, Jun 19, 2018 at 07:24:41PM +0200, Geert Uytterhoeven wrote:
> 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>
> ---
>  Documentation/devicetree/bindings/gpio/gpio-pca953x.txt | 3 +++
>  1 file changed, 3 insertions(+)

Applied, thanks.

Rob
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt b/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt
index 88f22866550750f9..4e3c550e319ad2e0 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>;
 	};