Skip to content

Commit b6b5683

Browse files
alcharkUwe Kleine-König
authored andcommitted
dt-bindings: pwm: vt8500-pwm: Convert to YAML
Rewrite the textual description for the WonderMedia PWM controller as YAML schema, and switch the filename to follow the compatible string. Signed-off-by: Alexey Charkov <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]>
1 parent 769aa27 commit b6b5683

File tree

3 files changed

+44
-18
lines changed

3 files changed

+44
-18
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/pwm/via,vt8500-pwm.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: VIA/Wondermedia VT8500/WM8xxx series SoC PWM controller
8+
9+
maintainers:
10+
- Alexey Charkov <[email protected]>
11+
12+
allOf:
13+
- $ref: pwm.yaml#
14+
15+
properties:
16+
compatible:
17+
items:
18+
- const: via,vt8500-pwm
19+
20+
reg:
21+
maxItems: 1
22+
23+
'#pwm-cells':
24+
const: 3
25+
26+
clocks:
27+
maxItems: 1
28+
29+
required:
30+
- compatible
31+
- reg
32+
- clocks
33+
34+
additionalProperties: false
35+
36+
examples:
37+
- |
38+
pwm1: pwm@d8220000 {
39+
compatible = "via,vt8500-pwm";
40+
reg = <0xd8220000 0x1000>;
41+
#pwm-cells = <3>;
42+
clocks = <&clkpwm>;
43+
};

Documentation/devicetree/bindings/pwm/vt8500-pwm.txt

Lines changed: 0 additions & 18 deletions
This file was deleted.

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3428,6 +3428,7 @@ M: Krzysztof Kozlowski <[email protected]>
34283428
L: [email protected] (moderated for non-subscribers)
34293429
S: Odd Fixes
34303430
F: Documentation/devicetree/bindings/i2c/i2c-wmt.txt
3431+
F: Documentation/devicetree/bindings/pwm/via,vt8500-pwm.yaml
34313432
F: arch/arm/boot/dts/vt8500/
34323433
F: arch/arm/mach-vt8500/
34333434
F: drivers/clocksource/timer-vt8500.c

0 commit comments

Comments
 (0)