Skip to contentSkip to conversation

gpio: rcar: Add R8A7743 (RZ/G1M) support

PATCH New Biju Das 6 participants 8 messages Jun 16, 2017 – Jun 29, 2017

Subsystems (3)
lore
Share & tools
lore

Biju Das

author
#0 lore raw

PATCH 1/1 gpio: rcar: Add R8A7743 (RZ/G1M) support

Renesas RZ/G1M (R8A7743 SoC) GPIO blocks are identical to the R-Car Gen2 family. Add support for its GPIO controllers.

---
 Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt | 1 +
 drivers/gpio/gpio-rcar.c                                     | 4 ++++
 2 files changed, 5 insertions(+)
Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt +1 -0
index 7c1ab3b..1cc3cfe 100644
@@ -3,6 +3,7 @@
 Required Properties:
 
   - compatible: should contain one of the following.
+    - "renesas,gpio-r8a7743": for R8A7743 (RZ-G1M) compatible GPIO controller.
     - "renesas,gpio-r8a7778": for R8A7778 (R-Mobile M1) compatible GPIO controller.
     - "renesas,gpio-r8a7779": for R8A7779 (R-Car H1) compatible GPIO controller.
     - "renesas,gpio-r8a7790": for R8A7790 (R-Car H2) compatible GPIO controller.
drivers/gpio/gpio-rcar.c +4 -0
index 31ad288..4a1536a 100644
@@ -344,6 +344,10 @@ struct gpio_rcar_info {
 
 static const struct of_device_id gpio_rcar_of_table[] = {
 	{
+		.compatible = "renesas,gpio-r8a7743",
+		/* RZ/G1 GPIO is identical to R-Car Gen2. */
+		.data = &gpio_rcar_info_gen2,
+	}, {
 		.compatible = "renesas,gpio-r8a7790",
 		.data = &gpio_rcar_info_gen2,
 	}, {
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 gpio: rcar: Add R8A7743 (RZ/G1M) support

Hello!

Quoted 1 line · Biju Das

Renesas RZ/G1M (R8A7743 SoC) GPIO blocks are identical to the R-Car Gen2

SoC should be outside the parens.

Quoted 14 lines

family. Add support for its GPIO controllers.

---
 Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt | 1 +
 drivers/gpio/gpio-rcar.c                                     | 4 ++++
 2 files changed, 5 insertions(+)
Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt +0 -0
index 7c1ab3b..1cc3cfe 100644

Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt line 6

Quoted 4 lines
Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt +1 -0
@@ -3,6 +3,7 @@
 Required Properties:
 
   - compatible: should contain one of the following.
+    - "renesas,gpio-r8a7743": for R8A7743 (RZ-G1M) compatible GPIO controller.
    Not RZ/G1M?

[...]

MBR, Sergei

author
#2 lore raw

PATCH 1/1 gpio: rcar: Add R8A7743 (RZ/G1M) support

Quoted 10 lines

Subject: Re: [PATCH] gpio: rcar: Add R8A7743 (RZ/G1M) support

Hello!

Quoted 1 line · Biju Das

Renesas RZ/G1M (R8A7743 SoC) GPIO blocks are identical to the R-Car

Gen2

SoC should be outside the parens.

Thanks. I will correct it.

Quoted 18 lines

Review

Quoted 11 lines

family. Add support for its GPIO controllers.

---
 Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt | 1 +
 drivers/gpio/gpio-rcar.c                                     | 4 ++++
 2 files changed, 5 insertions(+)
(quoted diff) +0 -0

b/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt

Quoted 6 lines

index 7c1ab3b..1cc3cfe 100644

Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt +0 -0
@@ -3,6 +3,7 @@
 Required Properties:
 
Quoted 5 lines

Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt line 6

Quoted 2 lines
Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt +1 -0
   - compatible: should contain one of the following.
+    - "renesas,gpio-r8a7743": for R8A7743 (RZ-G1M) compatible GPIO

controller.

    Not RZ/G1M?

I will change this to RZ/G1M and will push V2.

Regards,
Biju

Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered No. 04586709.

author
#3 lore raw

PATCH v2 1/1 gpio: rcar: Add R8A7743 (RZ/G1M) support

In reply to Biju Das

Renesas RZ/G1M (R8A7743) SoC GPIO blocks are identical to the R-Car Gen2 family. Add support for its GPIO controllers.

---
v1->v2
* Modified the text "RZ-G1M" to "RZ/G1M"

 Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt | 1 +
 drivers/gpio/gpio-rcar.c                                     | 4 ++++
 2 files changed, 5 insertions(+)
Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt +1 -0
index 7c1ab3b..6826a37 100644
@@ -3,6 +3,7 @@
 Required Properties:
 
   - compatible: should contain one of the following.
+    - "renesas,gpio-r8a7743": for R8A7743 (RZ/G1M) compatible GPIO controller.
     - "renesas,gpio-r8a7778": for R8A7778 (R-Mobile M1) compatible GPIO controller.
     - "renesas,gpio-r8a7779": for R8A7779 (R-Car H1) compatible GPIO controller.
     - "renesas,gpio-r8a7790": for R8A7790 (R-Car H2) compatible GPIO controller.
drivers/gpio/gpio-rcar.c +4 -0
index 31ad288..4a1536a 100644
@@ -344,6 +344,10 @@ struct gpio_rcar_info {
 
 static const struct of_device_id gpio_rcar_of_table[] = {
 	{
+		.compatible = "renesas,gpio-r8a7743",
+		/* RZ/G1 GPIO is identical to R-Car Gen2. */
+		.data = &gpio_rcar_info_gen2,
+	}, {
 		.compatible = "renesas,gpio-r8a7790",
 		.data = &gpio_rcar_info_gen2,
 	}, {
Signature · 1 line
1.9.1
#4 lore raw

PATCH v2 1/1 gpio: rcar: Add R8A7743 (RZ/G1M) support

Quoted 5 lines · Biju Das

Renesas RZ/G1M (R8A7743) SoC GPIO blocks are identical to the R-Car Gen2 family. Add support for its GPIO controllers.

Although I think the time has come for family-specific compatible values for R-Car Gen2 and Gen3.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

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

#5 lore raw

PATCH v2 1/1 gpio: rcar: Add R8A7743 (RZ/G1M) support

Quoted 11 lines · Geert Uytterhoeven
Quoted 5 lines · Biju Das

Renesas RZ/G1M (R8A7743) SoC GPIO blocks are identical to the R-Car Gen2 family. Add support for its GPIO controllers.

Although I think the time has come for family-specific compatible values for R-Car Gen2 and Gen3.

Yes, agreed.

maintainer
#6 lore raw

PATCH v2 1/1 gpio: rcar: Add R8A7743 (RZ/G1M) support

In reply to Biju Das
Quoted 5 lines · Biju Das

Renesas RZ/G1M (R8A7743) SoC GPIO blocks are identical to the R-Car Gen2 family. Add support for its GPIO controllers.

Quoted 7 lines

---
v1->v2
* Modified the text "RZ-G1M" to "RZ/G1M"

 Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt | 1 +
 drivers/gpio/gpio-rcar.c                                     | 4 ++++
 2 files changed, 5 insertions(+)