* [PATCH 0/2] arm64: dts: renesas: r8a779g0: Add PWM and TPU device
@ 2022-10-07 15:34 Geert Uytterhoeven
2022-10-07 15:34 ` [PATCH 1/2] arm64: dts: renesas: r8a779g0: Add PWM device nodes Geert Uytterhoeven
2022-10-07 15:34 ` [PATCH 2/2] arm64: dts: renesas: r8a779g0: Add TPU device node Geert Uytterhoeven
0 siblings, 2 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2022-10-07 15:34 UTC (permalink / raw)
To: Magnus Damm; +Cc: linux-renesas-soc, linux-arm-kernel, Geert Uytterhoeven
Hi all,
This patch series adds devices nodes for the PWM timers and the 16-Bit
Timer Pulse Unit (TPU) on the Renesas R-Car V4H (R8A779G0) SoC.
PWM[089] and TPU0 can be accessed on test points resp. the IO Pin Header
on the White Hawk development board using DT overlays available from
[1]. PWM operation (correct period and duty cycle) has been verified
with a scope.
I plan to queues this series in renesas-devel for v6.2.
Thanks for your comments!
[1] https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git/log/?h=topic/renesas-overlays
CongDang (2):
arm64: dts: renesas: r8a779g0: Add PWM device nodes
arm64: dts: renesas: r8a779g0: Add TPU device node
arch/arm64/boot/dts/renesas/r8a779g0.dtsi | 111 ++++++++++++++++++++++
1 file changed, 111 insertions(+)
--
2.25.1
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
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] arm64: dts: renesas: r8a779g0: Add PWM device nodes
2022-10-07 15:34 [PATCH 0/2] arm64: dts: renesas: r8a779g0: Add PWM and TPU device Geert Uytterhoeven
@ 2022-10-07 15:34 ` Geert Uytterhoeven
2022-10-07 15:34 ` [PATCH 2/2] arm64: dts: renesas: r8a779g0: Add TPU device node Geert Uytterhoeven
1 sibling, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2022-10-07 15:34 UTC (permalink / raw)
To: Magnus Damm
Cc: linux-renesas-soc, linux-arm-kernel, CongDang, Geert Uytterhoeven
From: CongDang <cong.dang.xn@renesas.com>
Add device nodes for the PWM timers on the Renesas R-Car V4H (R8A779G0)
SoC.
Signed-off-by: CongDang <cong.dang.xn@renesas.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
arch/arm64/boot/dts/renesas/r8a779g0.dtsi | 100 ++++++++++++++++++++++
1 file changed, 100 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a779g0.dtsi b/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
index f90ff272d155bb19..3d972c742fc7e272 100644
--- a/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
@@ -562,6 +562,106 @@ avb2: ethernet@e6820000 {
status = "disabled";
};
+ pwm0: pwm@e6e30000 {
+ compatible = "renesas,pwm-r8a779g0", "renesas,pwm-rcar";
+ reg = <0 0xe6e30000 0 0x10>;
+ #pwm-cells = <2>;
+ clocks = <&cpg CPG_MOD 628>;
+ power-domains = <&sysc R8A779G0_PD_ALWAYS_ON>;
+ resets = <&cpg 628>;
+ status = "disabled";
+ };
+
+ pwm1: pwm@e6e31000 {
+ compatible = "renesas,pwm-r8a779g0", "renesas,pwm-rcar";
+ reg = <0 0xe6e31000 0 0x10>;
+ #pwm-cells = <2>;
+ clocks = <&cpg CPG_MOD 628>;
+ power-domains = <&sysc R8A779G0_PD_ALWAYS_ON>;
+ resets = <&cpg 628>;
+ status = "disabled";
+ };
+
+ pwm2: pwm@e6e32000 {
+ compatible = "renesas,pwm-r8a779g0", "renesas,pwm-rcar";
+ reg = <0 0xe6e32000 0 0x10>;
+ #pwm-cells = <2>;
+ clocks = <&cpg CPG_MOD 628>;
+ power-domains = <&sysc R8A779G0_PD_ALWAYS_ON>;
+ resets = <&cpg 628>;
+ status = "disabled";
+ };
+
+ pwm3: pwm@e6e33000 {
+ compatible = "renesas,pwm-r8a779g0", "renesas,pwm-rcar";
+ reg = <0 0xe6e33000 0 0x10>;
+ #pwm-cells = <2>;
+ clocks = <&cpg CPG_MOD 628>;
+ power-domains = <&sysc R8A779G0_PD_ALWAYS_ON>;
+ resets = <&cpg 628>;
+ status = "disabled";
+ };
+
+ pwm4: pwm@e6e34000 {
+ compatible = "renesas,pwm-r8a779g0", "renesas,pwm-rcar";
+ reg = <0 0xe6e34000 0 0x10>;
+ #pwm-cells = <2>;
+ clocks = <&cpg CPG_MOD 628>;
+ power-domains = <&sysc R8A779G0_PD_ALWAYS_ON>;
+ resets = <&cpg 628>;
+ status = "disabled";
+ };
+
+ pwm5: pwm@e6e35000 {
+ compatible = "renesas,pwm-r8a779g0", "renesas,pwm-rcar";
+ reg = <0 0xe6e35000 0 0x10>;
+ #pwm-cells = <2>;
+ clocks = <&cpg CPG_MOD 628>;
+ power-domains = <&sysc R8A779G0_PD_ALWAYS_ON>;
+ resets = <&cpg 628>;
+ status = "disabled";
+ };
+
+ pwm6: pwm@e6e36000 {
+ compatible = "renesas,pwm-r8a779g0", "renesas,pwm-rcar";
+ reg = <0 0xe6e36000 0 0x10>;
+ #pwm-cells = <2>;
+ clocks = <&cpg CPG_MOD 628>;
+ power-domains = <&sysc R8A779G0_PD_ALWAYS_ON>;
+ resets = <&cpg 628>;
+ status = "disabled";
+ };
+
+ pwm7: pwm@e6e37000 {
+ compatible = "renesas,pwm-r8a779g0", "renesas,pwm-rcar";
+ reg = <0 0xe6e37000 0 0x10>;
+ #pwm-cells = <2>;
+ clocks = <&cpg CPG_MOD 628>;
+ power-domains = <&sysc R8A779G0_PD_ALWAYS_ON>;
+ resets = <&cpg 628>;
+ status = "disabled";
+ };
+
+ pwm8: pwm@e6e38000 {
+ compatible = "renesas,pwm-r8a779g0", "renesas,pwm-rcar";
+ reg = <0 0xe6e38000 0 0x10>;
+ #pwm-cells = <2>;
+ clocks = <&cpg CPG_MOD 628>;
+ power-domains = <&sysc R8A779G0_PD_ALWAYS_ON>;
+ resets = <&cpg 628>;
+ status = "disabled";
+ };
+
+ pwm9: pwm@e6e39000 {
+ compatible = "renesas,pwm-r8a779g0", "renesas,pwm-rcar";
+ reg = <0 0xe6e39000 0 0x10>;
+ #pwm-cells = <2>;
+ clocks = <&cpg CPG_MOD 628>;
+ power-domains = <&sysc R8A779G0_PD_ALWAYS_ON>;
+ resets = <&cpg 628>;
+ status = "disabled";
+ };
+
scif0: serial@e6e60000 {
compatible = "renesas,scif-r8a779g0",
"renesas,rcar-gen4-scif", "renesas,scif";
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] arm64: dts: renesas: r8a779g0: Add TPU device node
2022-10-07 15:34 [PATCH 0/2] arm64: dts: renesas: r8a779g0: Add PWM and TPU device Geert Uytterhoeven
2022-10-07 15:34 ` [PATCH 1/2] arm64: dts: renesas: r8a779g0: Add PWM device nodes Geert Uytterhoeven
@ 2022-10-07 15:34 ` Geert Uytterhoeven
2022-10-10 8:34 ` Wolfram Sang
1 sibling, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2022-10-07 15:34 UTC (permalink / raw)
To: Magnus Damm
Cc: linux-renesas-soc, linux-arm-kernel, CongDang, Geert Uytterhoeven
From: CongDang <cong.dang.xn@renesas.com>
Add a device node for the 16-Bit Timer Pulse Unit (TPU) on the Renesas
R-Car V4H (R8A779G0) SoC.
Signed-off-by: CongDang <cong.dang.xn@renesas.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
arch/arm64/boot/dts/renesas/r8a779g0.dtsi | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a779g0.dtsi b/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
index 3d972c742fc7e272..53e1252f00d57490 100644
--- a/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
@@ -730,6 +730,17 @@ scif4: serial@e6c40000 {
status = "disabled";
};
+ tpu: pwm@e6e80000 {
+ compatible = "renesas,tpu-r8a779g0", "renesas,tpu";
+ reg = <0 0xe6e80000 0 0x148>;
+ interrupts = <GIC_SPI 308 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 718>;
+ power-domains = <&sysc R8A779G0_PD_ALWAYS_ON>;
+ resets = <&cpg 718>;
+ #pwm-cells = <3>;
+ status = "disabled";
+ };
+
msiof0: spi@e6e90000 {
compatible = "renesas,msiof-r8a779g0",
"renesas,rcar-gen4-msiof";
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] arm64: dts: renesas: r8a779g0: Add TPU device node
2022-10-07 15:34 ` [PATCH 2/2] arm64: dts: renesas: r8a779g0: Add TPU device node Geert Uytterhoeven
@ 2022-10-10 8:34 ` Wolfram Sang
0 siblings, 0 replies; 4+ messages in thread
From: Wolfram Sang @ 2022-10-10 8:34 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Magnus Damm, linux-renesas-soc, linux-arm-kernel, CongDang
[-- Attachment #1.1: Type: text/plain, Size: 408 bytes --]
On Fri, Oct 07, 2022 at 05:34:02PM +0200, Geert Uytterhoeven wrote:
> From: CongDang <cong.dang.xn@renesas.com>
>
> Add a device node for the 16-Bit Timer Pulse Unit (TPU) on the Renesas
> R-Car V4H (R8A779G0) SoC.
>
> Signed-off-by: CongDang <cong.dang.xn@renesas.com>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-10-10 8:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-07 15:34 [PATCH 0/2] arm64: dts: renesas: r8a779g0: Add PWM and TPU device Geert Uytterhoeven
2022-10-07 15:34 ` [PATCH 1/2] arm64: dts: renesas: r8a779g0: Add PWM device nodes Geert Uytterhoeven
2022-10-07 15:34 ` [PATCH 2/2] arm64: dts: renesas: r8a779g0: Add TPU device node Geert Uytterhoeven
2022-10-10 8:34 ` Wolfram Sang
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).