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>