xref: /linux/Documentation/devicetree/bindings/clock/amlogic,a9-aoclkc.yaml (revision 502d45774af09f1c681c754c4b7cdfb5d7f72fd9)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2# Copyright (C) 2026 Amlogic, Inc. All rights reserved
3%YAML 1.2
4---
5$id: http://devicetree.org/schemas/clock/amlogic,a9-aoclkc.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: Amlogic A9 Series Always-On Clock Controller
9
10maintainers:
11  - Neil Armstrong <neil.armstrong@linaro.org>
12  - Jerome Brunet <jbrunet@baylibre.com>
13  - Jian Hu <jian.hu@amlogic.com>
14  - Xianwei Zhao <xianwei.zhao@amlogic.com>
15
16properties:
17  compatible:
18    const: amlogic,a9-aoclkc
19
20  reg:
21    maxItems: 1
22
23  '#clock-cells':
24    const: 1
25
26  clocks:
27    minItems: 5
28    items:
29      - description: input oscillator
30      - description: input fclk div 3
31      - description: input fclk div 4
32      - description: input fclk div 5
33      - description: input sys clk
34      - description: external fixed 32k (optional)
35
36  clock-names:
37    minItems: 5
38    items:
39      - const: xtal
40      - const: fdiv3
41      - const: fdiv4
42      - const: fdiv5
43      - const: sys
44      - const: ext_32k
45
46required:
47  - compatible
48  - reg
49  - '#clock-cells'
50  - clocks
51  - clock-names
52
53additionalProperties: false
54
55examples:
56  - |
57    soc {
58        #address-cells = <2>;
59        #size-cells = <2>;
60
61        clock-controller@0 {
62            compatible = "amlogic,a9-aoclkc";
63            reg = <0x0 0x0 0x0 0x58>;
64            #clock-cells = <1>;
65            clocks = <&xtal>,
66                     <&scmi_clk 14>,
67                     <&scmi_clk 16>,
68                     <&scmi_clk 18>,
69                     <&scmi_clk 21>;
70            clock-names = "xtal",
71                          "fdiv3",
72                          "fdiv4",
73                          "fdiv5",
74                          "sys";
75        };
76    };
77