Skip to content

Commit 8b12070

Browse files
Demon000geertu
authored andcommitted
dt-bindings: pinctrl: renesas,r9a09g077-pinctrl: Document GPIO IRQ
The Renesas RZ/T2H (R9A09G077) and Renesas RZ/N2H (R9A09G087) SoCs have IRQ-capable pins handled by the ICU, which forwards them to the GIC. The ICU supports 16 IRQ lines, the pins map to these lines arbitrarily, and the mapping is not configurable. Document the required properties to handle GPIO IRQ. Signed-off-by: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Reviewed-by: Linus Walleij <linusw@kernel.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patch.msgid.link/20251205150234.2958140-4-cosmin-gabriel.tanislav.xa@renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 49b039a commit 8b12070

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,17 @@ properties:
4949
gpio-ranges:
5050
maxItems: 1
5151

52+
interrupt-controller: true
53+
54+
'#interrupt-cells':
55+
const: 2
56+
description:
57+
The first cell contains the global GPIO port index, constructed using the
58+
RZT2H_GPIO() helper macro from <dt-bindings/pinctrl/renesas,r9a09g077-pinctrl.h>
59+
and the second cell is used to specify the flag.
60+
E.g. "interrupts = <RZT2H_GPIO(8, 6) IRQ_TYPE_EDGE_FALLING>;" if P08_6 is
61+
being used as an interrupt.
62+
5263
clocks:
5364
maxItems: 1
5465

@@ -139,6 +150,8 @@ examples:
139150
gpio-controller;
140151
#gpio-cells = <2>;
141152
gpio-ranges = <&pinctrl 0 0 288>;
153+
interrupt-controller;
154+
#interrupt-cells = <2>;
142155
power-domains = <&cpg>;
143156
144157
serial0-pins {

0 commit comments

Comments
 (0)