xref: /freebsd/sys/contrib/device-tree/Bindings/clock/exynos5420-clock.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* Samsung Exynos5420 Clock Controller
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThe Exynos5420 clock controller generates and supplies clock to various
4*c66ec88fSEmmanuel Vadotcontrollers within the Exynos5420 SoC and for the Exynos5800 SoC.
5*c66ec88fSEmmanuel Vadot
6*c66ec88fSEmmanuel VadotRequired Properties:
7*c66ec88fSEmmanuel Vadot
8*c66ec88fSEmmanuel Vadot- compatible: should be one of the following.
9*c66ec88fSEmmanuel Vadot  - "samsung,exynos5420-clock" - controller compatible with Exynos5420 SoC.
10*c66ec88fSEmmanuel Vadot  - "samsung,exynos5800-clock" - controller compatible with Exynos5800 SoC.
11*c66ec88fSEmmanuel Vadot
12*c66ec88fSEmmanuel Vadot- reg: physical base address of the controller and length of memory mapped
13*c66ec88fSEmmanuel Vadot  region.
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel Vadot- #clock-cells: should be 1.
16*c66ec88fSEmmanuel Vadot
17*c66ec88fSEmmanuel VadotEach clock is assigned an identifier and client nodes can use this identifier
18*c66ec88fSEmmanuel Vadotto specify the clock which they consume.
19*c66ec88fSEmmanuel Vadot
20*c66ec88fSEmmanuel VadotAll available clocks are defined as preprocessor macros in
21*c66ec88fSEmmanuel Vadotdt-bindings/clock/exynos5420.h header and can be used in device
22*c66ec88fSEmmanuel Vadottree sources.
23*c66ec88fSEmmanuel Vadot
24*c66ec88fSEmmanuel VadotExample 1: An example of a clock controller node is listed below.
25*c66ec88fSEmmanuel Vadot
26*c66ec88fSEmmanuel Vadot	clock: clock-controller@10010000 {
27*c66ec88fSEmmanuel Vadot		compatible = "samsung,exynos5420-clock";
28*c66ec88fSEmmanuel Vadot		reg = <0x10010000 0x30000>;
29*c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
30*c66ec88fSEmmanuel Vadot	};
31*c66ec88fSEmmanuel Vadot
32*c66ec88fSEmmanuel VadotExample 2: UART controller node that consumes the clock generated by the clock
33*c66ec88fSEmmanuel Vadot	   controller. Refer to the standard clock bindings for information
34*c66ec88fSEmmanuel Vadot	   about 'clocks' and 'clock-names' property.
35*c66ec88fSEmmanuel Vadot
36*c66ec88fSEmmanuel Vadot	serial@13820000 {
37*c66ec88fSEmmanuel Vadot		compatible = "samsung,exynos4210-uart";
38*c66ec88fSEmmanuel Vadot		reg = <0x13820000 0x100>;
39*c66ec88fSEmmanuel Vadot		interrupts = <0 54 0>;
40*c66ec88fSEmmanuel Vadot		clocks = <&clock CLK_UART2>, <&clock CLK_SCLK_UART2>;
41*c66ec88fSEmmanuel Vadot		clock-names = "uart", "clk_uart_baud0";
42*c66ec88fSEmmanuel Vadot	};
43