Commit 35c37efd authored by Lad Prabhakar's avatar Lad Prabhakar Committed by Marc Zyngier

dt-bindings: pinctrl: renesas,rzg2l-pinctrl: Document the properties to handle GPIO IRQ

Document the required properties to handle GPIO IRQ.
Signed-off-by: default avatarLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220707182314.66610-6-prabhakar.mahadev-lad.rj@bp.renesas.com
parent 08f12b45
...@@ -47,6 +47,17 @@ properties: ...@@ -47,6 +47,17 @@ properties:
gpio-ranges: gpio-ranges:
maxItems: 1 maxItems: 1
interrupt-controller: true
'#interrupt-cells':
const: 2
description:
The first cell contains the global GPIO port index, constructed using the
RZG2L_GPIO() helper macro in <dt-bindings/pinctrl/rzg2l-pinctrl.h> and the
second cell is used to specify the flag.
E.g. "interrupts = <RZG2L_GPIO(43, 0) IRQ_TYPE_EDGE_FALLING>;" if P43_0 is
being used as an interrupt.
clocks: clocks:
maxItems: 1 maxItems: 1
...@@ -110,6 +121,8 @@ required: ...@@ -110,6 +121,8 @@ required:
- gpio-controller - gpio-controller
- '#gpio-cells' - '#gpio-cells'
- gpio-ranges - gpio-ranges
- interrupt-controller
- '#interrupt-cells'
- clocks - clocks
- power-domains - power-domains
- resets - resets
...@@ -126,6 +139,8 @@ examples: ...@@ -126,6 +139,8 @@ examples:
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-ranges = <&pinctrl 0 0 392>; gpio-ranges = <&pinctrl 0 0 392>;
interrupt-controller;
#interrupt-cells = <2>;
clocks = <&cpg CPG_MOD R9A07G044_GPIO_HCLK>; clocks = <&cpg CPG_MOD R9A07G044_GPIO_HCLK>;
resets = <&cpg R9A07G044_GPIO_RSTN>, resets = <&cpg R9A07G044_GPIO_RSTN>,
<&cpg R9A07G044_GPIO_PORT_RESETN>, <&cpg R9A07G044_GPIO_PORT_RESETN>,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment