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