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

Elle Rhumsaa elle at weathered-steel.dev
Wed Aug 20 14:17:03 PDT 2025


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 at kernel.org>
> Tested-by: Drew Fustini <fustini at kernel.org>
> Signed-off-by: Michal Wilczynski <m.wilczynski at 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 at ffec010000 {
>  			status = "disabled";
>  		};
>  
> +		pwm: pwm at ffec01c000 {
> +			compatible = "thead,th1520-pwm";
> +			reg = <0xff 0xec01c000 0x0 0x4000>;
> +			clocks = <&clk CLK_PWM>;
> +			#pwm-cells = <3>;
> +		};
> +
>  		clk: clock-controller at ffef010000 {
>  			compatible = "thead,th1520-clk-ap";
>  			reg = <0xff 0xef010000 0x0 0x1000>;
> 
> -- 
> 2.34.1

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



More information about the linux-riscv mailing list