Merge tag 'for-5.3-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / clock / amlogic,gxbb-clkc.txt
1 * Amlogic GXBB Clock and Reset Unit
2
3 The Amlogic GXBB clock controller generates and supplies clock to various
4 controllers within the SoC.
5
6 Required Properties:
7
8 - compatible: should be:
9                 "amlogic,gxbb-clkc" for GXBB SoC,
10                 "amlogic,gxl-clkc" for GXL and GXM SoC,
11                 "amlogic,axg-clkc" for AXG SoC.
12                 "amlogic,g12a-clkc" for G12A SoC.
13                 "amlogic,g12b-clkc" for G12B SoC.
14 - clocks : list of clock phandle, one for each entry clock-names.
15 - clock-names : should contain the following:
16   * "xtal": the platform xtal
17
18 - #clock-cells: should be 1.
19
20 Each clock is assigned an identifier and client nodes can use this identifier
21 to specify the clock which they consume. All available clocks are defined as
22 preprocessor macros in the dt-bindings/clock/gxbb-clkc.h header and can be
23 used in device tree sources.
24
25 Parent node should have the following properties :
26 - compatible: "syscon", "simple-mfd, and "amlogic,meson-gx-hhi-sysctrl" or
27               "amlogic,meson-axg-hhi-sysctrl"
28 - reg: base address and size of the HHI system control register space.
29
30 Example: Clock controller node:
31
32 sysctrl: system-controller@0 {
33         compatible = "amlogic,meson-gx-hhi-sysctrl", "syscon", "simple-mfd";
34         reg = <0 0 0 0x400>;
35
36         clkc: clock-controller {
37                 #clock-cells = <1>;
38                 compatible = "amlogic,gxbb-clkc";
39                 clocks = <&xtal>;
40                 clock-names = "xtal";
41         };
42 };
43
44 Example: UART controller node that consumes the clock generated by the clock
45   controller:
46
47         uart_AO: serial@c81004c0 {
48                 compatible = "amlogic,meson-uart";
49                 reg = <0xc81004c0 0x14>;
50                 interrupts = <0 90 1>;
51                 clocks = <&clkc CLKID_CLK81>;
52         };