xref: /freebsd-src/sys/contrib/device-tree/Bindings/clock/amlogic,a1-pll-clkc.yaml (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1f126890aSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2f126890aSEmmanuel Vadot%YAML 1.2
3f126890aSEmmanuel Vadot---
4f126890aSEmmanuel Vadot$id: http://devicetree.org/schemas/clock/amlogic,a1-pll-clkc.yaml#
5f126890aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6f126890aSEmmanuel Vadot
7f126890aSEmmanuel Vadottitle: Amlogic A1 PLL Clock Control Unit
8f126890aSEmmanuel Vadot
9f126890aSEmmanuel Vadotmaintainers:
10f126890aSEmmanuel Vadot  - Neil Armstrong <neil.armstrong@linaro.org>
11f126890aSEmmanuel Vadot  - Jerome Brunet <jbrunet@baylibre.com>
12f126890aSEmmanuel Vadot  - Jian Hu <jian.hu@jian.hu.com>
13f126890aSEmmanuel Vadot  - Dmitry Rokosov <ddrokosov@sberdevices.ru>
14f126890aSEmmanuel Vadot
15f126890aSEmmanuel Vadotproperties:
16f126890aSEmmanuel Vadot  compatible:
17f126890aSEmmanuel Vadot    const: amlogic,a1-pll-clkc
18f126890aSEmmanuel Vadot
19f126890aSEmmanuel Vadot  '#clock-cells':
20f126890aSEmmanuel Vadot    const: 1
21f126890aSEmmanuel Vadot
22f126890aSEmmanuel Vadot  reg:
23f126890aSEmmanuel Vadot    maxItems: 1
24f126890aSEmmanuel Vadot
25f126890aSEmmanuel Vadot  clocks:
26f126890aSEmmanuel Vadot    items:
27f126890aSEmmanuel Vadot      - description: input fixpll_in
28f126890aSEmmanuel Vadot      - description: input hifipll_in
29*0e8011faSEmmanuel Vadot      - description: input syspll_in
30*0e8011faSEmmanuel Vadot    minItems: 2 # syspll_in is optional
31f126890aSEmmanuel Vadot
32f126890aSEmmanuel Vadot  clock-names:
33f126890aSEmmanuel Vadot    items:
34f126890aSEmmanuel Vadot      - const: fixpll_in
35f126890aSEmmanuel Vadot      - const: hifipll_in
36*0e8011faSEmmanuel Vadot      - const: syspll_in
37*0e8011faSEmmanuel Vadot    minItems: 2 # syspll_in is optional
38f126890aSEmmanuel Vadot
39f126890aSEmmanuel Vadotrequired:
40f126890aSEmmanuel Vadot  - compatible
41f126890aSEmmanuel Vadot  - '#clock-cells'
42f126890aSEmmanuel Vadot  - reg
43f126890aSEmmanuel Vadot  - clocks
44f126890aSEmmanuel Vadot  - clock-names
45f126890aSEmmanuel Vadot
46f126890aSEmmanuel VadotadditionalProperties: false
47f126890aSEmmanuel Vadot
48f126890aSEmmanuel Vadotexamples:
49f126890aSEmmanuel Vadot  - |
50f126890aSEmmanuel Vadot    #include <dt-bindings/clock/amlogic,a1-peripherals-clkc.h>
51f126890aSEmmanuel Vadot    apb {
52f126890aSEmmanuel Vadot        #address-cells = <2>;
53f126890aSEmmanuel Vadot        #size-cells = <2>;
54f126890aSEmmanuel Vadot
55f126890aSEmmanuel Vadot        clock-controller@7c80 {
56f126890aSEmmanuel Vadot            compatible = "amlogic,a1-pll-clkc";
57f126890aSEmmanuel Vadot            reg = <0 0x7c80 0 0x18c>;
58f126890aSEmmanuel Vadot            #clock-cells = <1>;
59f126890aSEmmanuel Vadot            clocks = <&clkc_periphs CLKID_FIXPLL_IN>,
60*0e8011faSEmmanuel Vadot                     <&clkc_periphs CLKID_HIFIPLL_IN>,
61*0e8011faSEmmanuel Vadot                     <&clkc_periphs CLKID_SYSPLL_IN>;
62*0e8011faSEmmanuel Vadot            clock-names = "fixpll_in", "hifipll_in", "syspll_in";
63f126890aSEmmanuel Vadot        };
64f126890aSEmmanuel Vadot    };
65