xref: /linux/Documentation/devicetree/bindings/clock/amlogic,c3-peripherals-clkc.yaml (revision fc1c7f941c71460a730a449f76764d883e270cba)
1*fc1c7f94SXianwei Zhao# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*fc1c7f94SXianwei Zhao# Copyright (C) 2022-2023 Amlogic, Inc. All rights reserved
3*fc1c7f94SXianwei Zhao%YAML 1.2
4*fc1c7f94SXianwei Zhao---
5*fc1c7f94SXianwei Zhao$id: http://devicetree.org/schemas/clock/amlogic,c3-peripherals-clkc.yaml#
6*fc1c7f94SXianwei Zhao$schema: http://devicetree.org/meta-schemas/core.yaml#
7*fc1c7f94SXianwei Zhao
8*fc1c7f94SXianwei Zhaotitle: Amlogic C3 series Peripheral Clock Controller
9*fc1c7f94SXianwei Zhao
10*fc1c7f94SXianwei Zhaomaintainers:
11*fc1c7f94SXianwei Zhao  - Neil Armstrong <neil.armstrong@linaro.org>
12*fc1c7f94SXianwei Zhao  - Jerome Brunet <jbrunet@baylibre.com>
13*fc1c7f94SXianwei Zhao  - Xianwei Zhao <xianwei.zhao@amlogic.com>
14*fc1c7f94SXianwei Zhao  - Chuan Liu <chuan.liu@amlogic.com>
15*fc1c7f94SXianwei Zhao
16*fc1c7f94SXianwei Zhaoproperties:
17*fc1c7f94SXianwei Zhao  compatible:
18*fc1c7f94SXianwei Zhao    const: amlogic,c3-peripherals-clkc
19*fc1c7f94SXianwei Zhao
20*fc1c7f94SXianwei Zhao  reg:
21*fc1c7f94SXianwei Zhao    maxItems: 1
22*fc1c7f94SXianwei Zhao
23*fc1c7f94SXianwei Zhao  clocks:
24*fc1c7f94SXianwei Zhao    minItems: 16
25*fc1c7f94SXianwei Zhao    items:
26*fc1c7f94SXianwei Zhao      - description: input oscillator (usually at 24MHz)
27*fc1c7f94SXianwei Zhao      - description: input oscillators multiplexer
28*fc1c7f94SXianwei Zhao      - description: input fix pll
29*fc1c7f94SXianwei Zhao      - description: input fclk div 2
30*fc1c7f94SXianwei Zhao      - description: input fclk div 2p5
31*fc1c7f94SXianwei Zhao      - description: input fclk div 3
32*fc1c7f94SXianwei Zhao      - description: input fclk div 4
33*fc1c7f94SXianwei Zhao      - description: input fclk div 5
34*fc1c7f94SXianwei Zhao      - description: input fclk div 7
35*fc1c7f94SXianwei Zhao      - description: input gp0 pll
36*fc1c7f94SXianwei Zhao      - description: input gp1 pll
37*fc1c7f94SXianwei Zhao      - description: input hifi pll
38*fc1c7f94SXianwei Zhao      - description: input sys clk
39*fc1c7f94SXianwei Zhao      - description: input axi clk
40*fc1c7f94SXianwei Zhao      - description: input sys pll div 16
41*fc1c7f94SXianwei Zhao      - description: input cpu clk div 16
42*fc1c7f94SXianwei Zhao      - description: input pad clock for rtc clk (optional)
43*fc1c7f94SXianwei Zhao
44*fc1c7f94SXianwei Zhao  clock-names:
45*fc1c7f94SXianwei Zhao    minItems: 16
46*fc1c7f94SXianwei Zhao    items:
47*fc1c7f94SXianwei Zhao      - const: xtal_24m
48*fc1c7f94SXianwei Zhao      - const: oscin
49*fc1c7f94SXianwei Zhao      - const: fix
50*fc1c7f94SXianwei Zhao      - const: fdiv2
51*fc1c7f94SXianwei Zhao      - const: fdiv2p5
52*fc1c7f94SXianwei Zhao      - const: fdiv3
53*fc1c7f94SXianwei Zhao      - const: fdiv4
54*fc1c7f94SXianwei Zhao      - const: fdiv5
55*fc1c7f94SXianwei Zhao      - const: fdiv7
56*fc1c7f94SXianwei Zhao      - const: gp0
57*fc1c7f94SXianwei Zhao      - const: gp1
58*fc1c7f94SXianwei Zhao      - const: hifi
59*fc1c7f94SXianwei Zhao      - const: sysclk
60*fc1c7f94SXianwei Zhao      - const: axiclk
61*fc1c7f94SXianwei Zhao      - const: sysplldiv16
62*fc1c7f94SXianwei Zhao      - const: cpudiv16
63*fc1c7f94SXianwei Zhao      - const: pad_osc
64*fc1c7f94SXianwei Zhao
65*fc1c7f94SXianwei Zhao  "#clock-cells":
66*fc1c7f94SXianwei Zhao    const: 1
67*fc1c7f94SXianwei Zhao
68*fc1c7f94SXianwei Zhaorequired:
69*fc1c7f94SXianwei Zhao  - compatible
70*fc1c7f94SXianwei Zhao  - reg
71*fc1c7f94SXianwei Zhao  - clocks
72*fc1c7f94SXianwei Zhao  - clock-names
73*fc1c7f94SXianwei Zhao  - "#clock-cells"
74*fc1c7f94SXianwei Zhao
75*fc1c7f94SXianwei ZhaoadditionalProperties: false
76*fc1c7f94SXianwei Zhao
77*fc1c7f94SXianwei Zhaoexamples:
78*fc1c7f94SXianwei Zhao  - |
79*fc1c7f94SXianwei Zhao    apb {
80*fc1c7f94SXianwei Zhao        #address-cells = <2>;
81*fc1c7f94SXianwei Zhao        #size-cells = <2>;
82*fc1c7f94SXianwei Zhao
83*fc1c7f94SXianwei Zhao        clock-controller@0 {
84*fc1c7f94SXianwei Zhao            compatible = "amlogic,c3-peripherals-clkc";
85*fc1c7f94SXianwei Zhao            reg = <0x0 0x0 0x0 0x49c>;
86*fc1c7f94SXianwei Zhao            #clock-cells = <1>;
87*fc1c7f94SXianwei Zhao            clocks = <&xtal_24m>,
88*fc1c7f94SXianwei Zhao                     <&scmi_clk 8>,
89*fc1c7f94SXianwei Zhao                     <&scmi_clk 12>,
90*fc1c7f94SXianwei Zhao                     <&clkc_pll 3>,
91*fc1c7f94SXianwei Zhao                     <&clkc_pll 5>,
92*fc1c7f94SXianwei Zhao                     <&clkc_pll 7>,
93*fc1c7f94SXianwei Zhao                     <&clkc_pll 9>,
94*fc1c7f94SXianwei Zhao                     <&clkc_pll 11>,
95*fc1c7f94SXianwei Zhao                     <&clkc_pll 13>,
96*fc1c7f94SXianwei Zhao                     <&clkc_pll 15>,
97*fc1c7f94SXianwei Zhao                     <&scmi_clk 13>,
98*fc1c7f94SXianwei Zhao                     <&clkc_pll 17>,
99*fc1c7f94SXianwei Zhao                     <&scmi_clk 9>,
100*fc1c7f94SXianwei Zhao                     <&scmi_clk 10>,
101*fc1c7f94SXianwei Zhao                     <&scmi_clk 14>,
102*fc1c7f94SXianwei Zhao                     <&scmi_clk 15>;
103*fc1c7f94SXianwei Zhao            clock-names = "xtal_24m",
104*fc1c7f94SXianwei Zhao                          "oscin",
105*fc1c7f94SXianwei Zhao                          "fix",
106*fc1c7f94SXianwei Zhao                          "fdiv2",
107*fc1c7f94SXianwei Zhao                          "fdiv2p5",
108*fc1c7f94SXianwei Zhao                          "fdiv3",
109*fc1c7f94SXianwei Zhao                          "fdiv4",
110*fc1c7f94SXianwei Zhao                          "fdiv5",
111*fc1c7f94SXianwei Zhao                          "fdiv7",
112*fc1c7f94SXianwei Zhao                          "gp0",
113*fc1c7f94SXianwei Zhao                          "gp1",
114*fc1c7f94SXianwei Zhao                          "hifi",
115*fc1c7f94SXianwei Zhao                          "sysclk",
116*fc1c7f94SXianwei Zhao                          "axiclk",
117*fc1c7f94SXianwei Zhao                          "sysplldiv16",
118*fc1c7f94SXianwei Zhao                          "cpudiv16";
119*fc1c7f94SXianwei Zhao        };
120*fc1c7f94SXianwei Zhao    };
121