Skip to content

Commit a367b64

Browse files
Michal WilczynskiUwe Kleine-König
authored andcommitted
dt-bindings: pwm: thead: Add T-HEAD TH1520 PWM controller
Add the Device Tree binding documentation for the T-HEAD TH1520 SoC PWM controller. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Drew Fustini <fustini@kernel.org> Reviewed-by: Elle Rhumsaa <elle@weathered-steel.dev> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> Link: https://patch.msgid.link/20251016-rust-next-pwm-working-fan-for-sending-v16-5-a5df2405d2bd@samsung.com Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
1 parent e03724a commit a367b64

2 files changed

Lines changed: 49 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/pwm/thead,th1520-pwm.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: T-HEAD TH1520 PWM controller
8+
9+
maintainers:
10+
- Michal Wilczynski <m.wilczynski@samsung.com>
11+
12+
allOf:
13+
- $ref: pwm.yaml#
14+
15+
properties:
16+
compatible:
17+
const: thead,th1520-pwm
18+
19+
reg:
20+
maxItems: 1
21+
22+
clocks:
23+
items:
24+
- description: SoC PWM clock
25+
26+
"#pwm-cells":
27+
const: 3
28+
29+
required:
30+
- compatible
31+
- reg
32+
- clocks
33+
34+
unevaluatedProperties: false
35+
36+
examples:
37+
- |
38+
#include <dt-bindings/clock/thead,th1520-clk-ap.h>
39+
soc {
40+
#address-cells = <2>;
41+
#size-cells = <2>;
42+
pwm@ffec01c000 {
43+
compatible = "thead,th1520-pwm";
44+
reg = <0xff 0xec01c000 0x0 0x4000>;
45+
clocks = <&clk CLK_PWM>;
46+
#pwm-cells = <3>;
47+
};
48+
};

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22179,6 +22179,7 @@ F: Documentation/devicetree/bindings/firmware/thead,th1520-aon.yaml
2217922179
F: Documentation/devicetree/bindings/mailbox/thead,th1520-mbox.yaml
2218022180
F: Documentation/devicetree/bindings/net/thead,th1520-gmac.yaml
2218122181
F: Documentation/devicetree/bindings/pinctrl/thead,th1520-pinctrl.yaml
22182+
F: Documentation/devicetree/bindings/pwm/thead,th1520-pwm.yaml
2218222183
F: Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml
2218322184
F: arch/riscv/boot/dts/thead/
2218422185
F: drivers/clk/thead/clk-th1520-ap.c

0 commit comments

Comments
 (0)