Skip to content

Commit 92554cd

Browse files
lategoodbyethierryreding
authored andcommitted
dt-bindings: pwm: convert pwm-bcm2835 bindings to YAML
Convert the DT binding document for pwm-bcm2835 from .txt to YAML. Signed-off-by: Stefan Wahren <[email protected]> Reviewed-by: Rob Herring <[email protected]> Reviewed-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 254d3a7 commit 92554cd

File tree

2 files changed

+43
-30
lines changed

2 files changed

+43
-30
lines changed

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

Lines changed: 0 additions & 30 deletions
This file was deleted.
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/pwm-bcm2835.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: BCM2835 PWM controller (Raspberry Pi controller)
8+
9+
maintainers:
10+
- Stefan Wahren <[email protected]>
11+
12+
allOf:
13+
- $ref: pwm.yaml#
14+
15+
properties:
16+
compatible:
17+
const: brcm,bcm2835-pwm
18+
19+
reg:
20+
maxItems: 1
21+
22+
clocks:
23+
maxItems: 1
24+
25+
"#pwm-cells":
26+
const: 3
27+
28+
required:
29+
- compatible
30+
- reg
31+
- clocks
32+
- "#pwm-cells"
33+
34+
additionalProperties: false
35+
36+
examples:
37+
- |
38+
pwm@2020c000 {
39+
compatible = "brcm,bcm2835-pwm";
40+
reg = <0x2020c000 0x28>;
41+
clocks = <&clk_pwm>;
42+
#pwm-cells = <3>;
43+
};

0 commit comments

Comments
 (0)