Add R-Car gen3 SoC support to the CMT driver
Subsystems (3)
v2 cover Add R-Car gen3 SoC support to the CMT driver
Hello!
Here's the set of 3 patches against the 'tip.git' repo's 'timers/core' branch plus the CMT driver fixups for the 32/64-bit machines posted recently. We're adding support for the CMT types0/1 found in the R-Car gen3 SoCs.
[1/3] clocksource: sh_cmt: properly line-wrap sh_cmt_of_table[] initializer [2/3] dt-bindings: timer: renesas: cmt: document R-Car gen3 support [3/3] clocksource: sh_cmt: add R-Car gen3 support
MBR, Sergei
PATCH v2 2/3 dt-bindings: timer: renesas: cmt: document R-Car gen3 support
Document support for the R-Car gen3 CMT types 0/1 bindings -- they seem to be the same CMT types 0/1 as in the R-Car gen2 SoCs.
Also document R8A779{7|8}0 bindings as these are the R-Car gen3 SoCs for which the initial support was done.
---
Changes in version 2:
- new patch, split from the next one.
Documentation/devicetree/bindings/timer/renesas,cmt.txt | 7 +++++++ 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/timer/renesas,cmt.txt +7 -0
@@ -34,6 +34,10 @@ Required Properties: - "renesas,r8a7793-cmt1" for the 48-bit CMT1 device included in r8a7793. - "renesas,r8a7794-cmt0" for the 32-bit CMT0 device included in r8a7794. - "renesas,r8a7794-cmt1" for the 48-bit CMT1 device included in r8a7794. + - "renesas,r8a77970-cmt0" for the 32-bit CMT0 device included in r8a77970. + - "renesas,r8a77970-cmt1" for the 48-bit CMT1 device included in r8a77970. + - "renesas,r8a77980-cmt0" for the 32-bit CMT0 device included in r8a77980. + - "renesas,r8a77980-cmt1" for the 48-bit CMT1 device included in r8a77980. - "renesas,rcar-gen2-cmt0" for 32-bit CMT0 devices included in R-Car Gen2 and RZ/G1.
@@ -41,6 +45,9 @@ Required Properties: and RZ/G1. These are fallbacks for r8a73a4, R-Car Gen2 and RZ/G1 entries listed above. + - "renesas,rcar-gen3-cmt0" for 32-bit CMT0 devices included in R-Car Gen3. + - "renesas,rcar-gen3-cmt1" for 48-bit CMT1 devices included in R-Car Gen3. + These are fallbacks for R-Car Gen3 entries listed above. - reg: base address and length of the registers block for the timer module. - interrupts: interrupt-specifier for the timer, one per channel.
PATCH v2 1/3 clocksource: sh_cmt: properly line-wrap sh_cmt_of_table[] initializer
In reply to Sergei ShtylyovThere's no good reason for the sh_cmt_of_table[] initializer to violate the 80-column limit, especially after the commit 8d50e9476bb4 ("clocksource/drivers/sh_cmt: Mark "renesas,cmt-48-gen2" deprecated") partially fixed it -- fix the R-Car gen2 related entries as well.
---
Changes in version 2:
- refreshed the patch;
- added Chris' and Geert's tags.
drivers/clocksource/sh_cmt.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
drivers/clocksource/sh_cmt.c +8 -2
@@ -935,8 +935,14 @@ static const struct of_device_id sh_cmt_ .compatible = "renesas,cmt-48-gen2", .data = &sh_cmt_info[SH_CMT0_RCAR_GEN2] }, - { .compatible = "renesas,rcar-gen2-cmt0", .data = &sh_cmt_info[SH_CMT0_RCAR_GEN2] }, - { .compatible = "renesas,rcar-gen2-cmt1", .data = &sh_cmt_info[SH_CMT1_RCAR_GEN2] }, + { + .compatible = "renesas,rcar-gen2-cmt0", + .data = &sh_cmt_info[SH_CMT0_RCAR_GEN2] + }, + { + .compatible = "renesas,rcar-gen2-cmt1", + .data = &sh_cmt_info[SH_CMT1_RCAR_GEN2] + }, { } };MODULE_DEVICE_TABLE (of, sh_cmt_of_table);
PATCH v2 3/3 clocksource: sh_cmt: add R-Car gen3 support
In reply to Sergei ShtylyovAdd support for the R-Car gen3 CMT types 0/1 -- they seem to be the same CMT types 0/1 as in R-Car gen2 SoCs.
---
Changes in version 2:
- split the bindings update into a separate patch.
drivers/clocksource/sh_cmt.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/clocksource/sh_cmt.c +8 -0
@@ -943,6 +943,14 @@ static const struct of_device_id sh_cmt_ .compatible = "renesas,rcar-gen2-cmt1", .data = &sh_cmt_info[SH_CMT1_RCAR_GEN2] }, + { + .compatible = "renesas,rcar-gen3-cmt0", + .data = &sh_cmt_info[SH_CMT0_RCAR_GEN2] + }, + { + .compatible = "renesas,rcar-gen3-cmt1", + .data = &sh_cmt_info[SH_CMT1_RCAR_GEN2] + }, { } };MODULE_DEVICE_TABLE (of, sh_cmt_of_table);
Re: [PATCH v2 2/3] dt-bindings: timer: renesas: cmt: document R-Car gen3 support
In reply to Sergei ShtylyovQuoted 7 lines · Sergei Shtylyov
Document support for the R-Car gen3 CMT types 0/1 bindings -- they seem to be the same CMT types 0/1 as in the R-Car gen2 SoCs.
Also document R8A779{7|8}0 bindings as these are the R-Car gen3 SoCs for which the initial support was done.
Signed-off-by Sergei Shtylyov <[email protected]>
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
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
Quoted 9 lines · Sergei Shtylyov
Hello!
Here's the set of 3 patches against the 'tip.git' repo's 'timers/core' branch plus the CMT driver fixups for the 32/64-bit machines posted recently. We're adding support for the CMT types0/1 found in the R-Car gen3 SoCs.
[1/3] clocksource:
sh_cmt: properly line-wrap sh_cmt_of_table[] initializer [2/3] dt-bindings: timer: renesas: cmt: document R-Car gen3 support [3/3] clocksource:sh_cmt: add R-Car gen3 support
Applied for 4.20, thanks.
Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
Re: [PATCH v2 3/3] clocksource: sh_cmt: add R-Car gen3 support
In reply to Sergei ShtylyovQuoted 4 lines · Sergei Shtylyov
Add support for the R-Car gen3 CMT types 0/1 -- they seem to be the same CMT types 0/1 as in R-Car gen2 SoCs.
Signed-off-by Sergei Shtylyov <[email protected]>
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
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
Re: [PATCH v2 2/3] dt-bindings: timer: renesas: cmt: document R-Car gen3 support
In reply to Sergei ShtylyovQuoted 7 lines · Sergei Shtylyov
Document support for the R-Car gen3 CMT types 0/1 bindings -- they seem to be the same CMT types 0/1 as in the R-Car gen2 SoCs.
Also document R8A779{7|8}0 bindings as these are the R-Car gen3 SoCs for which the initial support was done.
Signed-off-by Sergei Shtylyov <[email protected]>
Re: [PATCH v2 1/3] clocksource: sh_cmt: properly line-wrap sh_cmt_of_table[] initializer
In reply to Sergei ShtylyovQuoted 8 lines · Sergei Shtylyov
There's no good reason for the sh_cmt_of_table[] initializer to violate the 80-column limit, especially after the commit
8d50e9476bb4("clocksource/drivers/sh_cmt: Mark "renesas,cmt-48-gen2" deprecated") partially fixed it -- fix the R-Car gen2 related entries as well.Signed-off-by Sergei Shtylyov <[email protected]>Reviewed-by Chris Paterson <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>
Quoted 31 lines
---
Changes in version 2:
- refreshed the patch;
- added Chris' and Geert's tags.drivers/clocksource/sh_cmt.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)Index:
tip/drivers/clocksource/sh_cmt.c
===================================================================drivers/clocksource/sh_cmt.c +8
-2@@ -935,8 +935,14 @@ static const struct of_device_id sh_cmt_ .compatible = "renesas,cmt-48-gen2", .data = &sh_cmt_info[SH_CMT0_RCAR_GEN2] }, - { .compatible = "renesas,rcar-gen2-cmt0", .data = &sh_cmt_info[SH_CMT0_RCAR_GEN2] }, - { .compatible = "renesas,rcar-gen2-cmt1", .data = &sh_cmt_info[SH_CMT1_RCAR_GEN2] }, + { + .compatible = "renesas,rcar-gen2-cmt0", + .data = &sh_cmt_info[SH_CMT0_RCAR_GEN2] + }, + { + .compatible = "renesas,rcar-gen2-cmt1", + .data = &sh_cmt_info[SH_CMT1_RCAR_GEN2] + }, { } };MODULE_DEVICE_TABLE (of, sh_cmt_of_table);
Re: [PATCH v2 3/3] clocksource: sh_cmt: add R-Car gen3 support
In reply to Sergei ShtylyovQuoted 4 lines · Sergei Shtylyov
Add support for the R-Car gen3 CMT types 0/1 -- they seem to be the same CMT types 0/1 as in R-Car gen2 SoCs.
Signed-off-by Sergei Shtylyov <[email protected]>