Merge tag 'docs-5.0-fixes' of git://git.lwn.net/linux
[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 - clocks : list of clock phandle, one for each entry clock-names.
13 - clock-names : should contain the following:
14   * "xtal": the platform xtal
15
16 - #clock-cells: should be 1.
17
18 Each clock is assigned an identifier and client nodes can use this identifier
19 to specify the clock which they consume. All available clocks are defined as
20 preprocessor macros in the dt-bindings/clock/gxbb-clkc.h header and can be
21 used in device tree sources.
22
23 Parent node should have the following properties :
24 - compatible: "syscon", "simple-mfd, and "amlogic,meson-gx-hhi-sysctrl" or
25               "amlogic,meson-axg-hhi-sysctrl"
26 - reg: base address and size of the HHI system control register space.
27
28 Example: Clock controller node:
29
30 sysctrl: system-controller@0 {
31         compatible = "amlogic,meson-gx-hhi-sysctrl", "syscon", "simple-mfd";
32         reg = <0 0 0 0x400>;
33
34         clkc: clock-controller {
35                 #clock-cells = <1>;
36                 compatible = "amlogic,gxbb-clkc";
37                 clocks = <&xtal>;
38                 clock-names = "xtal";
39         };
40 };
41
42 Example: UART controller node that consumes the clock generated by the clock
43   controller:
44
45         uart_AO: serial@c81004c0 {
46                 compatible = "amlogic,meson-uart";
47                 reg = <0xc81004c0 0x14>;
48                 interrupts = <0 90 1>;
49                 clocks = <&clkc CLKID_CLK81>;
50         };