aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2014-12-07 11:43:04 -0500
committerMaxime Ripard <maxime.ripard@free-electrons.com>2015-01-14 04:39:16 -0500
commit6b0b8ccff002414fab08a080c7a8a6ee3db22c0d (patch)
tree608d0cc1f59c46ae0f6afbe88eb0d368a88a606d /Documentation
parent3ec72fabcc6f4f5c786c50e08b59e1251d0fdfeb (diff)
clk: sunxi: Rework MMC phase clocks
Instead of having three different clocks for the main MMC clock and the two phase sub-clocks, which involved having three different drivers sharing the same register, rework it to have the same single driver registering three different clocks. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by: Chen-Yu Tsai <wens@csie.org> Tested-by: Chen-Yu Tsai <wens@csie.org> Acked-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/clock/sunxi.txt13
1 files changed, 8 insertions, 5 deletions
diff --git a/Documentation/devicetree/bindings/clock/sunxi.txt b/Documentation/devicetree/bindings/clock/sunxi.txt
index 9dc4f55a04ad..e4c42276c577 100644
--- a/Documentation/devicetree/bindings/clock/sunxi.txt
+++ b/Documentation/devicetree/bindings/clock/sunxi.txt
@@ -55,8 +55,7 @@ Required properties:
55 "allwinner,sun6i-a31-apb2-gates-clk" - for the APB2 gates on A31 55 "allwinner,sun6i-a31-apb2-gates-clk" - for the APB2 gates on A31
56 "allwinner,sun8i-a23-apb2-gates-clk" - for the APB2 gates on A23 56 "allwinner,sun8i-a23-apb2-gates-clk" - for the APB2 gates on A23
57 "allwinner,sun5i-a13-mbus-clk" - for the MBUS clock on A13 57 "allwinner,sun5i-a13-mbus-clk" - for the MBUS clock on A13
58 "allwinner,sun4i-a10-mmc-output-clk" - for the MMC output clock on A10 58 "allwinner,sun4i-a10-mmc-clk" - for the MMC clock
59 "allwinner,sun4i-a10-mmc-sample-clk" - for the MMC sample clock on A10
60 "allwinner,sun4i-a10-mod0-clk" - for the module 0 family of clocks 59 "allwinner,sun4i-a10-mod0-clk" - for the module 0 family of clocks
61 "allwinner,sun8i-a23-mbus-clk" - for the MBUS clock on A23 60 "allwinner,sun8i-a23-mbus-clk" - for the MBUS clock on A23
62 "allwinner,sun7i-a20-out-clk" - for the external output clocks 61 "allwinner,sun7i-a20-out-clk" - for the external output clocks
@@ -95,6 +94,10 @@ For "allwinner,sun6i-a31-pll6-clk", there are 2 outputs. The first output
95is the normal PLL6 output, or "pll6". The second output is rate doubled 94is the normal PLL6 output, or "pll6". The second output is rate doubled
96PLL6, or "pll6x2". 95PLL6, or "pll6x2".
97 96
97The "allwinner,sun4i-a10-mmc-clk" has three different outputs: the
98main clock, with the ID 0, and the output and sample clocks, with the
99IDs 1 and 2, respectively.
100
98For example: 101For example:
99 102
100osc24M: clk@01c20050 { 103osc24M: clk@01c20050 {
@@ -138,11 +141,11 @@ cpu: cpu@01c20054 {
138}; 141};
139 142
140mmc0_clk: clk@01c20088 { 143mmc0_clk: clk@01c20088 {
141 #clock-cells = <0>; 144 #clock-cells = <1>;
142 compatible = "allwinner,sun4i-mod0-clk"; 145 compatible = "allwinner,sun4i-a10-mmc-clk";
143 reg = <0x01c20088 0x4>; 146 reg = <0x01c20088 0x4>;
144 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; 147 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
145 clock-output-names = "mmc0"; 148 clock-output-names = "mmc0", "mmc0_output", "mmc0_sample";
146}; 149};
147 150
148mii_phy_tx_clk: clk@2 { 151mii_phy_tx_clk: clk@2 {