xref: /freebsd-src/sys/contrib/device-tree/Bindings/clock/hi3670-clock.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* Hisilicon Hi3670 Clock Controller
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThe Hi3670 clock controller generates and supplies clock to various
4*c66ec88fSEmmanuel Vadotcontrollers within the Hi3670 SoC.
5*c66ec88fSEmmanuel Vadot
6*c66ec88fSEmmanuel VadotRequired Properties:
7*c66ec88fSEmmanuel Vadot
8*c66ec88fSEmmanuel Vadot- compatible: the compatible should be one of the following strings to
9*c66ec88fSEmmanuel Vadot	indicate the clock controller functionality.
10*c66ec88fSEmmanuel Vadot
11*c66ec88fSEmmanuel Vadot	- "hisilicon,hi3670-crgctrl"
12*c66ec88fSEmmanuel Vadot	- "hisilicon,hi3670-pctrl"
13*c66ec88fSEmmanuel Vadot	- "hisilicon,hi3670-pmuctrl"
14*c66ec88fSEmmanuel Vadot	- "hisilicon,hi3670-sctrl"
15*c66ec88fSEmmanuel Vadot	- "hisilicon,hi3670-iomcu"
16*c66ec88fSEmmanuel Vadot	- "hisilicon,hi3670-media1-crg"
17*c66ec88fSEmmanuel Vadot	- "hisilicon,hi3670-media2-crg"
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel Vadot- reg: physical base address of the controller and length of memory mapped
20*c66ec88fSEmmanuel Vadot  region.
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel Vadot- #clock-cells: should be 1.
23*c66ec88fSEmmanuel Vadot
24*c66ec88fSEmmanuel VadotEach clock is assigned an identifier and client nodes use this identifier
25*c66ec88fSEmmanuel Vadotto specify the clock which they consume.
26*c66ec88fSEmmanuel Vadot
27*c66ec88fSEmmanuel VadotAll these identifier could be found in <dt-bindings/clock/hi3670-clock.h>.
28*c66ec88fSEmmanuel Vadot
29*c66ec88fSEmmanuel VadotExamples:
30*c66ec88fSEmmanuel Vadot	crg_ctrl: clock-controller@fff35000 {
31*c66ec88fSEmmanuel Vadot		compatible = "hisilicon,hi3670-crgctrl", "syscon";
32*c66ec88fSEmmanuel Vadot		reg = <0x0 0xfff35000 0x0 0x1000>;
33*c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
34*c66ec88fSEmmanuel Vadot	};
35*c66ec88fSEmmanuel Vadot
36*c66ec88fSEmmanuel Vadot	uart0: serial@fdf02000 {
37*c66ec88fSEmmanuel Vadot		compatible = "arm,pl011", "arm,primecell";
38*c66ec88fSEmmanuel Vadot		reg = <0x0 0xfdf02000 0x0 0x1000>;
39*c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
40*c66ec88fSEmmanuel Vadot		clocks = <&crg_ctrl HI3670_CLK_GATE_UART0>,
41*c66ec88fSEmmanuel Vadot			 <&crg_ctrl HI3670_PCLK>;
42*c66ec88fSEmmanuel Vadot		clock-names = "uartclk", "apb_pclk";
43*c66ec88fSEmmanuel Vadot	};
44