Skip to content

Commit a0b6742

Browse files
Stanislav JakubekUwe Kleine-König
authored andcommitted
dt-bindings: pwm: sprd,ums512-pwm: convert to YAML
Convert the Spreadtrum/Unisoc UMS512 PWM controller bindings to DT schema. Adjust filename to match compatible. Drop assigned-* properties as these should not be needed. Signed-off-by: Stanislav Jakubek <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Reviewed-by: Chunyan Zhang <[email protected]> Acked-by: Baolin Wang <[email protected]> Link: https://lore.kernel.org/r/ZyH-JASRcpMXYsmH@standask-GA-A55M-S2HP [Replaced Baolin Wang's email address in maintainers list] Signed-off-by: Uwe Kleine-König <[email protected]>
1 parent 10435e0 commit a0b6742

File tree

2 files changed

+66
-40
lines changed

2 files changed

+66
-40
lines changed

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

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/pwm/sprd,ums512-pwm.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Spreadtrum/Unisoc UMS512 PWM Controller
8+
9+
maintainers:
10+
- Orson Zhai <[email protected]>
11+
- Baolin Wang <[email protected]>
12+
- Chunyan Zhang <[email protected]>
13+
14+
properties:
15+
compatible:
16+
const: sprd,ums512-pwm
17+
18+
reg:
19+
maxItems: 1
20+
21+
clocks:
22+
maxItems: 8
23+
24+
clock-names:
25+
items:
26+
- const: pwm0
27+
- const: enable0
28+
- const: pwm1
29+
- const: enable1
30+
- const: pwm2
31+
- const: enable2
32+
- const: pwm3
33+
- const: enable3
34+
35+
'#pwm-cells':
36+
const: 2
37+
38+
required:
39+
- compatible
40+
- reg
41+
- clocks
42+
- clock-names
43+
44+
allOf:
45+
- $ref: pwm.yaml#
46+
47+
unevaluatedProperties: false
48+
49+
examples:
50+
- |
51+
#include <dt-bindings/clock/sprd,ums512-clk.h>
52+
53+
pwm@32260000 {
54+
compatible = "sprd,ums512-pwm";
55+
reg = <0x32260000 0x10000>;
56+
clocks = <&aon_clk CLK_PWM0>, <&aonapb_gate CLK_PWM0_EB>,
57+
<&aon_clk CLK_PWM1>, <&aonapb_gate CLK_PWM1_EB>,
58+
<&aon_clk CLK_PWM2>, <&aonapb_gate CLK_PWM2_EB>,
59+
<&aon_clk CLK_PWM3>, <&aonapb_gate CLK_PWM3_EB>;
60+
clock-names = "pwm0", "enable0",
61+
"pwm1", "enable1",
62+
"pwm2", "enable2",
63+
"pwm3", "enable3";
64+
#pwm-cells = <2>;
65+
};
66+
...

0 commit comments

Comments
 (0)