Skip to content

Commit 4ccf7e3

Browse files
ukleinekUwe Kleine-König
authored andcommitted
dt-bindings: pwm: marvell,berlin-pwm: Convert from txt to yaml
Formalize the binding for marvell,berlin-pwm devices and make them automatically checkable. No change to the binding intended. Signed-off-by: Uwe Kleine-König <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]>
1 parent a0b6742 commit 4ccf7e3

File tree

2 files changed

+44
-17
lines changed

2 files changed

+44
-17
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/pwm/marvell,berlin-pwm.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Berlin PWM controller
8+
9+
maintainers:
10+
- Jisheng Zhang <[email protected]>
11+
- Sebastian Hesselbarth <[email protected]>
12+
13+
properties:
14+
compatible:
15+
const: marvell,berlin-pwm
16+
17+
reg:
18+
maxItems: 1
19+
20+
"#pwm-cells":
21+
const: 3
22+
23+
clocks:
24+
maxItems: 1
25+
26+
required:
27+
- compatible
28+
- reg
29+
- clocks
30+
31+
allOf:
32+
- $ref: pwm.yaml#
33+
34+
unevaluatedProperties: false
35+
36+
examples:
37+
- |
38+
pwm@f7f20000 {
39+
compatible = "marvell,berlin-pwm";
40+
reg = <0xf7f20000 0x40>;
41+
clocks = <&chip_clk 12>;
42+
#pwm-cells = <3>;
43+
};
44+

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

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

0 commit comments

Comments
 (0)