2013-10-18 05:54:07 +08:00
|
|
|
* Renesas CPG Module Stop (MSTP) Clocks
|
|
|
|
|
|
|
|
The CPG can gate SoC device clocks. The gates are organized in groups of up to
|
|
|
|
32 gates.
|
|
|
|
|
|
|
|
This device tree binding describes a single 32 gate clocks group per node.
|
|
|
|
Clocks are referenced by user nodes by the MSTP node phandle and the clock
|
|
|
|
index in the group, from 0 to 31.
|
|
|
|
|
|
|
|
Required Properties:
|
|
|
|
|
|
|
|
- compatible: Must be one of the following
|
2014-05-14 09:10:05 +08:00
|
|
|
- "renesas,r7s72100-mstp-clocks" for R7S72100 (RZ) MSTP gate clocks
|
2014-12-18 00:18:50 +08:00
|
|
|
- "renesas,r8a73a4-mstp-clocks" for R8A73A4 (R-Mobile APE6) MSTP gate clocks
|
2014-09-02 17:13:04 +08:00
|
|
|
- "renesas,r8a7740-mstp-clocks" for R8A7740 (R-Mobile A1) MSTP gate clocks
|
2015-02-27 00:42:06 +08:00
|
|
|
- "renesas,r8a7778-mstp-clocks" for R8A7778 (R-Car M1) MSTP gate clocks
|
2014-04-18 07:05:51 +08:00
|
|
|
- "renesas,r8a7779-mstp-clocks" for R8A7779 (R-Car H1) MSTP gate clocks
|
2013-10-18 05:54:07 +08:00
|
|
|
- "renesas,r8a7790-mstp-clocks" for R8A7790 (R-Car H2) MSTP gate clocks
|
2015-05-28 23:17:00 +08:00
|
|
|
- "renesas,r8a7791-mstp-clocks" for R8A7791 (R-Car M2-W) MSTP gate clocks
|
2016-06-04 04:59:07 +08:00
|
|
|
- "renesas,r8a7792-mstp-clocks" for R8A7792 (R-Car V2H) MSTP gate clocks
|
2015-05-28 23:17:00 +08:00
|
|
|
- "renesas,r8a7793-mstp-clocks" for R8A7793 (R-Car M2-N) MSTP gate clocks
|
2014-08-30 02:15:08 +08:00
|
|
|
- "renesas,r8a7794-mstp-clocks" for R8A7794 (R-Car E2) MSTP gate clocks
|
2014-09-02 17:13:04 +08:00
|
|
|
- "renesas,sh73a0-mstp-clocks" for SH73A0 (SH-MobileAG5) MSTP gate clocks
|
2015-05-28 17:28:10 +08:00
|
|
|
and "renesas,cpg-mstp-clocks" as a fallback.
|
2013-10-18 05:54:07 +08:00
|
|
|
- reg: Base address and length of the I/O mapped registers used by the MSTP
|
|
|
|
clocks. The first register is the clock control register and is mandatory.
|
|
|
|
The second register is the clock status register and is optional when not
|
|
|
|
implemented in hardware.
|
|
|
|
- clocks: Reference to the parent clocks, one per output clock. The parents
|
|
|
|
must appear in the same order as the output clocks.
|
|
|
|
- #clock-cells: Must be 1
|
|
|
|
- clock-output-names: The name of the clocks as free-form strings
|
2014-11-11 02:49:34 +08:00
|
|
|
- clock-indices: Indices of the gate clocks into the group (0 to 31)
|
2013-10-18 05:54:07 +08:00
|
|
|
|
2014-11-11 02:49:34 +08:00
|
|
|
The clocks, clock-output-names and clock-indices properties contain one entry
|
|
|
|
per gate clock. The MSTP groups are sparsely populated. Unimplemented gate
|
|
|
|
clocks must not be declared.
|
2013-10-18 05:54:07 +08:00
|
|
|
|
|
|
|
|
|
|
|
Example
|
|
|
|
-------
|
|
|
|
|
|
|
|
#include <dt-bindings/clock/r8a7790-clock.h>
|
|
|
|
|
|
|
|
mstp3_clks: mstp3_clks@e615013c {
|
|
|
|
compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
|
|
|
|
reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
|
|
|
|
clocks = <&cp_clk>, <&mmc1_clk>, <&sd3_clk>, <&sd2_clk>,
|
|
|
|
<&cpg_clocks R8A7790_CLK_SD1>, <&cpg_clocks R8A7790_CLK_SD0>,
|
|
|
|
<&mmc0_clk>;
|
|
|
|
#clock-cells = <1>;
|
|
|
|
clock-output-names =
|
|
|
|
"tpu0", "mmcif1", "sdhi3", "sdhi2",
|
|
|
|
"sdhi1", "sdhi0", "mmcif0";
|
2014-04-16 00:06:34 +08:00
|
|
|
clock-indices = <
|
2013-10-18 05:54:07 +08:00
|
|
|
R8A7790_CLK_TPU0 R8A7790_CLK_MMCIF1 R8A7790_CLK_SDHI3
|
|
|
|
R8A7790_CLK_SDHI2 R8A7790_CLK_SDHI1 R8A7790_CLK_SDHI0
|
|
|
|
R8A7790_CLK_MMCIF0
|
|
|
|
>;
|
|
|
|
};
|