Skip to contentSkip to conversation

gpio: rcar: Add-R-Car S4-8 GPIO support

PATCH Applied Geert Uytterhoeven 3 participants 6 messages Apr 4, 2022 – Apr 5, 2022

Subsystems (3)
lore
Share & tools
lore

Geert Uytterhoeven

author maintainer
#0 lore raw

v2 cover gpio: rcar: Add-R-Car S4-8 GPIO support

Hi Linus, Bartosz,

This patch series adds support for the Renesas R-Car S4-8 Soc to the R-Car GPIO DT bindings and driver. It has been tested with i2c-gpio, by reading the contents from the I2C EEPROMs on the Spider development board.

Changes compared to v1:
- Drop RFC,
- Split series in DT bindings+driver and DTS series.

Thanks!

Geert Uytterhoeven (2):
dt-bindings: gpio: renesas,rcar-gpio: Add r8a779f0 support
gpio: rcar: Add R-Car Gen4 support

 .../devicetree/bindings/gpio/renesas,rcar-gpio.yaml        | 5 +++++
 drivers/gpio/gpio-rcar.c                                   | 7 +++++--
 2 files changed, 10 insertions(+), 2 deletions(-)
Signature · 12 lines
2.25.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds
author maintainer
#1 lore raw

PATCH v2 1/2 dt-bindings: gpio: renesas,rcar-gpio: Add r8a779f0 support

Document support for the GPIO controller blocks in the Renesas R-Car S4-8 (R8A779F0) SoC, including a new family-specific compatible value for the R-Car Gen4 family.

---
v2:
- No changes.

---
 .../devicetree/bindings/gpio/renesas,rcar-gpio.yaml          | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/gpio/renesas,rcar-gpio.yaml +5 -0
index f2541739ee3b9f7c..0681a4790cd62e23 100644
@@ -51,6 +51,11 @@ properties:
       - items:
           - const: renesas,gpio-r8a779a0  # R-Car V3U
 
+      - items:
+          - enum:
+              - renesas,gpio-r8a779f0     # R-Car S4-8
+          - const: renesas,rcar-gen4-gpio # R-Car Gen4
+
   reg:
     maxItems: 1
 
Signature · 1 line
2.25.1
author maintainer
#3 lore raw

PATCH v2 2/2 gpio: rcar: Add R-Car Gen4 support

In reply to Geert Uytterhoeven

R-Car V3U (R8A779A0) was the first member of the R-Car Gen4 family. Generalize the support for R-Car V3U to other SoCs in the R-Car Gen4 family by adding a family-specific compatible value.

---
v2:
- No changes.

---
 drivers/gpio/gpio-rcar.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/gpio/gpio-rcar.c +5 -2
index bd2e16d6e21c40cf..5fc52341b98263c6 100644
@@ -411,7 +411,7 @@ static const struct gpio_rcar_info gpio_rcar_info_gen3 = {
 	.has_inen = false,
 };
 
-static const struct gpio_rcar_info gpio_rcar_info_v3u = {
+static const struct gpio_rcar_info gpio_rcar_info_gen4 = {
 	.has_outdtsel = true,
 	.has_both_edge_trigger = true,
 	.has_always_in = true,
@@ -421,7 +421,7 @@ static const struct gpio_rcar_info gpio_rcar_info_v3u = {
 static const struct of_device_id gpio_rcar_of_table[] = {
 	{
 		.compatible = "renesas,gpio-r8a779a0",
-		.data = &gpio_rcar_info_v3u,
+		.data = &gpio_rcar_info_gen4,
 	}, {
 		.compatible = "renesas,rcar-gen1-gpio",
 		.data = &gpio_rcar_info_gen1,
@@ -431,6 +431,9 @@ static const struct of_device_id gpio_rcar_of_table[] = {
 	}, {
 		.compatible = "renesas,rcar-gen3-gpio",
 		.data = &gpio_rcar_info_gen3,
+	}, {
+		.compatible = "renesas,rcar-gen4-gpio",
+		.data = &gpio_rcar_info_gen4,
 	}, {
 		.compatible = "renesas,gpio-rcar",
 		.data = &gpio_rcar_info_gen1,
Signature · 1 line
2.25.1
#5 lore raw
In reply to Geert Uytterhoeven
Quoted 27 lines · Geert Uytterhoeven

Hi Linus, Bartosz,

This patch series adds support for the Renesas R-Car S4-8 Soc to the R-Car GPIO DT bindings and driver. It has been tested with i2c-gpio, by reading the contents from the I2C EEPROMs on the Spider development board.

Changes compared to v1:
- Drop RFC,
- Split series in DT bindings+driver and DTS series.

Thanks!

Geert Uytterhoeven (2):
dt-bindings: gpio: renesas,rcar-gpio: Add r8a779f0 support
gpio: rcar: Add R-Car Gen4 support

 .../devicetree/bindings/gpio/renesas,rcar-gpio.yaml        | 5 +++++
 drivers/gpio/gpio-rcar.c                                   | 7 +++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

--
2.25.1

Gr{oetje,eeting}s,

Quoted 8 lines

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

Applied, thanks!

Bart