Skip to content

Commit 43a1c4f

Browse files
hkallweitthierryreding
authored andcommitted
dt-bindings: pwm: Convert Amlogic Meson PWM binding
Convert Amlogic Meson PWM binding to yaml. Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
1 parent b3ad523 commit 43a1c4f

2 files changed

Lines changed: 70 additions & 29 deletions

File tree

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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-amlogic.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Amlogic PWM
8+
9+
maintainers:
10+
- Heiner Kallweit <hkallweit1@gmail.com>
11+
12+
allOf:
13+
- $ref: pwm.yaml#
14+
15+
properties:
16+
compatible:
17+
oneOf:
18+
- enum:
19+
- amlogic,meson8b-pwm
20+
- amlogic,meson-gxbb-pwm
21+
- amlogic,meson-gxbb-ao-pwm
22+
- amlogic,meson-axg-ee-pwm
23+
- amlogic,meson-axg-ao-pwm
24+
- amlogic,meson-g12a-ee-pwm
25+
- amlogic,meson-g12a-ao-pwm-ab
26+
- amlogic,meson-g12a-ao-pwm-cd
27+
- amlogic,meson-s4-pwm
28+
- items:
29+
- const: amlogic,meson-gx-pwm
30+
- const: amlogic,meson-gxbb-pwm
31+
- items:
32+
- const: amlogic,meson-gx-ao-pwm
33+
- const: amlogic,meson-gxbb-ao-pwm
34+
- items:
35+
- const: amlogic,meson8-pwm
36+
- const: amlogic,meson8b-pwm
37+
38+
reg:
39+
maxItems: 1
40+
41+
clocks:
42+
minItems: 1
43+
maxItems: 2
44+
45+
clock-names:
46+
oneOf:
47+
- items:
48+
- enum: [clkin0, clkin1]
49+
- items:
50+
- const: clkin0
51+
- const: clkin1
52+
53+
"#pwm-cells":
54+
const: 3
55+
56+
required:
57+
- compatible
58+
- reg
59+
60+
additionalProperties: false
61+
62+
examples:
63+
- |
64+
pwm@8550 {
65+
compatible = "amlogic,meson-gxbb-pwm";
66+
reg = <0x08550 0x10>;
67+
clocks = <&xtal>, <&xtal>;
68+
clock-names = "clkin0", "clkin1";
69+
#pwm-cells = <3>;
70+
};

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

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

0 commit comments

Comments
 (0)