Hi,
On Tue, Sep 30, 2014 at 11:39 PM, Maxime Ripard
[off-list ref] wrote:
Hi,
On Sat, Sep 27, 2014 at 04:49:50PM +0800, Chen-Yu Tsai wrote:
quoted
Some clock modules on the A31 use PLL6x2 as one of their inputs.
This patch changes the PLL6 implementation for A31 to a divs clock,
i.e. clock with multiple outputs that have different dividers.
The first output will be the normal PLL6 output, and the second
will be PLL6x2.
This patch fixes the PLL6 N factor in the clock driver, and removes
any /2 dividers in the PLL6 factors clock part. The N factor counts
from 1 to 32, mapping to values 0 to 31, as shown in the A31 manual.
Signed-off-by: Chen-Yu Tsai <redacted>
---
Documentation/devicetree/bindings/clock/sunxi.txt | 5 ++--
drivers/clk/sunxi/clk-sunxi.c | 28 +++++++++++++----------
2 files changed, 19 insertions(+), 14 deletions(-)
diff --git a/Documentation/devicetree/bindings/clock/sunxi.txt b/Documentation/devicetree/bindings/clock/sunxi.txt
index d3a5c3c..0d84f4b 100644
--- a/Documentation/devicetree/bindings/clock/sunxi.txt
+++ b/Documentation/devicetree/bindings/clock/sunxi.txt
@@ -59,8 +59,9 @@ Required properties for all clocks:
multiplexed clocks, the list order must match the hardware
programming order.
- #clock-cells : from common clock binding; shall be set to 0 except for
- "allwinner,*-gates-clk", "allwinner,sun4i-pll5-clk" and
- "allwinner,sun4i-pll6-clk" where it shall be set to 1
+ the following compatibles where it shall be set to 1:
+ "allwinner,*-gates-clk", "allwinner,sun4i-pll5-clk",
+ "allwinner,sun4i-pll6-clk", "allwinner, sun6i-a31-pll6-clk"
^ Drop this extra space
And you're still not documenting what outputs you might have on pll6,
and what the extra argument correspond to.
Sorry. Missed that part.
ChenYu