Skip to content

Commit 35c37ef

Browse files
prabhakarladMarc Zyngier
authored andcommitted
dt-bindings: pinctrl: renesas,rzg2l-pinctrl: Document the properties to handle GPIO IRQ
Document the required properties to handle GPIO IRQ. Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20220707182314.66610-6-prabhakar.mahadev-lad.rj@bp.renesas.com
1 parent 08f12b4 commit 35c37ef

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,17 @@ properties:
4747
gpio-ranges:
4848
maxItems: 1
4949

50+
interrupt-controller: true
51+
52+
'#interrupt-cells':
53+
const: 2
54+
description:
55+
The first cell contains the global GPIO port index, constructed using the
56+
RZG2L_GPIO() helper macro in <dt-bindings/pinctrl/rzg2l-pinctrl.h> and the
57+
second cell is used to specify the flag.
58+
E.g. "interrupts = <RZG2L_GPIO(43, 0) IRQ_TYPE_EDGE_FALLING>;" if P43_0 is
59+
being used as an interrupt.
60+
5061
clocks:
5162
maxItems: 1
5263

@@ -110,6 +121,8 @@ required:
110121
- gpio-controller
111122
- '#gpio-cells'
112123
- gpio-ranges
124+
- interrupt-controller
125+
- '#interrupt-cells'
113126
- clocks
114127
- power-domains
115128
- resets
@@ -126,6 +139,8 @@ examples:
126139
gpio-controller;
127140
#gpio-cells = <2>;
128141
gpio-ranges = <&pinctrl 0 0 392>;
142+
interrupt-controller;
143+
#interrupt-cells = <2>;
129144
clocks = <&cpg CPG_MOD R9A07G044_GPIO_HCLK>;
130145
resets = <&cpg R9A07G044_GPIO_RSTN>,
131146
<&cpg R9A07G044_GPIO_PORT_RESETN>,

0 commit comments

Comments
 (0)