diff options
author | Chen-Yu Tsai <wens@csie.org> | 2014-02-10 05:35:47 -0500 |
---|---|---|
committer | Emilio López <emilio@elopez.com.ar> | 2014-02-18 08:34:28 -0500 |
commit | e4c6d6c11bee5ff11feb837a0a76103b3eba252f (patch) | |
tree | de46fbc31e9fa56f85dcf2182a44d383fc7176da /Documentation/devicetree/bindings/clock | |
parent | 92ef67c53ad92487c3c8de75e7940384c2edd793 (diff) |
clk: sunxi: Add Allwinner A20/A31 GMAC clock unit
The Allwinner A20/A31 clock module controls the transmit clock source
and interface type of the GMAC ethernet controller. Model this as
a single clock for GMAC drivers to use.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Emilio López <emilio@elopez.com.ar>
Diffstat (limited to 'Documentation/devicetree/bindings/clock')
-rw-r--r-- | Documentation/devicetree/bindings/clock/sunxi.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/clock/sunxi.txt b/Documentation/devicetree/bindings/clock/sunxi.txt index c37c764cbbc5..256a9089f677 100644 --- a/Documentation/devicetree/bindings/clock/sunxi.txt +++ b/Documentation/devicetree/bindings/clock/sunxi.txt | |||
@@ -38,6 +38,7 @@ Required properties: | |||
38 | "allwinner,sun6i-a31-apb2-gates-clk" - for the APB2 gates on A31 | 38 | "allwinner,sun6i-a31-apb2-gates-clk" - for the APB2 gates on A31 |
39 | "allwinner,sun4i-mod0-clk" - for the module 0 family of clocks | 39 | "allwinner,sun4i-mod0-clk" - for the module 0 family of clocks |
40 | "allwinner,sun7i-a20-out-clk" - for the external output clocks | 40 | "allwinner,sun7i-a20-out-clk" - for the external output clocks |
41 | "allwinner,sun7i-a20-gmac-clk" - for the GMAC clock module on A20/A31 | ||
41 | "allwinner,sun4i-a10-usb-clk" - for usb gates + resets on A10 / A20 | 42 | "allwinner,sun4i-a10-usb-clk" - for usb gates + resets on A10 / A20 |
42 | "allwinner,sun5i-a13-usb-clk" - for usb gates + resets on A13 | 43 | "allwinner,sun5i-a13-usb-clk" - for usb gates + resets on A13 |
43 | 44 | ||
@@ -56,6 +57,9 @@ Required properties for all clocks: | |||
56 | And "allwinner,*-usb-clk" clocks also require: | 57 | And "allwinner,*-usb-clk" clocks also require: |
57 | - reset-cells : shall be set to 1 | 58 | - reset-cells : shall be set to 1 |
58 | 59 | ||
60 | For "allwinner,sun7i-a20-gmac-clk", the parent clocks shall be fixed rate | ||
61 | dummy clocks at 25 MHz and 125 MHz, respectively. See example. | ||
62 | |||
59 | Clock consumers should specify the desired clocks they use with a | 63 | Clock consumers should specify the desired clocks they use with a |
60 | "clocks" phandle cell. Consumers that are using a gated clock should | 64 | "clocks" phandle cell. Consumers that are using a gated clock should |
61 | provide an additional ID in their clock property. This ID is the | 65 | provide an additional ID in their clock property. This ID is the |
@@ -102,3 +106,29 @@ mmc0_clk: clk@01c20088 { | |||
102 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; | 106 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; |
103 | clock-output-names = "mmc0"; | 107 | clock-output-names = "mmc0"; |
104 | }; | 108 | }; |
109 | |||
110 | mii_phy_tx_clk: clk@2 { | ||
111 | #clock-cells = <0>; | ||
112 | compatible = "fixed-clock"; | ||
113 | clock-frequency = <25000000>; | ||
114 | clock-output-names = "mii_phy_tx"; | ||
115 | }; | ||
116 | |||
117 | gmac_int_tx_clk: clk@3 { | ||
118 | #clock-cells = <0>; | ||
119 | compatible = "fixed-clock"; | ||
120 | clock-frequency = <125000000>; | ||
121 | clock-output-names = "gmac_int_tx"; | ||
122 | }; | ||
123 | |||
124 | gmac_clk: clk@01c20164 { | ||
125 | #clock-cells = <0>; | ||
126 | compatible = "allwinner,sun7i-a20-gmac-clk"; | ||
127 | reg = <0x01c20164 0x4>; | ||
128 | /* | ||
129 | * The first clock must be fixed at 25MHz; | ||
130 | * the second clock must be fixed at 125MHz | ||
131 | */ | ||
132 | clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>; | ||
133 | clock-output-names = "gmac"; | ||
134 | }; | ||