* [PATCH 0/6] Add PWM and TPU support to r8a7743
@ 2017-12-14 10:56 Fabrizio Castro
2017-12-14 10:56 ` [PATCH 2/6] dt-bindings: pwm: rcar: Document r8a774[35] PWM bindings Fabrizio Castro
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Fabrizio Castro @ 2017-12-14 10:56 UTC (permalink / raw)
To: Thierry Reding, Rob Herring, Mark Rutland, Russell King,
Laurent Pinchart, Geert Uytterhoeven, Linus Walleij
Cc: Fabrizio Castro, Simon Horman, Magnus Damm, Chris Paterson,
Biju Das, linux-pwm, devicetree, linux-renesas-soc,
linux-arm-kernel, linux-gpio
Dear All,
this series includes all that is required to add PWM and TPU SoC specific
support for the r8a7743.
Thanks,
Fabrizio Castro (6):
ARM: shmobile: defconfig: Enable PWM
dt-bindings: pwm: rcar: Document r8a774[35] PWM bindings
ARM: dts: r8a7743: Add PWM SoC support
dt-bindings: pwm: renesas-tpu: Document r8a774[35] support
pinctrl: sh-pfc: r8a7791: Add tpu groups and function
ARM: dts: r8a7743: Add TPU support
.../devicetree/bindings/pwm/renesas,pwm-rcar.txt | 10 ++-
.../devicetree/bindings/pwm/renesas,tpu-pwm.txt | 4 +-
arch/arm/boot/dts/r8a7743.dtsi | 87 ++++++++++++++++++++++
arch/arm/configs/shmobile_defconfig | 1 +
drivers/pinctrl/sh-pfc/pfc-r8a7791.c | 42 ++++++++++-
5 files changed, 138 insertions(+), 6 deletions(-)
--
2.7.4
^ permalink raw reply [flat|nested] 9+ messages in thread* [PATCH 2/6] dt-bindings: pwm: rcar: Document r8a774[35] PWM bindings 2017-12-14 10:56 [PATCH 0/6] Add PWM and TPU support to r8a7743 Fabrizio Castro @ 2017-12-14 10:56 ` Fabrizio Castro 2017-12-15 23:30 ` Rob Herring 2017-12-18 10:57 ` Geert Uytterhoeven [not found] ` <1513248976-26700-1-git-send-email-fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org> 2017-12-14 10:56 ` [PATCH 6/6] ARM: dts: r8a7743: Add TPU support Fabrizio Castro 2 siblings, 2 replies; 9+ messages in thread From: Fabrizio Castro @ 2017-12-14 10:56 UTC (permalink / raw) To: Thierry Reding, Rob Herring, Mark Rutland Cc: Fabrizio Castro, Simon Horman, Geert Uytterhoeven, Chris Paterson, Biju Das, linux-pwm, devicetree, linux-renesas-soc This patch adds compatible strings specific to r8a774[35], no driver change is needed as the fallback compatible string will activate the right code. Also, this patch replaces the example with a DT snippet used for adding PWM0 support to an r8a7743 based platform. Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com> Reviewed-by: Biju Das <biju.das@bp.renesas.com> --- Dear All, the reason for replacing the example with one of a different SoC is that the new example refers to recent code from a real use case. I hope that's ok. Thanks, Fabrizio Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.txt b/Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.txt index 74c1180..f3bba59 100644 --- a/Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.txt +++ b/Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.txt @@ -2,6 +2,8 @@ Required Properties: - compatible: should be "renesas,pwm-rcar" and one of the following. + - "renesas,pwm-r8a7743": for RZ/G1M + - "renesas,pwm-r8a7745": for RZ/G1E - "renesas,pwm-r8a7778": for R-Car M1A - "renesas,pwm-r8a7779": for R-Car H1 - "renesas,pwm-r8a7790": for R-Car H2 @@ -17,13 +19,15 @@ Required Properties: - pinctrl-0: phandle, referring to a default pin configuration node. - pinctrl-names: Set to "default". -Example: R8A7790 (R-Car H2) PWM Timer node +Example: R8A7743 (RZ/G1M) PWM Timer node pwm0: pwm@e6e30000 { - compatible = "renesas,pwm-r8a7790", "renesas,pwm-rcar"; + compatible = "renesas,pwm-r8a7743", "renesas,pwm-rcar"; reg = <0 0xe6e30000 0 0x8>; + clocks = <&cpg CPG_MOD 523>; + power-domains = <&sysc R8A7743_PD_ALWAYS_ON>; + resets = <&cpg 523>; #pwm-cells = <2>; - clocks = <&mstp5_clks R8A7790_CLK_PWM>; pinctrl-0 = <&pwm0_pins>; pinctrl-names = "default"; }; -- 2.7.4 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 2/6] dt-bindings: pwm: rcar: Document r8a774[35] PWM bindings 2017-12-14 10:56 ` [PATCH 2/6] dt-bindings: pwm: rcar: Document r8a774[35] PWM bindings Fabrizio Castro @ 2017-12-15 23:30 ` Rob Herring 2017-12-18 10:57 ` Geert Uytterhoeven 1 sibling, 0 replies; 9+ messages in thread From: Rob Herring @ 2017-12-15 23:30 UTC (permalink / raw) To: Fabrizio Castro Cc: Thierry Reding, Mark Rutland, Simon Horman, Geert Uytterhoeven, Chris Paterson, Biju Das, linux-pwm, devicetree, linux-renesas-soc On Thu, Dec 14, 2017 at 10:56:12AM +0000, Fabrizio Castro wrote: > This patch adds compatible strings specific to r8a774[35], no driver > change is needed as the fallback compatible string will activate the > right code. Also, this patch replaces the example with a DT snippet used > for adding PWM0 support to an r8a7743 based platform. > > Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com> > Reviewed-by: Biju Das <biju.das@bp.renesas.com> > --- > Dear All, > > the reason for replacing the example with one of a different SoC is that > the new example refers to recent code from a real use case. I hope that's ok. > > Thanks, > Fabrizio > > Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.txt | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-) Reviewed-by: Rob Herring <robh@kernel.org> ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/6] dt-bindings: pwm: rcar: Document r8a774[35] PWM bindings 2017-12-14 10:56 ` [PATCH 2/6] dt-bindings: pwm: rcar: Document r8a774[35] PWM bindings Fabrizio Castro 2017-12-15 23:30 ` Rob Herring @ 2017-12-18 10:57 ` Geert Uytterhoeven 1 sibling, 0 replies; 9+ messages in thread From: Geert Uytterhoeven @ 2017-12-18 10:57 UTC (permalink / raw) To: Fabrizio Castro Cc: Thierry Reding, Rob Herring, Mark Rutland, Simon Horman, Geert Uytterhoeven, Chris Paterson, Biju Das, Linux PWM List, devicetree, Linux-Renesas On Thu, Dec 14, 2017 at 11:56 AM, Fabrizio Castro <fabrizio.castro@bp.renesas.com> wrote: > This patch adds compatible strings specific to r8a774[35], no driver > change is needed as the fallback compatible string will activate the > right code. Also, this patch replaces the example with a DT snippet used > for adding PWM0 support to an r8a7743 based platform. > > Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com> > Reviewed-by: Biju Das <biju.das@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> 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] 9+ messages in thread
[parent not found: <1513248976-26700-1-git-send-email-fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>]
* [PATCH 3/6] ARM: dts: r8a7743: Add PWM SoC support [not found] ` <1513248976-26700-1-git-send-email-fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org> @ 2017-12-14 10:56 ` Fabrizio Castro 2017-12-14 10:56 ` [PATCH 4/6] dt-bindings: pwm: renesas-tpu: Document r8a774[35] support Fabrizio Castro 1 sibling, 0 replies; 9+ messages in thread From: Fabrizio Castro @ 2017-12-14 10:56 UTC (permalink / raw) To: Rob Herring, Mark Rutland, Russell King Cc: Fabrizio Castro, Simon Horman, Geert Uytterhoeven, Magnus Damm, Chris Paterson, Biju Das, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Add the definitions for pwm[0123456] to the SoC .dtsi. Signed-off-by: Fabrizio Castro <fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org> Reviewed-by: Biju Das <biju.das-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org> --- arch/arm/boot/dts/r8a7743.dtsi | 77 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/arch/arm/boot/dts/r8a7743.dtsi b/arch/arm/boot/dts/r8a7743.dtsi index e056bc5..6766c76 100644 --- a/arch/arm/boot/dts/r8a7743.dtsi +++ b/arch/arm/boot/dts/r8a7743.dtsi @@ -1080,6 +1080,83 @@ status = "disabled"; }; + pwm0: pwm@e6e30000 { + compatible = "renesas,pwm-r8a7743", + "renesas,pwm-rcar"; + reg = <0 0xe6e30000 0 0x8>; + clocks = <&cpg CPG_MOD 523>; + power-domains = <&sysc R8A7743_PD_ALWAYS_ON>; + resets = <&cpg 523>; + #pwm-cells = <2>; + status = "disabled"; + }; + + pwm1: pwm@e6e31000 { + compatible = "renesas,pwm-r8a7743", + "renesas,pwm-rcar"; + reg = <0 0xe6e31000 0 0x8>; + clocks = <&cpg CPG_MOD 523>; + power-domains = <&sysc R8A7743_PD_ALWAYS_ON>; + resets = <&cpg 523>; + #pwm-cells = <2>; + status = "disabled"; + }; + + pwm2: pwm@e6e32000 { + compatible = "renesas,pwm-r8a7743", + "renesas,pwm-rcar"; + reg = <0 0xe6e32000 0 0x8>; + clocks = <&cpg CPG_MOD 523>; + power-domains = <&sysc R8A7743_PD_ALWAYS_ON>; + resets = <&cpg 523>; + #pwm-cells = <2>; + status = "disabled"; + }; + + pwm3: pwm@e6e33000 { + compatible = "renesas,pwm-r8a7743", + "renesas,pwm-rcar"; + reg = <0 0xe6e33000 0 0x8>; + clocks = <&cpg CPG_MOD 523>; + power-domains = <&sysc R8A7743_PD_ALWAYS_ON>; + resets = <&cpg 523>; + #pwm-cells = <2>; + status = "disabled"; + }; + + pwm4: pwm@e6e34000 { + compatible = "renesas,pwm-r8a7743", + "renesas,pwm-rcar"; + reg = <0 0xe6e34000 0 0x8>; + clocks = <&cpg CPG_MOD 523>; + power-domains = <&sysc R8A7743_PD_ALWAYS_ON>; + resets = <&cpg 523>; + #pwm-cells = <2>; + status = "disabled"; + }; + + pwm5: pwm@e6e35000 { + compatible = "renesas,pwm-r8a7743", + "renesas,pwm-rcar"; + reg = <0 0xe6e35000 0 0x8>; + clocks = <&cpg CPG_MOD 523>; + power-domains = <&sysc R8A7743_PD_ALWAYS_ON>; + resets = <&cpg 523>; + #pwm-cells = <2>; + status = "disabled"; + }; + + pwm6: pwm@e6e36000 { + compatible = "renesas,pwm-r8a7743", + "renesas,pwm-rcar"; + reg = <0 0xe6e36000 0 0x8>; + clocks = <&cpg CPG_MOD 523>; + power-domains = <&sysc R8A7743_PD_ALWAYS_ON>; + resets = <&cpg 523>; + #pwm-cells = <2>; + status = "disabled"; + }; + sdhi0: sd@ee100000 { compatible = "renesas,sdhi-r8a7743", "renesas,rcar-gen2-sdhi"; -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" 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 related [flat|nested] 9+ messages in thread
* [PATCH 4/6] dt-bindings: pwm: renesas-tpu: Document r8a774[35] support [not found] ` <1513248976-26700-1-git-send-email-fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org> 2017-12-14 10:56 ` [PATCH 3/6] ARM: dts: r8a7743: Add PWM SoC support Fabrizio Castro @ 2017-12-14 10:56 ` Fabrizio Castro 2017-12-15 20:13 ` Rob Herring 2017-12-18 10:58 ` Geert Uytterhoeven 1 sibling, 2 replies; 9+ messages in thread From: Fabrizio Castro @ 2017-12-14 10:56 UTC (permalink / raw) To: Thierry Reding, Rob Herring, Mark Rutland Cc: Fabrizio Castro, Simon Horman, Geert Uytterhoeven, Chris Paterson, Biju Das, linux-pwm-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA Document r8a774[35] specific compatible strings. No driver change is needed as the fallback compatible string "renesas,tpu" activates the right code in the driver. Signed-off-by: Fabrizio Castro <fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org> Reviewed-by: Biju Das <biju.das-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org> --- Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.txt b/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.txt index 1aadc80..16e5748 100644 --- a/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.txt +++ b/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.txt @@ -5,8 +5,10 @@ Required Properties: - compatible: should be one of the following. - "renesas,tpu-r8a73a4": for R8A77A4 (R-Mobile APE6) compatible PWM controller. - "renesas,tpu-r8a7740": for R8A7740 (R-Mobile A1) compatible PWM controller. + - "renesas,tpu-r8a7743": for R8A7743 (RZ/G1M) compatible PWM controller. + - "renesas,tpu-r8a7745": for R8A7745 (RZ/G1E) compatible PWM controller. - "renesas,tpu-r8a7790": for R8A7790 (R-Car H2) compatible PWM controller. - - "renesas,tpu": for generic R-Car TPU PWM controller. + - "renesas,tpu": for generic R-Car and RZ/G1 TPU PWM controller. - reg: Base address and length of each memory resource used by the PWM controller hardware module. -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" 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 related [flat|nested] 9+ messages in thread
* Re: [PATCH 4/6] dt-bindings: pwm: renesas-tpu: Document r8a774[35] support 2017-12-14 10:56 ` [PATCH 4/6] dt-bindings: pwm: renesas-tpu: Document r8a774[35] support Fabrizio Castro @ 2017-12-15 20:13 ` Rob Herring 2017-12-18 10:58 ` Geert Uytterhoeven 1 sibling, 0 replies; 9+ messages in thread From: Rob Herring @ 2017-12-15 20:13 UTC (permalink / raw) To: Fabrizio Castro Cc: Thierry Reding, Mark Rutland, Simon Horman, Geert Uytterhoeven, Chris Paterson, Biju Das, linux-pwm, devicetree, linux-renesas-soc On Thu, Dec 14, 2017 at 10:56:14AM +0000, Fabrizio Castro wrote: > Document r8a774[35] specific compatible strings. No driver change is > needed as the fallback compatible string "renesas,tpu" activates the > right code in the driver. > > Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com> > Reviewed-by: Biju Das <biju.das@bp.renesas.com> > --- > Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.txt | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Reviewed-by: Rob Herring <robh@kernel.org> ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 4/6] dt-bindings: pwm: renesas-tpu: Document r8a774[35] support 2017-12-14 10:56 ` [PATCH 4/6] dt-bindings: pwm: renesas-tpu: Document r8a774[35] support Fabrizio Castro 2017-12-15 20:13 ` Rob Herring @ 2017-12-18 10:58 ` Geert Uytterhoeven 1 sibling, 0 replies; 9+ messages in thread From: Geert Uytterhoeven @ 2017-12-18 10:58 UTC (permalink / raw) To: Fabrizio Castro Cc: Thierry Reding, Rob Herring, Mark Rutland, Simon Horman, Geert Uytterhoeven, Chris Paterson, Biju Das, Linux PWM List, devicetree, Linux-Renesas On Thu, Dec 14, 2017 at 11:56 AM, Fabrizio Castro <fabrizio.castro@bp.renesas.com> wrote: > Document r8a774[35] specific compatible strings. No driver change is > needed as the fallback compatible string "renesas,tpu" activates the > right code in the driver. > > Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com> > Reviewed-by: Biju Das <biju.das@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> 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] 9+ messages in thread
* [PATCH 6/6] ARM: dts: r8a7743: Add TPU support 2017-12-14 10:56 [PATCH 0/6] Add PWM and TPU support to r8a7743 Fabrizio Castro 2017-12-14 10:56 ` [PATCH 2/6] dt-bindings: pwm: rcar: Document r8a774[35] PWM bindings Fabrizio Castro [not found] ` <1513248976-26700-1-git-send-email-fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org> @ 2017-12-14 10:56 ` Fabrizio Castro 2 siblings, 0 replies; 9+ messages in thread From: Fabrizio Castro @ 2017-12-14 10:56 UTC (permalink / raw) To: Rob Herring, Mark Rutland, Russell King Cc: Fabrizio Castro, Simon Horman, Geert Uytterhoeven, Magnus Damm, Chris Paterson, Biju Das, devicetree, linux-renesas-soc, linux-arm-kernel Add TPU support to SoC DT. Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com> Reviewed-by: Biju Das <biju.das@bp.renesas.com> --- arch/arm/boot/dts/r8a7743.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/r8a7743.dtsi b/arch/arm/boot/dts/r8a7743.dtsi index 6766c76..861e76d 100644 --- a/arch/arm/boot/dts/r8a7743.dtsi +++ b/arch/arm/boot/dts/r8a7743.dtsi @@ -1157,6 +1157,16 @@ status = "disabled"; }; + tpu: pwm@e60f0000 { + compatible = "renesas,tpu-r8a7743", "renesas,tpu"; + reg = <0 0xe60f0000 0 0x148>; + clocks = <&cpg CPG_MOD 304>; + power-domains = <&sysc R8A7743_PD_ALWAYS_ON>; + resets = <&cpg 304>; + #pwm-cells = <3>; + status = "disabled"; + }; + sdhi0: sd@ee100000 { compatible = "renesas,sdhi-r8a7743", "renesas,rcar-gen2-sdhi"; -- 2.7.4 ^ permalink raw reply related [flat|nested] 9+ messages in thread
end of thread, other threads:[~2017-12-18 10:58 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-14 10:56 [PATCH 0/6] Add PWM and TPU support to r8a7743 Fabrizio Castro
2017-12-14 10:56 ` [PATCH 2/6] dt-bindings: pwm: rcar: Document r8a774[35] PWM bindings Fabrizio Castro
2017-12-15 23:30 ` Rob Herring
2017-12-18 10:57 ` Geert Uytterhoeven
[not found] ` <1513248976-26700-1-git-send-email-fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
2017-12-14 10:56 ` [PATCH 3/6] ARM: dts: r8a7743: Add PWM SoC support Fabrizio Castro
2017-12-14 10:56 ` [PATCH 4/6] dt-bindings: pwm: renesas-tpu: Document r8a774[35] support Fabrizio Castro
2017-12-15 20:13 ` Rob Herring
2017-12-18 10:58 ` Geert Uytterhoeven
2017-12-14 10:56 ` [PATCH 6/6] ARM: dts: r8a7743: Add TPU support Fabrizio Castro
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).