2016-06-10 07:20:47 +08:00
|
|
|
* Amlogic GXBB Clock and Reset Unit
|
|
|
|
|
|
|
|
The Amlogic GXBB clock controller generates and supplies clock to various
|
|
|
|
controllers within the SoC.
|
|
|
|
|
|
|
|
Required Properties:
|
|
|
|
|
2017-12-11 22:13:44 +08:00
|
|
|
- compatible: should be:
|
|
|
|
"amlogic,gxbb-clkc" for GXBB SoC,
|
|
|
|
"amlogic,gxl-clkc" for GXL and GXM SoC,
|
|
|
|
"amlogic,axg-clkc" for AXG SoC.
|
|
|
|
|
2016-06-10 07:20:47 +08:00
|
|
|
- #clock-cells: should be 1.
|
|
|
|
|
|
|
|
Each clock is assigned an identifier and client nodes can use this identifier
|
|
|
|
to specify the clock which they consume. All available clocks are defined as
|
|
|
|
preprocessor macros in the dt-bindings/clock/gxbb-clkc.h header and can be
|
|
|
|
used in device tree sources.
|
|
|
|
|
2018-03-15 19:55:42 +08:00
|
|
|
Parent node should have the following properties :
|
|
|
|
- compatible: "syscon", "simple-mfd, and "amlogic,meson-gx-hhi-sysctrl" or
|
|
|
|
"amlogic,meson-axg-hhi-sysctrl"
|
|
|
|
- reg: base address and size of the HHI system control register space.
|
|
|
|
|
2016-06-10 07:20:47 +08:00
|
|
|
Example: Clock controller node:
|
|
|
|
|
2018-03-15 19:55:42 +08:00
|
|
|
sysctrl: system-controller@0 {
|
|
|
|
compatible = "amlogic,meson-gx-hhi-sysctrl", "syscon", "simple-mfd";
|
|
|
|
reg = <0 0 0 0x400>;
|
|
|
|
|
|
|
|
clkc: clock-controller {
|
2016-06-10 07:20:47 +08:00
|
|
|
#clock-cells = <1>;
|
|
|
|
compatible = "amlogic,gxbb-clkc";
|
|
|
|
};
|
2018-03-15 19:55:42 +08:00
|
|
|
};
|
2016-06-10 07:20:47 +08:00
|
|
|
|
|
|
|
Example: UART controller node that consumes the clock generated by the clock
|
|
|
|
controller:
|
|
|
|
|
|
|
|
uart_AO: serial@c81004c0 {
|
|
|
|
compatible = "amlogic,meson-uart";
|
|
|
|
reg = <0xc81004c0 0x14>;
|
|
|
|
interrupts = <0 90 1>;
|
|
|
|
clocks = <&clkc CLKID_CLK81>;
|
|
|
|
};
|