2016-06-09 23:20:47 +00: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 14:13:44 +00:00
|
|
|
- compatible: should be:
|
|
|
|
"amlogic,gxbb-clkc" for GXBB SoC,
|
|
|
|
"amlogic,gxl-clkc" for GXL and GXM SoC,
|
|
|
|
"amlogic,axg-clkc" for AXG SoC.
|
2019-02-01 14:53:43 +00:00
|
|
|
"amlogic,g12a-clkc" for G12A SoC.
|
2019-05-28 08:07:56 +00:00
|
|
|
"amlogic,g12b-clkc" for G12B SoC.
|
2019-08-26 07:25:35 +00:00
|
|
|
"amlogic,sm1-clkc" for SM1 SoC.
|
2018-12-03 17:16:39 +00:00
|
|
|
- clocks : list of clock phandle, one for each entry clock-names.
|
|
|
|
- clock-names : should contain the following:
|
|
|
|
* "xtal": the platform xtal
|
2017-12-11 14:13:44 +00:00
|
|
|
|
2016-06-09 23:20:47 +00: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 11:55:42 +00: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-09 23:20:47 +00:00
|
|
|
Example: Clock controller node:
|
|
|
|
|
2018-03-15 11:55:42 +00:00
|
|
|
sysctrl: system-controller@0 {
|
|
|
|
compatible = "amlogic,meson-gx-hhi-sysctrl", "syscon", "simple-mfd";
|
|
|
|
reg = <0 0 0 0x400>;
|
|
|
|
|
|
|
|
clkc: clock-controller {
|
2016-06-09 23:20:47 +00:00
|
|
|
#clock-cells = <1>;
|
|
|
|
compatible = "amlogic,gxbb-clkc";
|
2018-12-03 17:16:39 +00:00
|
|
|
clocks = <&xtal>;
|
|
|
|
clock-names = "xtal";
|
2016-06-09 23:20:47 +00:00
|
|
|
};
|
2018-03-15 11:55:42 +00:00
|
|
|
};
|
2016-06-09 23:20:47 +00: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>;
|
|
|
|
};
|