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
7title: Amlogic PWM
8
9maintainers:
10  - Heiner Kallweit <hkallweit1@gmail.com>
11
12allOf:
13  - $ref: pwm.yaml#
14
15properties:
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
56required:
57  - compatible
58  - reg
59
60additionalProperties: false
61
62examples:
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    };
71