* [PATCH 0/2] spi: sh-msiof: add rcar compatibility strings @ 2015-12-24 11:16 Yoshihiro Kaneko 2015-12-24 11:16 ` [PATCH 1/2] spi: sh-msiof: Add rcar fallback compatibility string Yoshihiro Kaneko 2015-12-24 11:16 ` [PATCH 2/2] spi: sh-msiof: Add compatible string for r8a7795 Yoshihiro Kaneko 0 siblings, 2 replies; 7+ messages in thread From: Yoshihiro Kaneko @ 2015-12-24 11:16 UTC (permalink / raw) To: linux-spi Cc: Geert Uytterhoeven, Mark Brown, Simon Horman, Magnus Damm, linux-sh This series adds generic rcar and SoC-specific r8a7795 compatibility strings to the sh-msiof driver. The intention is to provide a complete set of compatibility strings for known R-Car Gen2 and Gen3 SoCs. This series is based on the for-next branch of Mark Brown's spi tree. Hiromitsu Yamasaki (1): spi: sh-msiof: Add compatible string for r8a7795 Yoshihiro Kaneko (1): spi: sh-msiof: Add rcar fallback compatibility string Documentation/devicetree/bindings/spi/sh-msiof.txt | 12 +++++++++--- drivers/spi/spi-sh-msiof.c | 5 +++-- 2 files changed, 12 insertions(+), 5 deletions(-) -- 1.9.1 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/2] spi: sh-msiof: Add rcar fallback compatibility string 2015-12-24 11:16 [PATCH 0/2] spi: sh-msiof: add rcar compatibility strings Yoshihiro Kaneko @ 2015-12-24 11:16 ` Yoshihiro Kaneko [not found] ` <1450955807-22869-2-git-send-email-ykaneko0929-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2015-12-24 11:16 ` [PATCH 2/2] spi: sh-msiof: Add compatible string for r8a7795 Yoshihiro Kaneko 1 sibling, 1 reply; 7+ messages in thread From: Yoshihiro Kaneko @ 2015-12-24 11:16 UTC (permalink / raw) To: linux-spi Cc: Geert Uytterhoeven, Mark Brown, Simon Horman, Magnus Damm, linux-sh Add fallback compatibility string for R-Car Gen2 and Gen3. This is in keeping with the fallback scheme being adopted wherever appropriate for drivers for Renesas SoCs. In Addition, this patch deletes the compat strings for old SoCs. Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com> --- Documentation/devicetree/bindings/spi/sh-msiof.txt | 11 ++++++++--- drivers/spi/spi-sh-msiof.c | 5 +++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/spi/sh-msiof.txt b/Documentation/devicetree/bindings/spi/sh-msiof.txt index aa005c1..d9d89ee 100644 --- a/Documentation/devicetree/bindings/spi/sh-msiof.txt +++ b/Documentation/devicetree/bindings/spi/sh-msiof.txt @@ -2,8 +2,8 @@ Renesas MSIOF spi controller Required properties: - compatible : "renesas,msiof-<soctype>" for SoCs, - "renesas,sh-msiof" for SuperH, or - "renesas,sh-mobile-msiof" for SH Mobile series. + "renesas,rcar-gen2-msiof" for R-Car Gen2 series, or + "renesas,rcar-gen3-msiof" for R-Car Gen3 series. Examples with soctypes are: "renesas,msiof-r8a7790" (R-Car H2) "renesas,msiof-r8a7791" (R-Car M2-W) @@ -11,6 +11,11 @@ Required properties: "renesas,msiof-r8a7793" (R-Car M2-N) "renesas,msiof-r8a7794" (R-Car E2) "renesas,msiof-sh73a0" (SH-Mobile AG5) + + When compatible with the generic version, nodes must + list the SoC-specific version corresponding to the + platform first followed by the generic version. + - reg : A list of offsets and lengths of the register sets for the device. If only one register set is present, it is to be used @@ -60,7 +65,7 @@ Documentation/devicetree/bindings/pinctrl/renesas,*. Example: msiof0: spi@e6e20000 { - compatible = "renesas,msiof-r8a7791"; + compatible = "renesas,msiof-r8a7791", "renesas,rcar-gen2-msiof"; reg = <0 0xe6e20000 0 0x0064>; interrupts = <0 156 IRQ_TYPE_LEVEL_HIGH>; clocks = <&mstp0_clks R8A7791_CLK_MSIOF0>; diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c index a7934ab..283fb31 100644 --- a/drivers/spi/spi-sh-msiof.c +++ b/drivers/spi/spi-sh-msiof.c @@ -1,6 +1,7 @@ /* * SuperH MSIOF SPI Master Interface * + * Copyright (C) 2014-2015 Renesas Electronics Corporation * Copyright (c) 2009 Magnus Damm * Copyright (C) 2014 Glider bvba * @@ -971,8 +972,8 @@ static const struct sh_msiof_chipdata r8a779x_data = { }; static const struct of_device_id sh_msiof_match[] = { - { .compatible = "renesas,sh-msiof", .data = &sh_data }, - { .compatible = "renesas,sh-mobile-msiof", .data = &sh_data }, + { .compatible = "renesas,rcar-gen2-msiof", .data = &r8a779x_data }, + { .compatible = "renesas,rcar-gen3-msiof", .data = &r8a779x_data }, { .compatible = "renesas,msiof-r8a7790", .data = &r8a779x_data }, { .compatible = "renesas,msiof-r8a7791", .data = &r8a779x_data }, { .compatible = "renesas,msiof-r8a7792", .data = &r8a779x_data }, -- 1.9.1 ^ permalink raw reply related [flat|nested] 7+ messages in thread
[parent not found: <1450955807-22869-2-git-send-email-ykaneko0929-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH 1/2] spi: sh-msiof: Add rcar fallback compatibility string [not found] ` <1450955807-22869-2-git-send-email-ykaneko0929-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2015-12-24 14:58 ` Geert Uytterhoeven 2015-12-24 15:01 ` Geert Uytterhoeven [not found] ` <CAMuHMdXe8Jpz6aTJkLTcNkKpsoV7tDSjUwuaZY7LxfojA9z7cw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 2 replies; 7+ messages in thread From: Geert Uytterhoeven @ 2015-12-24 14:58 UTC (permalink / raw) To: Yoshihiro Kaneko Cc: linux-spi, Mark Brown, Simon Horman, Magnus Damm, Linux-sh list Hi Kaneko-san, On Thu, Dec 24, 2015 at 12:16 PM, Yoshihiro Kaneko <ykaneko0929-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Add fallback compatibility string for R-Car Gen2 and Gen3. > This is in keeping with the fallback scheme being adopted wherever > appropriate for drivers for Renesas SoCs. > In Addition, this patch deletes the compat strings for old SoCs. "renesas,sh-mobile-msiof" is in use in arch/arm/boot/dts/sh73a0.dtsi, so you cannot just delete it. > Signed-off-by: Yoshihiro Kaneko <ykaneko0929-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > --- > Documentation/devicetree/bindings/spi/sh-msiof.txt | 11 ++++++++--- > drivers/spi/spi-sh-msiof.c | 5 +++-- > 2 files changed, 11 insertions(+), 5 deletions(-) > > diff --git a/Documentation/devicetree/bindings/spi/sh-msiof.txt b/Documentation/devicetree/bindings/spi/sh-msiof.txt > index aa005c1..d9d89ee 100644 > --- a/Documentation/devicetree/bindings/spi/sh-msiof.txt > +++ b/Documentation/devicetree/bindings/spi/sh-msiof.txt > @@ -2,8 +2,8 @@ Renesas MSIOF spi controller > > Required properties: > - compatible : "renesas,msiof-<soctype>" for SoCs, > - "renesas,sh-msiof" for SuperH, or > - "renesas,sh-mobile-msiof" for SH Mobile series. "renesas,sh-mobile-msiof" is in use. > + "renesas,rcar-gen2-msiof" for R-Car Gen2 series, or > + "renesas,rcar-gen3-msiof" for R-Car Gen3 series. > Examples with soctypes are: > "renesas,msiof-r8a7790" (R-Car H2) > "renesas,msiof-r8a7791" (R-Car M2-W) > diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c > index a7934ab..283fb31 100644 > --- a/drivers/spi/spi-sh-msiof.c > +++ b/drivers/spi/spi-sh-msiof.c > @@ -971,8 +972,8 @@ static const struct sh_msiof_chipdata r8a779x_data = { > }; > > static const struct of_device_id sh_msiof_match[] = { > - { .compatible = "renesas,sh-msiof", .data = &sh_data }, > - { .compatible = "renesas,sh-mobile-msiof", .data = &sh_data }, "renesas,sh-mobile-msiof" is in use. > + { .compatible = "renesas,rcar-gen2-msiof", .data = &r8a779x_data }, > + { .compatible = "renesas,rcar-gen3-msiof", .data = &r8a779x_data }, > { .compatible = "renesas,msiof-r8a7790", .data = &r8a779x_data }, > { .compatible = "renesas,msiof-r8a7791", .data = &r8a779x_data }, > { .compatible = "renesas,msiof-r8a7792", .data = &r8a779x_data }, Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.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 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] spi: sh-msiof: Add rcar fallback compatibility string 2015-12-24 14:58 ` Geert Uytterhoeven @ 2015-12-24 15:01 ` Geert Uytterhoeven [not found] ` <CAMuHMdWxP3LYpng199Y3Ppp9ci0BkaA5RbCStuT40iky81e6Ww-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> [not found] ` <CAMuHMdXe8Jpz6aTJkLTcNkKpsoV7tDSjUwuaZY7LxfojA9z7cw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 1 sibling, 1 reply; 7+ messages in thread From: Geert Uytterhoeven @ 2015-12-24 15:01 UTC (permalink / raw) To: Yoshihiro Kaneko Cc: linux-spi, Mark Brown, Simon Horman, Magnus Damm, Linux-sh list Hi Kaneko-san, On Thu, Dec 24, 2015 at 3:58 PM, Geert Uytterhoeven <geert@linux-m68k.org> wrote: >> --- a/drivers/spi/spi-sh-msiof.c >> +++ b/drivers/spi/spi-sh-msiof.c > >> @@ -971,8 +972,8 @@ static const struct sh_msiof_chipdata r8a779x_data = { >> }; >> >> static const struct of_device_id sh_msiof_match[] = { >> - { .compatible = "renesas,sh-msiof", .data = &sh_data }, >> - { .compatible = "renesas,sh-mobile-msiof", .data = &sh_data }, > > "renesas,sh-mobile-msiof" is in use. > >> + { .compatible = "renesas,rcar-gen2-msiof", .data = &r8a779x_data }, >> + { .compatible = "renesas,rcar-gen3-msiof", .data = &r8a779x_data }, Have you tested this? The current driver doesn't work well on r8a7795/salvator-x for me (e.g. the clock signal starts and stops too soon). Hence I think it's a bit premature to make this change. I'll look into the workarounds in the BSP soon... >> { .compatible = "renesas,msiof-r8a7790", .data = &r8a779x_data }, >> { .compatible = "renesas,msiof-r8a7791", .data = &r8a779x_data }, >> { .compatible = "renesas,msiof-r8a7792", .data = &r8a779x_data }, Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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 ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <CAMuHMdWxP3LYpng199Y3Ppp9ci0BkaA5RbCStuT40iky81e6Ww-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 1/2] spi: sh-msiof: Add rcar fallback compatibility string [not found] ` <CAMuHMdWxP3LYpng199Y3Ppp9ci0BkaA5RbCStuT40iky81e6Ww-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2015-12-24 17:52 ` Yoshihiro Kaneko 0 siblings, 0 replies; 7+ messages in thread From: Yoshihiro Kaneko @ 2015-12-24 17:52 UTC (permalink / raw) To: Geert Uytterhoeven Cc: linux-spi, Mark Brown, Simon Horman, Magnus Damm, Linux-sh list Hi Geert-san, 2015-12-25 0:01 GMT+09:00 Geert Uytterhoeven <geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>: > Hi Kaneko-san, > > On Thu, Dec 24, 2015 at 3:58 PM, Geert Uytterhoeven > <geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> wrote: >>> --- a/drivers/spi/spi-sh-msiof.c >>> +++ b/drivers/spi/spi-sh-msiof.c >> >>> @@ -971,8 +972,8 @@ static const struct sh_msiof_chipdata r8a779x_data = { >>> }; >>> >>> static const struct of_device_id sh_msiof_match[] = { >>> - { .compatible = "renesas,sh-msiof", .data = &sh_data }, >>> - { .compatible = "renesas,sh-mobile-msiof", .data = &sh_data }, >> >> "renesas,sh-mobile-msiof" is in use. >> >>> + { .compatible = "renesas,rcar-gen2-msiof", .data = &r8a779x_data }, >>> + { .compatible = "renesas,rcar-gen3-msiof", .data = &r8a779x_data }, > > Have you tested this? I did compiled test only. I have no board. > The current driver doesn't work well on r8a7795/salvator-x for me > (e.g. the clock > signal starts and stops too soon). Hence I think it's a bit premature to make > this change. > > I'll look into the workarounds in the BSP soon... Thanks a lot! > >>> { .compatible = "renesas,msiof-r8a7790", .data = &r8a779x_data }, >>> { .compatible = "renesas,msiof-r8a7791", .data = &r8a779x_data }, >>> { .compatible = "renesas,msiof-r8a7792", .data = &r8a779x_data }, > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.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 Best regards, kaneko -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <CAMuHMdXe8Jpz6aTJkLTcNkKpsoV7tDSjUwuaZY7LxfojA9z7cw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 1/2] spi: sh-msiof: Add rcar fallback compatibility string [not found] ` <CAMuHMdXe8Jpz6aTJkLTcNkKpsoV7tDSjUwuaZY7LxfojA9z7cw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2015-12-24 17:33 ` Yoshihiro Kaneko 0 siblings, 0 replies; 7+ messages in thread From: Yoshihiro Kaneko @ 2015-12-24 17:33 UTC (permalink / raw) To: Geert Uytterhoeven Cc: linux-spi, Mark Brown, Simon Horman, Magnus Damm, Linux-sh list Hi Geert-san, Thanks for your review. 2015-12-24 23:58 GMT+09:00 Geert Uytterhoeven <geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>: > Hi Kaneko-san, > > On Thu, Dec 24, 2015 at 12:16 PM, Yoshihiro Kaneko > <ykaneko0929-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Add fallback compatibility string for R-Car Gen2 and Gen3. >> This is in keeping with the fallback scheme being adopted wherever >> appropriate for drivers for Renesas SoCs. >> In Addition, this patch deletes the compat strings for old SoCs. > > "renesas,sh-mobile-msiof" is in use in arch/arm/boot/dts/sh73a0.dtsi, so you > cannot just delete it. I missed it. I have checked it on wrong tree. Thanks, kaneko > >> Signed-off-by: Yoshihiro Kaneko <ykaneko0929-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> --- >> Documentation/devicetree/bindings/spi/sh-msiof.txt | 11 ++++++++--- >> drivers/spi/spi-sh-msiof.c | 5 +++-- >> 2 files changed, 11 insertions(+), 5 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/spi/sh-msiof.txt b/Documentation/devicetree/bindings/spi/sh-msiof.txt >> index aa005c1..d9d89ee 100644 >> --- a/Documentation/devicetree/bindings/spi/sh-msiof.txt >> +++ b/Documentation/devicetree/bindings/spi/sh-msiof.txt >> @@ -2,8 +2,8 @@ Renesas MSIOF spi controller >> >> Required properties: >> - compatible : "renesas,msiof-<soctype>" for SoCs, >> - "renesas,sh-msiof" for SuperH, or >> - "renesas,sh-mobile-msiof" for SH Mobile series. > > "renesas,sh-mobile-msiof" is in use. > >> + "renesas,rcar-gen2-msiof" for R-Car Gen2 series, or >> + "renesas,rcar-gen3-msiof" for R-Car Gen3 series. >> Examples with soctypes are: >> "renesas,msiof-r8a7790" (R-Car H2) >> "renesas,msiof-r8a7791" (R-Car M2-W) > >> diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c >> index a7934ab..283fb31 100644 >> --- a/drivers/spi/spi-sh-msiof.c >> +++ b/drivers/spi/spi-sh-msiof.c > >> @@ -971,8 +972,8 @@ static const struct sh_msiof_chipdata r8a779x_data = { >> }; >> >> static const struct of_device_id sh_msiof_match[] = { >> - { .compatible = "renesas,sh-msiof", .data = &sh_data }, >> - { .compatible = "renesas,sh-mobile-msiof", .data = &sh_data }, > > "renesas,sh-mobile-msiof" is in use. > >> + { .compatible = "renesas,rcar-gen2-msiof", .data = &r8a779x_data }, >> + { .compatible = "renesas,rcar-gen3-msiof", .data = &r8a779x_data }, >> { .compatible = "renesas,msiof-r8a7790", .data = &r8a779x_data }, >> { .compatible = "renesas,msiof-r8a7791", .data = &r8a779x_data }, >> { .compatible = "renesas,msiof-r8a7792", .data = &r8a779x_data }, > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.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 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/2] spi: sh-msiof: Add compatible string for r8a7795 2015-12-24 11:16 [PATCH 0/2] spi: sh-msiof: add rcar compatibility strings Yoshihiro Kaneko 2015-12-24 11:16 ` [PATCH 1/2] spi: sh-msiof: Add rcar fallback compatibility string Yoshihiro Kaneko @ 2015-12-24 11:16 ` Yoshihiro Kaneko 1 sibling, 0 replies; 7+ messages in thread From: Yoshihiro Kaneko @ 2015-12-24 11:16 UTC (permalink / raw) To: linux-spi Cc: Geert Uytterhoeven, Mark Brown, Simon Horman, Magnus Damm, linux-sh From: Hiromitsu Yamasaki <hiromitsu.yamasaki.ym@renesas.com> Simply documents new compatibility string. As a previous patch adds a generic R-Car Gen3 compatibility string there appears to be no need for a driver updates. Signed-off-by: Hiromitsu Yamasaki <hiromitsu.yamasaki.ym@renesas.com> Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com> --- Documentation/devicetree/bindings/spi/sh-msiof.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/sh-msiof.txt b/Documentation/devicetree/bindings/spi/sh-msiof.txt index d9d89ee..81c1389 100644 --- a/Documentation/devicetree/bindings/spi/sh-msiof.txt +++ b/Documentation/devicetree/bindings/spi/sh-msiof.txt @@ -11,6 +11,7 @@ Required properties: "renesas,msiof-r8a7793" (R-Car M2-N) "renesas,msiof-r8a7794" (R-Car E2) "renesas,msiof-sh73a0" (SH-Mobile AG5) + "renesas,msiof-r8a7795" (R-Car H3) When compatible with the generic version, nodes must list the SoC-specific version corresponding to the -- 1.9.1 ^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-12-24 17:52 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-12-24 11:16 [PATCH 0/2] spi: sh-msiof: add rcar compatibility strings Yoshihiro Kaneko 2015-12-24 11:16 ` [PATCH 1/2] spi: sh-msiof: Add rcar fallback compatibility string Yoshihiro Kaneko [not found] ` <1450955807-22869-2-git-send-email-ykaneko0929-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2015-12-24 14:58 ` Geert Uytterhoeven 2015-12-24 15:01 ` Geert Uytterhoeven [not found] ` <CAMuHMdWxP3LYpng199Y3Ppp9ci0BkaA5RbCStuT40iky81e6Ww-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2015-12-24 17:52 ` Yoshihiro Kaneko [not found] ` <CAMuHMdXe8Jpz6aTJkLTcNkKpsoV7tDSjUwuaZY7LxfojA9z7cw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2015-12-24 17:33 ` Yoshihiro Kaneko 2015-12-24 11:16 ` [PATCH 2/2] spi: sh-msiof: Add compatible string for r8a7795 Yoshihiro Kaneko
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).