xref: /openbmc/linux/Documentation/devicetree/bindings/clock/hi6220-clock.txt (revision cdd38c5f1ce4398ec58fec95904b75824daab7b5)
1db0f90efSBintian Wang* Hisilicon Hi6220 Clock Controller
2db0f90efSBintian Wang
3db0f90efSBintian WangClock control registers reside in different Hi6220 system controllers,
4db0f90efSBintian Wangplease refer the following document to know more about the binding rules
5db0f90efSBintian Wangfor these system controllers:
6db0f90efSBintian Wang
7*ef900cccSMauro Carvalho ChehabDocumentation/devicetree/bindings/arm/hisilicon/hisilicon.yaml
8db0f90efSBintian Wang
9db0f90efSBintian WangRequired Properties:
10db0f90efSBintian Wang
11db0f90efSBintian Wang- compatible: the compatible should be one of the following strings to
12db0f90efSBintian Wang	indicate the clock controller functionality.
13db0f90efSBintian Wang
143ff77275SZhangfei Gao	- "hisilicon,hi6220-acpu-sctrl"
15db0f90efSBintian Wang	- "hisilicon,hi6220-aoctrl"
16db0f90efSBintian Wang	- "hisilicon,hi6220-sysctrl"
17db0f90efSBintian Wang	- "hisilicon,hi6220-mediactrl"
18db0f90efSBintian Wang	- "hisilicon,hi6220-pmctrl"
19832446e8SLeo Yan	- "hisilicon,hi6220-stub-clk"
20db0f90efSBintian Wang
21db0f90efSBintian Wang- reg: physical base address of the controller and length of memory mapped
22db0f90efSBintian Wang  region.
23db0f90efSBintian Wang
24db0f90efSBintian Wang- #clock-cells: should be 1.
25db0f90efSBintian Wang
26832446e8SLeo YanOptional Properties:
27832446e8SLeo Yan
28832446e8SLeo Yan- hisilicon,hi6220-clk-sram: phandle to the syscon managing the SoC internal sram;
29832446e8SLeo Yan  the driver need use the sram to pass parameters for frequency change.
30832446e8SLeo Yan
31832446e8SLeo Yan- mboxes: use the label reference for the mailbox as the first parameter, the
32832446e8SLeo Yan  second parameter is the channel number.
33832446e8SLeo Yan
34832446e8SLeo YanExample 1:
35db0f90efSBintian Wang	sys_ctrl: sys_ctrl@f7030000 {
36db0f90efSBintian Wang		compatible = "hisilicon,hi6220-sysctrl", "syscon";
37db0f90efSBintian Wang		reg = <0x0 0xf7030000 0x0 0x2000>;
38db0f90efSBintian Wang		#clock-cells = <1>;
39db0f90efSBintian Wang	};
40db0f90efSBintian Wang
41832446e8SLeo YanExample 2:
42832446e8SLeo Yan	stub_clock: stub_clock {
43832446e8SLeo Yan		compatible = "hisilicon,hi6220-stub-clk";
44832446e8SLeo Yan		hisilicon,hi6220-clk-sram = <&sram>;
45832446e8SLeo Yan		#clock-cells = <1>;
46832446e8SLeo Yan		mboxes = <&mailbox 1>;
47832446e8SLeo Yan	};
48832446e8SLeo Yan
49db0f90efSBintian WangEach clock is assigned an identifier and client nodes use this identifier
50db0f90efSBintian Wangto specify the clock which they consume.
51db0f90efSBintian Wang
52db0f90efSBintian WangAll these identifier could be found in <dt-bindings/clock/hi6220-clock.h>.
53