summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/clock/amlogic,a9-peripherals-clkc.yaml
blob: f0aef005ecf36ba6f3761bbf356aabc96965d699 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
# Copyright (C) 2026 Amlogic, Inc. All rights reserved
%YAML 1.2
---
$id: http://devicetree.org/schemas/clock/amlogic,a9-peripherals-clkc.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Amlogic A9 Series Peripherals Clock Controller

maintainers:
  - Neil Armstrong <neil.armstrong@linaro.org>
  - Jerome Brunet <jbrunet@baylibre.com>
  - Jian Hu <jian.hu@amlogic.com>
  - Xianwei Zhao <xianwei.zhao@amlogic.com>

properties:
  compatible:
    const: amlogic,a9-peripherals-clkc

  reg:
    maxItems: 1

  '#clock-cells':
    const: 1

  clocks:
    minItems: 27
    items:
      - description: input oscillator
      - description: input fclk div 2
      - description: input fclk div 3
      - description: input fclk div 4
      - description: input fclk div 5
      - description: input fclk div 7
      - description: input fclk div 2p5
      - description: input sys clk
      - description: input gp1 pll
      - description: input gp2 pll
      - description: input sys pll div 16
      - description: input cpu clk div 16
      - description: input a78 clk div 16
      - description: input dsu clk div 16
      - description: input rtc clk
      - description: input gp0 pll
      - description: input hifi0 pll
      - description: input hifi1 pll
      - description: input mclk0 pll
      - description: input mclk1 pll
      - description: input video1 pll
      - description: input video2 pll
      - description: input hdmi out2 clk
      - description: input hdmi pixel clk
      - description: input pixel0 pll
      - description: input pixel1 pll
      - description: input ddr pll test clk
      - description: external input rmii oscillator (optional)

  clock-names:
    minItems: 27
    items:
      - const: xtal
      - const: fdiv2
      - const: fdiv3
      - const: fdiv4
      - const: fdiv5
      - const: fdiv7
      - const: fdiv2p5
      - const: sys
      - const: gp1
      - const: gp2
      - const: sysplldiv16
      - const: cpudiv16
      - const: a78div16
      - const: dsudiv16
      - const: rtc
      - const: gp0
      - const: hifi0
      - const: hifi1
      - const: mclk0
      - const: mclk1
      - const: vid1
      - const: vid2
      - const: hdmiout2
      - const: hdmipix
      - const: pix0
      - const: pix1
      - const: ddr_test
      - const: ext_rmii

required:
  - compatible
  - reg
  - '#clock-cells'
  - clocks
  - clock-names

additionalProperties: false

examples:
  - |
    soc {
        #address-cells = <2>;
        #size-cells = <2>;

        clock-controller@200 {
            compatible = "amlogic,a9-peripherals-clkc";
            reg = <0x0 0x200 0x0 0x2f8>;
            #clock-cells = <1>;
            clocks = <&xtal>,
                     <&scmi_clk 10>,
                     <&scmi_clk 12>,
                     <&scmi_clk 14>,
                     <&scmi_clk 16>,
                     <&scmi_clk 18>,
                     <&scmi_clk 20>,
                     <&scmi_clk 21>,
                     <&scmi_clk 33>,
                     <&scmi_clk 34>,
                     <&scmi_clk 35>,
                     <&scmi_clk 36>,
                     <&scmi_clk 37>,
                     <&scmi_clk 38>,
                     <&scmi_clk 40>,
                     <&gp0 3>,
                     <&hifi0 3>,
                     <&hifi1 3>,
                     <&mclk0 3>,
                     <&mclk1 3>,
                     <&vid1>,
                     <&vid2>,
                     <&hdmitx 10>,
                     <&hdmitx 11>,
                     <&pix0>,
                     <&pix1>,
                     <&ddr 3>;
            clock-names = "xtal",
                          "fdiv2",
                          "fdiv3",
                          "fdiv4",
                          "fdiv5",
                          "fdiv7",
                          "fdiv2p5",
                          "sys",
                          "gp1",
                          "gp2",
                          "sysplldiv16",
                          "cpudiv16",
                          "a78div16",
                          "dsudiv16",
                          "rtc",
                          "gp0",
                          "hifi0",
                          "hifi1",
                          "mclk0",
                          "mclk1",
                          "vid1",
                          "vid2",
                          "hdmiout2",
                          "hdmipix",
                          "pix0",
                          "pix1",
                          "ddr_test";
        };
    };