Skip to content

Commit 45aa2c2

Browse files
Josh CartwrightMichal Simek
authored andcommitted
clk: Add support for fundamental zynq clks
Provide simplified models for the necessary clocks on the zynq-7000 platform. Currently, the PLLs, the CPU clock network, and the basic peripheral clock networks (for SDIO, SMC, SPI, QSPI, UART) are modelled. OF bindings are also provided and documented. Signed-off-by: Josh Cartwright <josh.cartwright@ni.com> Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com> Acked-by: Mike Turquette <mturquette@linaro.org> Acked-by: Michal Simek <michal.simek@xilinx.com>
1 parent e06f1a9 commit 45aa2c2

3 files changed

Lines changed: 462 additions & 0 deletions

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
Device Tree Clock bindings for the Zynq 7000 EPP
2+
3+
The Zynq EPP has several different clk providers, each with there own bindings.
4+
The purpose of this document is to document their usage.
5+
6+
See clock_bindings.txt for more information on the generic clock bindings.
7+
See Chapter 25 of Zynq TRM for more information about Zynq clocks.
8+
9+
== PLLs ==
10+
11+
Used to describe the ARM_PLL, DDR_PLL, and IO_PLL.
12+
13+
Required properties:
14+
- #clock-cells : shall be 0 (only one clock is output from this node)
15+
- compatible : "xlnx,zynq-pll"
16+
- reg : pair of u32 values, which are the address offsets within the SLCR
17+
of the relevant PLL_CTRL register and PLL_CFG register respectively
18+
- clocks : phandle for parent clock. should be the phandle for ps_clk
19+
20+
Optional properties:
21+
- clock-output-names : name of the output clock
22+
23+
Example:
24+
armpll: armpll {
25+
#clock-cells = <0>;
26+
compatible = "xlnx,zynq-pll";
27+
clocks = <&ps_clk>;
28+
reg = <0x100 0x110>;
29+
clock-output-names = "armpll";
30+
};
31+
32+
== Peripheral clocks ==
33+
34+
Describes clock node for the SDIO, SMC, SPI, QSPI, and UART clocks.
35+
36+
Required properties:
37+
- #clock-cells : shall be 1
38+
- compatible : "xlnx,zynq-periph-clock"
39+
- reg : a single u32 value, describing the offset within the SLCR where
40+
the CLK_CTRL register is found for this peripheral
41+
- clocks : phandle for parent clocks. should hold phandles for
42+
the IO_PLL, ARM_PLL, and DDR_PLL in order
43+
- clock-output-names : names of the output clock(s). For peripherals that have
44+
two output clocks (for example, the UART), two clocks
45+
should be listed.
46+
47+
Example:
48+
uart_clk: uart_clk {
49+
#clock-cells = <1>;
50+
compatible = "xlnx,zynq-periph-clock";
51+
clocks = <&iopll &armpll &ddrpll>;
52+
reg = <0x154>;
53+
clock-output-names = "uart0_ref_clk",
54+
"uart1_ref_clk";
55+
};

0 commit comments

Comments
 (0)