About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Documentation / devicetree / bindings / clock / renesas,cpg-mstp-clocks.txt




Custom Search

Based on kernel version 3.16. Page generated on 2014-08-06 21:36 EST.

1	* Renesas CPG Module Stop (MSTP) Clocks
2	
3	The CPG can gate SoC device clocks. The gates are organized in groups of up to
4	32 gates.
5	
6	This device tree binding describes a single 32 gate clocks group per node.
7	Clocks are referenced by user nodes by the MSTP node phandle and the clock
8	index in the group, from 0 to 31.
9	
10	Required Properties:
11	
12	  - compatible: Must be one of the following
13	    - "renesas,r7s72100-mstp-clocks" for R7S72100 (RZ) MSTP gate clocks
14	    - "renesas,r8a7779-mstp-clocks" for R8A7779 (R-Car H1) MSTP gate clocks
15	    - "renesas,r8a7790-mstp-clocks" for R8A7790 (R-Car H2) MSTP gate clocks
16	    - "renesas,r8a7791-mstp-clocks" for R8A7791 (R-Car M2) MSTP gate clocks
17	    - "renesas,cpg-mstp-clock" for generic MSTP gate clocks
18	  - reg: Base address and length of the I/O mapped registers used by the MSTP
19	    clocks. The first register is the clock control register and is mandatory.
20	    The second register is the clock status register and is optional when not
21	    implemented in hardware.
22	  - clocks: Reference to the parent clocks, one per output clock. The parents
23	    must appear in the same order as the output clocks.
24	  - #clock-cells: Must be 1
25	  - clock-output-names: The name of the clocks as free-form strings
26	  - renesas,clock-indices: Indices of the gate clocks into the group (0 to 31)
27	
28	The clocks, clock-output-names and renesas,clock-indices properties contain one
29	entry per gate clock. The MSTP groups are sparsely populated. Unimplemented
30	gate clocks must not be declared.
31	
32	
33	Example
34	-------
35	
36		#include <dt-bindings/clock/r8a7790-clock.h>
37	
38		mstp3_clks: mstp3_clks@e615013c {
39			compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
40			reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
41			clocks = <&cp_clk>, <&mmc1_clk>, <&sd3_clk>, <&sd2_clk>,
42				 <&cpg_clocks R8A7790_CLK_SD1>, <&cpg_clocks R8A7790_CLK_SD0>,
43				 <&mmc0_clk>;
44			#clock-cells = <1>;
45			clock-output-names =
46				"tpu0", "mmcif1", "sdhi3", "sdhi2",
47				 "sdhi1", "sdhi0", "mmcif0";
48			clock-indices = <
49				R8A7790_CLK_TPU0 R8A7790_CLK_MMCIF1 R8A7790_CLK_SDHI3
50				R8A7790_CLK_SDHI2 R8A7790_CLK_SDHI1 R8A7790_CLK_SDHI0
51				R8A7790_CLK_MMCIF0
52			>;
53		};
Hide Line Numbers
About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Information is copyright its respective author. All material is available from the Linux Kernel Source distributed under a GPL License. This page is provided as a free service by mjmwired.net.