1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/clock/amlogic,gxbb-aoclkc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Amlogic Always-On Clock Controller
8
9maintainers:
10  - Neil Armstrong <neil.armstrong@linaro.org>
11
12properties:
13  compatible:
14    oneOf:
15      - items:
16          - enum:
17              - amlogic,meson-gxbb-aoclkc
18              - amlogic,meson-gxl-aoclkc
19              - amlogic,meson-gxm-aoclkc
20              - amlogic,meson-axg-aoclkc
21          - const: amlogic,meson-gx-aoclkc
22      - enum:
23          - amlogic,meson-axg-aoclkc
24          - amlogic,meson-g12a-aoclkc
25
26  clocks:
27    minItems: 2
28    maxItems: 5
29
30  clock-names:
31    minItems: 2
32    items:
33      - const: xtal
34      - const: mpeg-clk
35      - const: ext-32k-0
36      - const: ext-32k-1
37      - const: ext-32k-2
38
39  '#clock-cells':
40    const: 1
41
42  '#reset-cells':
43    const: 1
44
45required:
46  - compatible
47  - clocks
48  - clock-names
49  - '#clock-cells'
50  - '#reset-cells'
51
52allOf:
53  - if:
54      properties:
55        compatible:
56          enum:
57            - amlogic,meson-g12a-aoclkc
58
59    then:
60      properties:
61        clocks:
62          minItems: 2
63          maxItems: 3
64
65        clock-names:
66          minItems: 2
67          maxItems: 3
68
69  - if:
70      properties:
71        compatible:
72          enum:
73            - amlogic,meson-gxl-aoclkc
74            - amlogic,meson-gxm-aoclkc
75            - amlogic,meson-axg-aoclkc
76
77    then:
78      properties:
79        clocks:
80          maxItems: 2
81
82        clock-names:
83          maxItems: 2
84
85additionalProperties: false
86