xref: /freebsd-src/sys/contrib/device-tree/Bindings/clock/amlogic,a1-peripherals-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-peripherals-clkc.yaml#
5f126890aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6f126890aSEmmanuel Vadot
7f126890aSEmmanuel Vadottitle: Amlogic A1 Peripherals 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-peripherals-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 fixed pll div2
28f126890aSEmmanuel Vadot      - description: input fixed pll div3
29f126890aSEmmanuel Vadot      - description: input fixed pll div5
30f126890aSEmmanuel Vadot      - description: input fixed pll div7
31f126890aSEmmanuel Vadot      - description: input hifi pll
32f126890aSEmmanuel Vadot      - description: input oscillator (usually at 24MHz)
33*0e8011faSEmmanuel Vadot      - description: input sys pll
34*0e8011faSEmmanuel Vadot    minItems: 6 # sys_pll is optional
35f126890aSEmmanuel Vadot
36f126890aSEmmanuel Vadot  clock-names:
37f126890aSEmmanuel Vadot    items:
38f126890aSEmmanuel Vadot      - const: fclk_div2
39f126890aSEmmanuel Vadot      - const: fclk_div3
40f126890aSEmmanuel Vadot      - const: fclk_div5
41f126890aSEmmanuel Vadot      - const: fclk_div7
42f126890aSEmmanuel Vadot      - const: hifi_pll
43f126890aSEmmanuel Vadot      - const: xtal
44*0e8011faSEmmanuel Vadot      - const: sys_pll
45*0e8011faSEmmanuel Vadot    minItems: 6 # sys_pll is optional
46f126890aSEmmanuel Vadot
47f126890aSEmmanuel Vadotrequired:
48f126890aSEmmanuel Vadot  - compatible
49f126890aSEmmanuel Vadot  - '#clock-cells'
50f126890aSEmmanuel Vadot  - reg
51f126890aSEmmanuel Vadot  - clocks
52f126890aSEmmanuel Vadot  - clock-names
53f126890aSEmmanuel Vadot
54f126890aSEmmanuel VadotadditionalProperties: false
55f126890aSEmmanuel Vadot
56f126890aSEmmanuel Vadotexamples:
57f126890aSEmmanuel Vadot  - |
58f126890aSEmmanuel Vadot    #include <dt-bindings/clock/amlogic,a1-pll-clkc.h>
59f126890aSEmmanuel Vadot    apb {
60f126890aSEmmanuel Vadot        #address-cells = <2>;
61f126890aSEmmanuel Vadot        #size-cells = <2>;
62f126890aSEmmanuel Vadot
63f126890aSEmmanuel Vadot        clock-controller@800 {
64f126890aSEmmanuel Vadot            compatible = "amlogic,a1-peripherals-clkc";
65f126890aSEmmanuel Vadot            reg = <0 0x800 0 0x104>;
66f126890aSEmmanuel Vadot            #clock-cells = <1>;
67f126890aSEmmanuel Vadot            clocks = <&clkc_pll CLKID_FCLK_DIV2>,
68f126890aSEmmanuel Vadot                     <&clkc_pll CLKID_FCLK_DIV3>,
69f126890aSEmmanuel Vadot                     <&clkc_pll CLKID_FCLK_DIV5>,
70f126890aSEmmanuel Vadot                     <&clkc_pll CLKID_FCLK_DIV7>,
71f126890aSEmmanuel Vadot                     <&clkc_pll CLKID_HIFI_PLL>,
72*0e8011faSEmmanuel Vadot                     <&xtal>,
73*0e8011faSEmmanuel Vadot                     <&clkc_pll CLKID_SYS_PLL>;
74f126890aSEmmanuel Vadot            clock-names = "fclk_div2", "fclk_div3",
75f126890aSEmmanuel Vadot                          "fclk_div5", "fclk_div7",
76*0e8011faSEmmanuel Vadot                          "hifi_pll", "xtal", "sys_pll";
77f126890aSEmmanuel Vadot        };
78f126890aSEmmanuel Vadot    };
79