Skip to content

Commit 43519f5

Browse files
committed
Merge tag 'renesas-pinctrl-for-v6.20-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers into devel
pinctrl: renesas: Updates for v6.20 - Add support for GPIO IRQs on RZ/T2H and RZ/N2H. Signed-off-by: Linus Walleij <linusw@kernel.org>
2 parents ba76930 + 829dde3 commit 43519f5

3 files changed

Lines changed: 254 additions & 9 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 {

drivers/pinctrl/renesas/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,11 @@ config PINCTRL_RZT2H
308308
bool "pin control support for RZ/N2H and RZ/T2H" if COMPILE_TEST
309309
depends on 64BIT && OF
310310
select GPIOLIB
311+
select GPIOLIB_IRQCHIP
311312
select GENERIC_PINCTRL_GROUPS
312313
select GENERIC_PINMUX_FUNCTIONS
313314
select GENERIC_PINCONF
315+
select IRQ_DOMAIN_HIERARCHY
314316
help
315317
This selects GPIO and pinctrl driver for Renesas RZ/T2H
316318
platforms.

0 commit comments

Comments
 (0)