Skip to content

Commit 4cd2f41

Browse files
nxpfrankliUwe Kleine-König
authored andcommitted
dt-bindings: pwm: Convert lpc32xx-pwm.txt to yaml format
Convert pc32xx-pwm.txt to yaml format. Additional changes: - add ref to pwm.yaml - add clocks - restrict #pwm-cells to 3 Signed-off-by: Frank Li <[email protected]> Reviewed-by: Vladimir Zapolskiy <[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 10e9b32 commit 4cd2f41

File tree

2 files changed

+44
-17
lines changed

2 files changed

+44
-17
lines changed

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

Lines changed: 0 additions & 17 deletions
This file was deleted.
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/nxp,lpc3220-pwm.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: NXP LPC32XX PWM controller
8+
9+
maintainers:
10+
- Frank Li <[email protected]>
11+
12+
properties:
13+
compatible:
14+
enum:
15+
- nxp,lpc3220-pwm
16+
- nxp,lpc3220-motor-pwm
17+
18+
reg:
19+
maxItems: 1
20+
21+
clocks:
22+
maxItems: 1
23+
24+
'#pwm-cells':
25+
const: 3
26+
27+
required:
28+
- compatible
29+
- reg
30+
- '#pwm-cells'
31+
32+
allOf:
33+
- $ref: pwm.yaml#
34+
35+
unevaluatedProperties: false
36+
37+
examples:
38+
- |
39+
pwm@4005c000 {
40+
compatible = "nxp,lpc3220-pwm";
41+
reg = <0x4005c000 0x4>;
42+
#pwm-cells = <3>;
43+
};
44+

0 commit comments

Comments
 (0)