linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gpio: rcar: Add r8a7795 (R-Car H3) support
@ 2015-06-19 10:38 Ulrich Hecht
  2015-06-19 11:39 ` Khiem Nguyen
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Ulrich Hecht @ 2015-06-19 10:38 UTC (permalink / raw)
  To: linux-sh

R-Car Gen3's GPIO blocks are identical to Gen2's in every respect.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
---
 Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt | 1 +
 drivers/gpio/gpio-rcar.c                                     | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt b/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt
index 38fb86f..f60e2f4 100644
--- a/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt
+++ b/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt
@@ -9,6 +9,7 @@ Required Properties:
     - "renesas,gpio-r8a7791": for R8A7791 (R-Car M2-W) compatible GPIO controller.
     - "renesas,gpio-r8a7793": for R8A7793 (R-Car M2-N) compatible GPIO controller.
     - "renesas,gpio-r8a7794": for R8A7794 (R-Car E2) compatible GPIO controller.
+    - "renesas,gpio-r8a7795": for R8A7795 (R-Car H3) compatible GPIO controller.
     - "renesas,gpio-rcar": for generic R-Car GPIO controller.
 
   - reg: Base address and length of each memory resource used by the GPIO
diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c
index fd39774..e962ad5 100644
--- a/drivers/gpio/gpio-rcar.c
+++ b/drivers/gpio/gpio-rcar.c
@@ -318,6 +318,9 @@ static const struct of_device_id gpio_rcar_of_table[] = {
 		.compatible = "renesas,gpio-r8a7794",
 		.data = &gpio_rcar_info_gen2,
 	}, {
+		.compatible = "renesas,gpio-r8a7795",
+		.data = &gpio_rcar_info_gen2,
+	}, {
 		.compatible = "renesas,gpio-rcar",
 		.data = &gpio_rcar_info_gen1,
 	}, {
-- 
2.4.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] gpio: rcar: Add r8a7795 (R-Car H3) support
  2015-06-19 10:38 [PATCH] gpio: rcar: Add r8a7795 (R-Car H3) support Ulrich Hecht
@ 2015-06-19 11:39 ` Khiem Nguyen
  2015-06-22  1:03 ` Kuninori Morimoto
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Khiem Nguyen @ 2015-06-19 11:39 UTC (permalink / raw)
  To: linux-sh

Hi Ulrich,

Thanks for your patch.

On 6/19/2015 5:38 PM, Ulrich Hecht wrote:
> R-Car Gen3's GPIO blocks are identical to Gen2's in every respect.
>
> Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
> ---
>   Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt | 1 +
>   drivers/gpio/gpio-rcar.c                                     | 3 +++
>   2 files changed, 4 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt b/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt
> index 38fb86f..f60e2f4 100644
> --- a/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt
> +++ b/Documentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt
> @@ -9,6 +9,7 @@ Required Properties:
>       - "renesas,gpio-r8a7791": for R8A7791 (R-Car M2-W) compatible GPIO controller.
>       - "renesas,gpio-r8a7793": for R8A7793 (R-Car M2-N) compatible GPIO controller.
>       - "renesas,gpio-r8a7794": for R8A7794 (R-Car E2) compatible GPIO controller.
> +    - "renesas,gpio-r8a7795": for R8A7795 (R-Car H3) compatible GPIO controller.
>       - "renesas,gpio-rcar": for generic R-Car GPIO controller.
>
>     - reg: Base address and length of each memory resource used by the GPIO
> diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c
> index fd39774..e962ad5 100644
> --- a/drivers/gpio/gpio-rcar.c
> +++ b/drivers/gpio/gpio-rcar.c
> @@ -318,6 +318,9 @@ static const struct of_device_id gpio_rcar_of_table[] = {
>   		.compatible = "renesas,gpio-r8a7794",
>   		.data = &gpio_rcar_info_gen2,
>   	}, {
> +		.compatible = "renesas,gpio-r8a7795",
> +		.data = &gpio_rcar_info_gen2,

I suggest that we should create another structure, e.g gpio_rcar_info_gen3,
or change current gpio_rcar_info_gen2 to a more generic name for both 
gen2 and gen3.
What do you think ?

> +	}, {
>   		.compatible = "renesas,gpio-rcar",
>   		.data = &gpio_rcar_info_gen1,
>   	}, {
>


-- 
Best regards,
KHIEM Nguyen
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] gpio: rcar: Add r8a7795 (R-Car H3) support
  2015-06-19 10:38 [PATCH] gpio: rcar: Add r8a7795 (R-Car H3) support Ulrich Hecht
  2015-06-19 11:39 ` Khiem Nguyen
@ 2015-06-22  1:03 ` Kuninori Morimoto
  2015-06-23 23:39 ` Simon Horman
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Kuninori Morimoto @ 2015-06-22  1:03 UTC (permalink / raw)
  To: linux-sh


Hi Ulrich

