Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1* Amlogic GXBB AO Clock and Reset Unit
2
3The Amlogic GXBB AO clock controller generates and supplies clock to various
4controllers within the Always-On part of the SoC.
5
6Required Properties:
7
8- compatible: value should be different for each SoC family as :
9 - GXBB (S905) : "amlogic,meson-gxbb-aoclkc"
10 - GXL (S905X, S905D) : "amlogic,meson-gxl-aoclkc"
11 - GXM (S912) : "amlogic,meson-gxm-aoclkc"
12 followed by the common "amlogic,meson-gx-aoclkc"
13
14- #clock-cells: should be 1.
15
16Each clock is assigned an identifier and client nodes can use this identifier
17to specify the clock which they consume. All available clocks are defined as
18preprocessor macros in the dt-bindings/clock/gxbb-aoclkc.h header and can be
19used in device tree sources.
20
21- #reset-cells: should be 1.
22
23Each reset is assigned an identifier and client nodes can use this identifier
24to specify the reset which they consume. All available resets are defined as
25preprocessor macros in the dt-bindings/reset/gxbb-aoclkc.h header and can be
26used in device tree sources.
27
28Parent node should have the following properties :
29- compatible: "amlogic,meson-gx-ao-sysctrl", "syscon", "simple-mfd"
30- reg: base address and size of the AO system control register space.
31
32Example: AO Clock controller node:
33
34ao_sysctrl: sys-ctrl@0 {
35 compatible = "amlogic,meson-gx-ao-sysctrl", "syscon", "simple-mfd";
36 reg = <0x0 0x0 0x0 0x100>;
37
38 clkc_AO: clock-controller {
39 compatible = "amlogic,meson-gxbb-aoclkc", "amlogic,meson-gx-aoclkc";
40 #clock-cells = <1>;
41 #reset-cells = <1>;
42 };
43};
44
45Example: UART controller node that consumes the clock and reset generated
46 by the clock controller:
47
48 uart_AO: serial@4c0 {
49 compatible = "amlogic,meson-uart";
50 reg = <0x4c0 0x14>;
51 interrupts = <0 90 1>;
52 clocks = <&clkc_AO CLKID_AO_UART1>;
53 resets = <&clkc_AO RESET_AO_UART1>;
54 };