mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-25 12:04:46 +08:00
daeeb438c0
HSDK board manages its clocks using various PLLs. These PLL have same dividers and corresponding control registers mapped to different addresses. So we add one common driver for such PLLs. Each PLL on HSDK board consists of three dividers: IDIV, FBDIV and ODIV. Output clock value is managed using these dividers. We add pre-defined tables with supported rate values and appropriate configurations of IDIV, FBDIV and ODIV for each value. As of today we add support for PLLs that generate clock for the HSDK arc cpus, system, ddr, AXI tunnel and hdmi. By this patch we add support for several plls (arc cpus pll and others), so we had to use two different init types: CLK_OF_DECLARE for arc cpus pll and regular probing for others plls. Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Reviewed-by: Vineet Gupta <vgupta@synopsys.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
29 lines
762 B
Plaintext
29 lines
762 B
Plaintext
Binding for the HSDK Generic PLL clock
|
|
|
|
This binding uses the common clock binding[1].
|
|
|
|
[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
|
|
|
|
Required properties:
|
|
- compatible: should be "snps,hsdk-<name>-pll-clock"
|
|
"snps,hsdk-core-pll-clock"
|
|
"snps,hsdk-gp-pll-clock"
|
|
"snps,hsdk-hdmi-pll-clock"
|
|
- reg : should contain base register location and length.
|
|
- clocks: shall be the input parent clock phandle for the PLL.
|
|
- #clock-cells: from common clock binding; Should always be set to 0.
|
|
|
|
Example:
|
|
input_clk: input-clk {
|
|
clock-frequency = <33333333>;
|
|
compatible = "fixed-clock";
|
|
#clock-cells = <0>;
|
|
};
|
|
|
|
cpu_clk: cpu-clk@0 {
|
|
compatible = "snps,hsdk-core-pll-clock";
|
|
reg = <0x00 0x10>;
|
|
#clock-cells = <0>;
|
|
clocks = <&input_clk>;
|
|
};
|