[PATCH v14 6/7] riscv: dts: thead: Add PWM controller node

Michal Wilczynski posted 7 patches 1 month, 2 weeks ago
There is a newer version of this series
[PATCH v14 6/7] riscv: dts: thead: Add PWM controller node
Posted by Michal Wilczynski 1 month, 2 weeks ago
Add the Device Tree node for the T-HEAD TH1520 SoC's PWM controller.

Reviewed-by: Drew Fustini <fustini@kernel.org>
Tested-by: Drew Fustini <fustini@kernel.org>
Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
---
 arch/riscv/boot/dts/thead/th1520.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi
index 42724bf7e90e08fac326c464d0f080e3bd2cd59b..513dc6977b2633503515ad260913156fbe57d92f 100644
--- a/arch/riscv/boot/dts/thead/th1520.dtsi
+++ b/arch/riscv/boot/dts/thead/th1520.dtsi
@@ -493,6 +493,13 @@ uart2: serial@ffec010000 {
 			status = "disabled";
 		};
 
+		pwm: pwm@ffec01c000 {
+			compatible = "thead,th1520-pwm";
+			reg = <0xff 0xec01c000 0x0 0x4000>;
+			clocks = <&clk CLK_PWM>;
+			#pwm-cells = <3>;
+		};
+
 		clk: clock-controller@ffef010000 {
 			compatible = "thead,th1520-clk-ap";
 			reg = <0xff 0xef010000 0x0 0x1000>;

-- 
2.34.1
Re: [PATCH v14 6/7] riscv: dts: thead: Add PWM controller node
Posted by Elle Rhumsaa 1 month, 2 weeks ago
On Wed, Aug 20, 2025 at 10:35:41AM +0200, Michal Wilczynski wrote:
> Add the Device Tree node for the T-HEAD TH1520 SoC's PWM controller.
> 
> Reviewed-by: Drew Fustini <fustini@kernel.org>
> Tested-by: Drew Fustini <fustini@kernel.org>
> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
> ---
>  arch/riscv/boot/dts/thead/th1520.dtsi | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi
> index 42724bf7e90e08fac326c464d0f080e3bd2cd59b..513dc6977b2633503515ad260913156fbe57d92f 100644
> --- a/arch/riscv/boot/dts/thead/th1520.dtsi
> +++ b/arch/riscv/boot/dts/thead/th1520.dtsi
> @@ -493,6 +493,13 @@ uart2: serial@ffec010000 {
>  			status = "disabled";
>  		};
>  
> +		pwm: pwm@ffec01c000 {
> +			compatible = "thead,th1520-pwm";
> +			reg = <0xff 0xec01c000 0x0 0x4000>;
> +			clocks = <&clk CLK_PWM>;
> +			#pwm-cells = <3>;
> +		};
> +
>  		clk: clock-controller@ffef010000 {
>  			compatible = "thead,th1520-clk-ap";
>  			reg = <0xff 0xef010000 0x0 0x1000>;
> 
> -- 
> 2.34.1

Reviewed-by: Elle Rhumsaa <elle@weathered-steel.dev>