> R-Car Gen3's GPIO blocks are identical to Gen2's in every respect.
(snip)
> diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c
> index fd39774..e962ad5 100644
> --- a/drivers/gpio/gpio-rcar.c
> +++ b/drivers/gpio/gpio-rcar.c
> @@ -318,6 +318,9 @@ static const struct of_device_id gpio_rcar_of_table[] = {
>  		.compatible = "renesas,gpio-r8a7794",
>  		.data = &gpio_rcar_info_gen2,
>  	}, {
> +		.compatible = "renesas,gpio-r8a7795",
> +		.data = &gpio_rcar_info_gen2,
> +	}, {
>  		.compatible = "renesas,gpio-rcar",
>  		.data = &gpio_rcar_info_gen1,
>  	}, {

I would like to have "gen3", or have comment /* gen3 compatible */
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] gpio: rcar: Add r8a7795 (R-Car H3) support
  2015-06-19 10:38 [PATCH] gpio: rcar: Add r8a7795 (R-Car H3) support Ulrich Hecht
  2015-06-19 11:39 ` Khiem Nguyen
  2015-06-22  1:03 ` Kuninori Morimoto
@ 2015-06-23 23:39 ` Simon Horman
  2015-07-13 10:07 ` Linus Walleij
  2015-07-13 18:52 ` Laurent Pinchart
  4 siblings, 0 replies; 6+ messages in thread
From: Simon Horman @ 2015-06-23 23:39 UTC (permalink / raw)
  To: linux-sh

On Mon, Jun 22, 2015 at 01:03:14AM +0000, Kuninori Morimoto wrote:
> 
> Hi Ulrich
> 
> > R-Car Gen3's GPIO blocks are identical to Gen2's in every respect.
> (snip)
> > diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c
> > index fd39774..e962ad5 100644
> > --- a/drivers/gpio/gpio-rcar.c
> > +++ b/drivers/gpio/gpio-rcar.c
> > @@ -318,6 +318,9 @@ static const struct of_device_id gpio_rcar_of_table[] = {
> >  		.compatible = "renesas,gpio-r8a7794",
> >  		.data = &gpio_rcar_info_gen2,
> >  	}, {
> > +		.compatible = "renesas,gpio-r8a7795",
> > +		.data = &gpio_rcar_info_gen2,
> > +	}, {
> >  		.compatible = "renesas,gpio-rcar",
> >  		.data = &gpio_rcar_info_gen1,
> >  	}, {
> 
> I would like to have "gen3", or have comment /* gen3 compatible */

I don't feel strongly about this, however, unless I am mistaken the name
in question is internal to this driver. So from my point of view a comment
would suffice.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] gpio: rcar: Add r8a7795 (R-Car H3) support
  2015-06-19 10:38 [PATCH] gpio: rcar: Add r8a7795 (R-Car H3) support Ulrich Hecht
                   ` (2 preceding siblings ...)
  2015-06-23 23:39 ` Simon Horman
@ 2015-07-13 10:07 ` Linus Walleij
  2015-07-13 18:52 ` Laurent Pinchart
  4 siblings, 0 replies; 6+ messages in thread
From: Linus Walleij @ 2015-07-13 10:07 UTC (permalink / raw)
  To: linux-sh

On Fri, Jun 19, 2015 at 12:38 PM, Ulrich Hecht
<ulrich.hecht+renesas@gmail.com> wrote:

> R-Car Gen3's GPIO blocks are identical to Gen2's in every respect.
>
> Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>

I see there are some comments so waiting for a v2.

I'd like Lauren't ACK on this too.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] gpio: rcar: Add r8a7795 (R-Car H3) support
  2015-06-19 10:38 [PATCH] gpio: rcar: Add r8a7795 (R-Car H3) support Ulrich Hecht
                   ` (3 preceding siblings ...)
  2015-07-13 10:07 ` Linus Walleij
@ 2015-07-13 18:52 ` Laurent Pinchart
  4 siblings, 0 replies; 6+ messages in thread
From: Laurent Pinchart @ 2015-07-13 18:52 UTC (permalink / raw)
  To: linux-sh

On Monday 13 July 2015 12:07:02 Linus Walleij wrote:
> On Fri, Jun 19, 2015 at 12:38 PM, Ulrich Hecht
> 
> <ulrich.hecht+renesas@gmail.com> wrote:
> > R-Car Gen3's GPIO blocks are identical to Gen2's in every respect.
> > 
> > Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
> 
> I see there are some comments so waiting for a v2.
> 
> I'd like Lauren't ACK on this too.

I'm already fine with v1 so I'll likely ack v2.

-- 
Regards,

Laurent Pinchart


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-07-13 18:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-19 10:38 [PATCH] gpio: rcar: Add r8a7795 (R-Car H3) support Ulrich Hecht
2015-06-19 11:39 ` Khiem Nguyen
2015-06-22  1:03 ` Kuninori Morimoto
2015-06-23 23:39 ` Simon Horman
2015-07-13 10:07 ` Linus Walleij
2015-07-13 18:52 ` Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).