* [RFT 0/2] i2c: add support for r8a7795 (RCar H3) @ 2015-08-05 13:18 Wolfram Sang 2015-08-05 13:18 ` [RFT 1/2] i2c: rcar: add support for r8a7795 (R-Car H3) Wolfram Sang ` (2 more replies) 0 siblings, 3 replies; 9+ messages in thread From: Wolfram Sang @ 2015-08-05 13:18 UTC (permalink / raw) To: linux-i2c Cc: linux-sh, Magnus Damm, Simon Horman, Laurent Pinchart, Geert Uytterhoeven, Wolfram Sang Here are the driver updates to support this new SoC. Since I don't have HW access, this is a request for testing. The IP cores are backwards compatible to Gen2. So, as long as the clocks are properly setup and the bus speed is OK, the rest should work out of the box. Question: Shall I prototype the dtsi additions for these modules? On the one hand, this is quite some change for not being able to test. On the other hand, other people might be so busy setting up the rest, so it may be useful after all. Wolfram Sang (2): i2c: rcar: add support for r8a7795 (R-Car H3) i2c: sh_mobile: add support for r8a7795 (R-Car H3) Documentation/devicetree/bindings/i2c/i2c-rcar.txt | 1 + Documentation/devicetree/bindings/i2c/i2c-sh_mobile.txt | 1 + drivers/i2c/busses/i2c-rcar.c | 3 +++ drivers/i2c/busses/i2c-sh_mobile.c | 1 + 4 files changed, 6 insertions(+) -- 2.1.4 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [RFT 1/2] i2c: rcar: add support for r8a7795 (R-Car H3) 2015-08-05 13:18 [RFT 0/2] i2c: add support for r8a7795 (RCar H3) Wolfram Sang @ 2015-08-05 13:18 ` Wolfram Sang 2015-08-06 0:30 ` Simon Horman 2015-08-06 0:34 ` Laurent Pinchart [not found] ` <1438780706-20945-1-git-send-email-wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org> 2015-09-17 5:08 ` [RFT 0/2] i2c: add support for r8a7795 (RCar H3) Kuninori Morimoto 2 siblings, 2 replies; 9+ messages in thread From: Wolfram Sang @ 2015-08-05 13:18 UTC (permalink / raw) To: linux-i2c Cc: linux-sh, Magnus Damm, Simon Horman, Laurent Pinchart, Geert Uytterhoeven, Wolfram Sang From: Wolfram Sang <wsa+renesas@sang-engineering.com> Enable the I2C core for this SoC. I add a new type because this version has new features (e.g. DMA) which will be added somewhen later. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> --- Documentation/devicetree/bindings/i2c/i2c-rcar.txt | 1 + drivers/i2c/busses/i2c-rcar.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-rcar.txt b/Documentation/devicetree/bindings/i2c/i2c-rcar.txt index 16b3e07aa98fdd..ea406eb20fa5ad 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-rcar.txt +++ b/Documentation/devicetree/bindings/i2c/i2c-rcar.txt @@ -10,6 +10,7 @@ Required properties: "renesas,i2c-r8a7792" "renesas,i2c-r8a7793" "renesas,i2c-r8a7794" + "renesas,i2c-r8a7795" - reg: physical base address of the controller and length of memory mapped region. - interrupts: interrupt specifier. diff --git a/drivers/i2c/busses/i2c-rcar.c b/drivers/i2c/busses/i2c-rcar.c index d8361dada58455..3e125654bb288a 100644 --- a/drivers/i2c/busses/i2c-rcar.c +++ b/drivers/i2c/busses/i2c-rcar.c @@ -103,6 +103,7 @@ enum rcar_i2c_type { I2C_RCAR_GEN1, I2C_RCAR_GEN2, + I2C_RCAR_GEN3, }; struct rcar_i2c_priv { @@ -178,6 +179,7 @@ static int rcar_i2c_clock_calculate(struct rcar_i2c_priv *priv, cdf_width = 2; break; case I2C_RCAR_GEN2: + case I2C_RCAR_GEN3: cdf_width = 3; break; default: @@ -625,6 +627,7 @@ static const struct of_device_id rcar_i2c_dt_ids[] = { { .compatible = "renesas,i2c-r8a7792", .data = (void *)I2C_RCAR_GEN2 }, { .compatible = "renesas,i2c-r8a7793", .data = (void *)I2C_RCAR_GEN2 }, { .compatible = "renesas,i2c-r8a7794", .data = (void *)I2C_RCAR_GEN2 }, + { .compatible = "renesas,i2c-r8a7795", .data = (void *)I2C_RCAR_GEN3 }, {}, }; MODULE_DEVICE_TABLE(of, rcar_i2c_dt_ids); -- 2.1.4 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [RFT 1/2] i2c: rcar: add support for r8a7795 (R-Car H3) 2015-08-05 13:18 ` [RFT 1/2] i2c: rcar: add support for r8a7795 (R-Car H3) Wolfram Sang @ 2015-08-06 0:30 ` Simon Horman 2015-08-06 0:34 ` Laurent Pinchart 1 sibling, 0 replies; 9+ messages in thread From: Simon Horman @ 2015-08-06 0:30 UTC (permalink / raw) To: Wolfram Sang Cc: linux-i2c, linux-sh, Magnus Damm, Laurent Pinchart, Geert Uytterhoeven On Wed, Aug 05, 2015 at 03:18:25PM +0200, Wolfram Sang wrote: > From: Wolfram Sang <wsa+renesas@sang-engineering.com> > > Enable the I2C core for this SoC. I add a new type because this version > has new features (e.g. DMA) which will be added somewhen later. Minor nit: s/somewhen/sometime/ or: s/somewhen // > Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> > --- > Documentation/devicetree/bindings/i2c/i2c-rcar.txt | 1 + > drivers/i2c/busses/i2c-rcar.c | 3 +++ > 2 files changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/i2c/i2c-rcar.txt b/Documentation/devicetree/bindings/i2c/i2c-rcar.txt > index 16b3e07aa98fdd..ea406eb20fa5ad 100644 > --- a/Documentation/devicetree/bindings/i2c/i2c-rcar.txt > +++ b/Documentation/devicetree/bindings/i2c/i2c-rcar.txt > @@ -10,6 +10,7 @@ Required properties: > "renesas,i2c-r8a7792" > "renesas,i2c-r8a7793" > "renesas,i2c-r8a7794" > + "renesas,i2c-r8a7795" > - reg: physical base address of the controller and length of memory mapped > region. > - interrupts: interrupt specifier. > diff --git a/drivers/i2c/busses/i2c-rcar.c b/drivers/i2c/busses/i2c-rcar.c > index d8361dada58455..3e125654bb288a 100644 > --- a/drivers/i2c/busses/i2c-rcar.c > +++ b/drivers/i2c/busses/i2c-rcar.c > @@ -103,6 +103,7 @@ > enum rcar_i2c_type { > I2C_RCAR_GEN1, > I2C_RCAR_GEN2, > + I2C_RCAR_GEN3, > }; > > struct rcar_i2c_priv { > @@ -178,6 +179,7 @@ static int rcar_i2c_clock_calculate(struct rcar_i2c_priv *priv, > cdf_width = 2; > break; > case I2C_RCAR_GEN2: > + case I2C_RCAR_GEN3: > cdf_width = 3; > break; > default: > @@ -625,6 +627,7 @@ static const struct of_device_id rcar_i2c_dt_ids[] = { > { .compatible = "renesas,i2c-r8a7792", .data = (void *)I2C_RCAR_GEN2 }, > { .compatible = "renesas,i2c-r8a7793", .data = (void *)I2C_RCAR_GEN2 }, > { .compatible = "renesas,i2c-r8a7794", .data = (void *)I2C_RCAR_GEN2 }, > + { .compatible = "renesas,i2c-r8a7795", .data = (void *)I2C_RCAR_GEN3 }, > {}, > }; > MODULE_DEVICE_TABLE(of, rcar_i2c_dt_ids); > -- > 2.1.4 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-sh" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [RFT 1/2] i2c: rcar: add support for r8a7795 (R-Car H3) 2015-08-05 13:18 ` [RFT 1/2] i2c: rcar: add support for r8a7795 (R-Car H3) Wolfram Sang 2015-08-06 0:30 ` Simon Horman @ 2015-08-06 0:34 ` Laurent Pinchart 2015-08-06 0:38 ` Wolfram Sang 1 sibling, 1 reply; 9+ messages in thread From: Laurent Pinchart @ 2015-08-06 0:34 UTC (permalink / raw) To: Wolfram Sang Cc: linux-i2c, linux-sh, Magnus Damm, Simon Horman, Geert Uytterhoeven Hi Wolfram, Thank you for the patch. On Wednesday 05 August 2015 15:18:25 Wolfram Sang wrote: > From: Wolfram Sang <wsa+renesas@sang-engineering.com> > > Enable the I2C core for this SoC. I add a new type because this version > has new features (e.g. DMA) which will be added somewhen later. > > Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> > --- > Documentation/devicetree/bindings/i2c/i2c-rcar.txt | 1 + > drivers/i2c/busses/i2c-rcar.c | 3 +++ > 2 files changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/i2c/i2c-rcar.txt > b/Documentation/devicetree/bindings/i2c/i2c-rcar.txt index > 16b3e07aa98fdd..ea406eb20fa5ad 100644 > --- a/Documentation/devicetree/bindings/i2c/i2c-rcar.txt > +++ b/Documentation/devicetree/bindings/i2c/i2c-rcar.txt > @@ -10,6 +10,7 @@ Required properties: > "renesas,i2c-r8a7792" > "renesas,i2c-r8a7793" > "renesas,i2c-r8a7794" > + "renesas,i2c-r8a7795" > - reg: physical base address of the controller and length of memory mapped > region. > - interrupts: interrupt specifier. > diff --git a/drivers/i2c/busses/i2c-rcar.c b/drivers/i2c/busses/i2c-rcar.c > index d8361dada58455..3e125654bb288a 100644 > --- a/drivers/i2c/busses/i2c-rcar.c > +++ b/drivers/i2c/busses/i2c-rcar.c > @@ -103,6 +103,7 @@ > enum rcar_i2c_type { > I2C_RCAR_GEN1, > I2C_RCAR_GEN2, > + I2C_RCAR_GEN3, > }; > > struct rcar_i2c_priv { > @@ -178,6 +179,7 @@ static int rcar_i2c_clock_calculate(struct rcar_i2c_priv > *priv, cdf_width = 2; > break; > case I2C_RCAR_GEN2: > + case I2C_RCAR_GEN3: > cdf_width = 3; > break; > default: > @@ -625,6 +627,7 @@ static const struct of_device_id rcar_i2c_dt_ids[] = { > { .compatible = "renesas,i2c-r8a7792", .data = (void *)I2C_RCAR_GEN2 }, > { .compatible = "renesas,i2c-r8a7793", .data = (void *)I2C_RCAR_GEN2 }, > { .compatible = "renesas,i2c-r8a7794", .data = (void *)I2C_RCAR_GEN2 }, > + { .compatible = "renesas,i2c-r8a7795", .data = (void *)I2C_RCAR_GEN3 }, If H3 is compatible with Gen2, can't you just use I2C_RCAR_GEN2 here ? You can always add I2C_RCAR_GEN3 later if you find differences. > {}, > }; > MODULE_DEVICE_TABLE(of, rcar_i2c_dt_ids); -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [RFT 1/2] i2c: rcar: add support for r8a7795 (R-Car H3) 2015-08-06 0:34 ` Laurent Pinchart @ 2015-08-06 0:38 ` Wolfram Sang 2015-08-06 0:45 ` Laurent Pinchart 0 siblings, 1 reply; 9+ messages in thread From: Wolfram Sang @ 2015-08-06 0:38 UTC (permalink / raw) To: Laurent Pinchart Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA, linux-sh-u79uwXL29TY76Z2rM5mHXA, Magnus Damm, Simon Horman, Geert Uytterhoeven [-- Attachment #1: Type: text/plain, Size: 1116 bytes --] On Thu, Aug 06, 2015 at 03:34:05AM +0300, Laurent Pinchart wrote: > Hi Wolfram, > > Thank you for the patch. > > On Wednesday 05 August 2015 15:18:25 Wolfram Sang wrote: > > From: Wolfram Sang <wsa+renesas-jBu1N2QxHDJrcw3mvpCnnVaTQe2KTcn/@public.gmane.org> > > > > Enable the I2C core for this SoC. I add a new type because this version > > has new features (e.g. DMA) which will be added somewhen later. > > > > Signed-off-by: Wolfram Sang <wsa+renesas-jBu1N2QxHDJrcw3mvpCnnVaTQe2KTcn/@public.gmane.org> ... > > @@ -625,6 +627,7 @@ static const struct of_device_id rcar_i2c_dt_ids[] = { > > { .compatible = "renesas,i2c-r8a7792", .data = (void *)I2C_RCAR_GEN2 }, > > { .compatible = "renesas,i2c-r8a7793", .data = (void *)I2C_RCAR_GEN2 }, > > { .compatible = "renesas,i2c-r8a7794", .data = (void *)I2C_RCAR_GEN2 }, > > + { .compatible = "renesas,i2c-r8a7795", .data = (void *)I2C_RCAR_GEN3 }, > > If H3 is compatible with Gen2, can't you just use I2C_RCAR_GEN2 here ? You can > always add I2C_RCAR_GEN3 later if you find differences. Is the patch description not clear enough? [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [RFT 1/2] i2c: rcar: add support for r8a7795 (R-Car H3) 2015-08-06 0:38 ` Wolfram Sang @ 2015-08-06 0:45 ` Laurent Pinchart 2015-08-06 0:52 ` Wolfram Sang 0 siblings, 1 reply; 9+ messages in thread From: Laurent Pinchart @ 2015-08-06 0:45 UTC (permalink / raw) To: Wolfram Sang Cc: linux-i2c, linux-sh, Magnus Damm, Simon Horman, Geert Uytterhoeven On Thursday 06 August 2015 02:38:49 Wolfram Sang wrote: > On Thu, Aug 06, 2015 at 03:34:05AM +0300, Laurent Pinchart wrote: > > Hi Wolfram, > > > > Thank you for the patch. > > > > On Wednesday 05 August 2015 15:18:25 Wolfram Sang wrote: > > > From: Wolfram Sang <wsa+renesas@sang-engineering.com> > > > > > > Enable the I2C core for this SoC. I add a new type because this version > > > has new features (e.g. DMA) which will be added somewhen later. > > > > > > Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> > > ... > > > > @@ -625,6 +627,7 @@ static const struct of_device_id rcar_i2c_dt_ids[] = > > > { > > > { .compatible = "renesas,i2c-r8a7792", .data = (void *)I2C_RCAR_GEN2 > > > }, > > > { .compatible = "renesas,i2c-r8a7793", .data = (void *)I2C_RCAR_GEN2 > > > }, > > > { .compatible = "renesas,i2c-r8a7794", .data = (void *)I2C_RCAR_GEN2 > > > }, > > > + { .compatible = "renesas,i2c-r8a7795", .data = (void *)I2C_RCAR_GEN3 > > > }, > > > > If H3 is compatible with Gen2, can't you just use I2C_RCAR_GEN2 here ? You > > can always add I2C_RCAR_GEN3 later if you find differences. > > Is the patch description not clear enough? My bad. I should go to bed. And so should you by the way ;-) -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [RFT 1/2] i2c: rcar: add support for r8a7795 (R-Car H3) 2015-08-06 0:45 ` Laurent Pinchart @ 2015-08-06 0:52 ` Wolfram Sang 0 siblings, 0 replies; 9+ messages in thread From: Wolfram Sang @ 2015-08-06 0:52 UTC (permalink / raw) To: Laurent Pinchart Cc: linux-i2c, linux-sh, Magnus Damm, Simon Horman, Geert Uytterhoeven [-- Attachment #1: Type: text/plain, Size: 109 bytes --] > My bad. I should go to bed. And so should you by the way ;-) Acked-by: Wolfram Sang <wsa@the-dreams.de> [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <1438780706-20945-1-git-send-email-wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>]
* [RFT 2/2] i2c: sh_mobile: add support for r8a7795 (R-Car H3) [not found] ` <1438780706-20945-1-git-send-email-wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org> @ 2015-08-05 13:18 ` Wolfram Sang 0 siblings, 0 replies; 9+ messages in thread From: Wolfram Sang @ 2015-08-05 13:18 UTC (permalink / raw) To: linux-i2c-u79uwXL29TY76Z2rM5mHXA Cc: linux-sh-u79uwXL29TY76Z2rM5mHXA, Magnus Damm, Simon Horman, Laurent Pinchart, Geert Uytterhoeven, Wolfram Sang From: Wolfram Sang <wsa+renesas-jBu1N2QxHDJrcw3mvpCnnVaTQe2KTcn/@public.gmane.org> Enable the I2C core for this SoC. It is compitable to Gen2 SoCs, so reuse the settings. Signed-off-by: Wolfram Sang <wsa+renesas-jBu1N2QxHDJrcw3mvpCnnVaTQe2KTcn/@public.gmane.org> --- Documentation/devicetree/bindings/i2c/i2c-sh_mobile.txt | 1 + drivers/i2c/busses/i2c-sh_mobile.c | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-sh_mobile.txt b/Documentation/devicetree/bindings/i2c/i2c-sh_mobile.txt index 2bfc6e7ed09473..214f94c25d370b 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-sh_mobile.txt +++ b/Documentation/devicetree/bindings/i2c/i2c-sh_mobile.txt @@ -10,6 +10,7 @@ Required properties: - "renesas,iic-r8a7792" (R-Car V2H) - "renesas,iic-r8a7793" (R-Car M2-N) - "renesas,iic-r8a7794" (R-Car E2) + - "renesas,iic-r8a7795" (R-Car H3) - "renesas,iic-sh73a0" (SH-Mobile AG5) - reg : address start and address range size of device - interrupts : interrupt of device diff --git a/drivers/i2c/busses/i2c-sh_mobile.c b/drivers/i2c/busses/i2c-sh_mobile.c index 47659a925e09cd..7d2bd3ec2d2d25 100644 --- a/drivers/i2c/busses/i2c-sh_mobile.c +++ b/drivers/i2c/busses/i2c-sh_mobile.c @@ -836,6 +836,7 @@ static const struct of_device_id sh_mobile_i2c_dt_ids[] = { { .compatible = "renesas,iic-r8a7792", .data = &fast_clock_dt_config }, { .compatible = "renesas,iic-r8a7793", .data = &fast_clock_dt_config }, { .compatible = "renesas,iic-r8a7794", .data = &fast_clock_dt_config }, + { .compatible = "renesas,iic-r8a7795", .data = &fast_clock_dt_config }, { .compatible = "renesas,iic-sh73a0", .data = &fast_clock_dt_config }, {}, }; -- 2.1.4 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [RFT 0/2] i2c: add support for r8a7795 (RCar H3) 2015-08-05 13:18 [RFT 0/2] i2c: add support for r8a7795 (RCar H3) Wolfram Sang 2015-08-05 13:18 ` [RFT 1/2] i2c: rcar: add support for r8a7795 (R-Car H3) Wolfram Sang [not found] ` <1438780706-20945-1-git-send-email-wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org> @ 2015-09-17 5:08 ` Kuninori Morimoto 2 siblings, 0 replies; 9+ messages in thread From: Kuninori Morimoto @ 2015-09-17 5:08 UTC (permalink / raw) To: Wolfram Sang Cc: linux-i2c, linux-sh, Magnus Damm, Simon Horman, Laurent Pinchart, Geert Uytterhoeven Hi Wolfram > Here are the driver updates to support this new SoC. Since I don't have HW > access, this is a request for testing. The IP cores are backwards compatible to > Gen2. So, as long as the clocks are properly setup and the bus speed is OK, > the rest should work out of the box. > > Question: Shall I prototype the dtsi additions for these modules? On the one > hand, this is quite some change for not being able to test. On the other hand, > other people might be so busy setting up the rest, so it may be useful after > all. > > > Wolfram Sang (2): > i2c: rcar: add support for r8a7795 (R-Car H3) > i2c: sh_mobile: add support for r8a7795 (R-Car H3) > > Documentation/devicetree/bindings/i2c/i2c-rcar.txt | 1 + > Documentation/devicetree/bindings/i2c/i2c-sh_mobile.txt | 1 + > drivers/i2c/busses/i2c-rcar.c | 3 +++ > drivers/i2c/busses/i2c-sh_mobile.c | 1 + > 4 files changed, 6 insertions(+) For all patches, on Salvator-X board with ak4613 / cs2000 chip Tested-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2015-09-17 5:08 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-08-05 13:18 [RFT 0/2] i2c: add support for r8a7795 (RCar H3) Wolfram Sang 2015-08-05 13:18 ` [RFT 1/2] i2c: rcar: add support for r8a7795 (R-Car H3) Wolfram Sang 2015-08-06 0:30 ` Simon Horman 2015-08-06 0:34 ` Laurent Pinchart 2015-08-06 0:38 ` Wolfram Sang 2015-08-06 0:45 ` Laurent Pinchart 2015-08-06 0:52 ` Wolfram Sang [not found] ` <1438780706-20945-1-git-send-email-wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org> 2015-08-05 13:18 ` [RFT 2/2] i2c: sh_mobile: " Wolfram Sang 2015-09-17 5:08 ` [RFT 0/2] i2c: add support for r8a7795 (RCar H3) Kuninori Morimoto
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).