cda4569137
Update the documentation to support clock driver for the Amlogic SM1 SoC and expose the GP1, DSU and the CPU 1, 2 & 3 clocks. SM1 clock tree is very close, the main differences are : - each CPU core can achieve a different frequency, albeit a common PLL - a similar tree as the clock tree has been added for the DynamIQ Shared Unit - has a new GP1 PLL used for the DynamIQ Shared Unit - SM1 has additional clocks like for CSI, NanoQ an other components Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Reviewed-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
54 lines
1.6 KiB
Plaintext
54 lines
1.6 KiB
Plaintext
* Amlogic GXBB Clock and Reset Unit
|
|
|
|
The Amlogic GXBB clock controller generates and supplies clock to various
|
|
controllers within the SoC.
|
|
|
|
Required Properties:
|
|
|
|
- compatible: should be:
|
|
"amlogic,gxbb-clkc" for GXBB SoC,
|
|
"amlogic,gxl-clkc" for GXL and GXM SoC,
|
|
"amlogic,axg-clkc" for AXG SoC.
|
|
"amlogic,g12a-clkc" for G12A SoC.
|
|
"amlogic,g12b-clkc" for G12B SoC.
|
|
"amlogic,sm1-clkc" for SM1 SoC.
|
|
- clocks : list of clock phandle, one for each entry clock-names.
|
|
- clock-names : should contain the following:
|
|
* "xtal": the platform xtal
|
|
|
|
- #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.
|
|
|
|
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.
|
|
|
|
Example: Clock controller node:
|
|
|
|
sysctrl: system-controller@0 {
|
|
compatible = "amlogic,meson-gx-hhi-sysctrl", "syscon", "simple-mfd";
|
|
reg = <0 0 0 0x400>;
|
|
|
|
clkc: clock-controller {
|
|
#clock-cells = <1>;
|
|
compatible = "amlogic,gxbb-clkc";
|
|
clocks = <&xtal>;
|
|
clock-names = "xtal";
|
|
};
|
|
};
|
|
|
|
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>;
|
|
};
|