xref: /openbmc/linux/Documentation/devicetree/bindings/clock/hi3660-clock.txt (revision cf40a76e7d5874bb25f4404eecc58a2e033af885)
1* Hisilicon Hi3660 Clock Controller
2
3The Hi3660 clock controller generates and supplies clock to various
4controllers within the Hi3660 SoC.
5
6Required Properties:
7
8- compatible: the compatible should be one of the following strings to
9	indicate the clock controller functionality.
10
11	- "hisilicon,hi3660-crgctrl"
12	- "hisilicon,hi3660-pctrl"
13	- "hisilicon,hi3660-pmuctrl"
14	- "hisilicon,hi3660-sctrl"
15	- "hisilicon,hi3660-iomcu"
16
17- reg: physical base address of the controller and length of memory mapped
18  region.
19
20- #clock-cells: should be 1.
21
22Each clock is assigned an identifier and client nodes use this identifier
23to specify the clock which they consume.
24
25All these identifier could be found in <dt-bindings/clock/hi3660-clock.h>.
26
27Examples:
28	crg_ctrl: clock-controller@fff35000 {
29		compatible = "hisilicon,hi3660-crgctrl", "syscon";
30		reg = <0x0 0xfff35000 0x0 0x1000>;
31		#clock-cells = <1>;
32	};
33
34	uart0: serial@fdf02000 {
35		compatible = "arm,pl011", "arm,primecell";
36		reg = <0x0 0xfdf02000 0x0 0x1000>;
37		interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
38		clocks = <&crg_ctrl HI3660_CLK_MUX_UART0>,
39			 <&crg_ctrl HI3660_PCLK>;
40		clock-names = "uartclk", "apb_pclk";
41	};
42