diff options
author | Boris BREZILLON <boris.brezillon@free-electrons.com> | 2014-04-22 09:12:31 -0400 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2014-05-07 12:27:44 -0400 |
commit | f9e1716f919f1bce2749a3ec15f34759ded0a56d (patch) | |
tree | adc4c12ae1a50d8884370cbb1e4f2ffd293be966 | |
parent | 27cb1c2083373a44130d50d4d2fb64cf7eff2d90 (diff) |
clk: at91: update main clk documentation
Update main clk documentation to match main clk implementation rework.
Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com>
Acked-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
-rw-r--r-- | Documentation/devicetree/bindings/clock/at91-clock.txt | 56 |
1 files changed, 47 insertions, 9 deletions
diff --git a/Documentation/devicetree/bindings/clock/at91-clock.txt b/Documentation/devicetree/bindings/clock/at91-clock.txt index cd5e23912888..26d2c8408064 100644 --- a/Documentation/devicetree/bindings/clock/at91-clock.txt +++ b/Documentation/devicetree/bindings/clock/at91-clock.txt | |||
@@ -15,8 +15,13 @@ Required properties: | |||
15 | All at91 specific clocks (clocks defined below) must be child | 15 | All at91 specific clocks (clocks defined below) must be child |
16 | node of the PMC node. | 16 | node of the PMC node. |
17 | 17 | ||
18 | "atmel,at91rm9200-clk-main-osc" | ||
19 | "atmel,at91sam9x5-clk-main-rc-osc" | ||
20 | at91 main clk sources | ||
21 | |||
22 | "atmel,at91sam9x5-clk-main" | ||
18 | "atmel,at91rm9200-clk-main": | 23 | "atmel,at91rm9200-clk-main": |
19 | at91 main oscillator | 24 | at91 main clock |
20 | 25 | ||
21 | "atmel,at91rm9200-clk-master" or | 26 | "atmel,at91rm9200-clk-master" or |
22 | "atmel,at91sam9x5-clk-master": | 27 | "atmel,at91sam9x5-clk-master": |
@@ -85,24 +90,57 @@ For example: | |||
85 | /* put at91 clocks here */ | 90 | /* put at91 clocks here */ |
86 | }; | 91 | }; |
87 | 92 | ||
93 | Required properties for main clock internal RC oscillator: | ||
94 | - interrupt-parent : must reference the PMC node. | ||
95 | - interrupts : shall be set to "<0>". | ||
96 | - clock-frequency : define the internal RC oscillator frequency. | ||
97 | |||
98 | Optional properties: | ||
99 | - clock-accuracy : define the internal RC oscillator accuracy. | ||
100 | |||
101 | For example: | ||
102 | main_rc_osc: main_rc_osc { | ||
103 | compatible = "atmel,at91sam9x5-clk-main-rc-osc"; | ||
104 | interrupt-parent = <&pmc>; | ||
105 | interrupts = <0>; | ||
106 | clock-frequency = <12000000>; | ||
107 | clock-accuracy = <50000000>; | ||
108 | }; | ||
109 | |||
110 | Required properties for main clock oscillator: | ||
111 | - interrupt-parent : must reference the PMC node. | ||
112 | - interrupts : shall be set to "<0>". | ||
113 | - #clock-cells : from common clock binding; shall be set to 0. | ||
114 | - clocks : shall encode the main osc source clk sources (see atmel datasheet). | ||
115 | |||
116 | Optional properties: | ||
117 | - atmel,osc-bypass : boolean property. Specified if a clock signal is provided | ||
118 | on XIN. | ||
119 | |||
120 | clock signal is directly provided on XIN pin. | ||
121 | |||
122 | For example: | ||
123 | main_osc: main_osc { | ||
124 | compatible = "atmel,at91rm9200-clk-main-osc"; | ||
125 | interrupt-parent = <&pmc>; | ||
126 | interrupts = <0>; | ||
127 | #clock-cells = <0>; | ||
128 | clocks = <&main_xtal>; | ||
129 | }; | ||
130 | |||
88 | Required properties for main clock: | 131 | Required properties for main clock: |
89 | - interrupt-parent : must reference the PMC node. | 132 | - interrupt-parent : must reference the PMC node. |
90 | - interrupts : shall be set to "<0>". | 133 | - interrupts : shall be set to "<0>". |
91 | - #clock-cells : from common clock binding; shall be set to 0. | 134 | - #clock-cells : from common clock binding; shall be set to 0. |
92 | - clocks (optional if clock-frequency is provided) : shall be the slow clock | 135 | - clocks : shall encode the main clk sources (see atmel datasheet). |
93 | phandle. This clock is used to calculate the main clock rate if | ||
94 | "clock-frequency" is not provided. | ||
95 | - clock-frequency : the main oscillator frequency.Prefer the use of | ||
96 | "clock-frequency" over automatic clock rate calculation. | ||
97 | 136 | ||
98 | For example: | 137 | For example: |
99 | main: mainck { | 138 | main: mainck { |
100 | compatible = "atmel,at91rm9200-clk-main"; | 139 | compatible = "atmel,at91sam9x5-clk-main"; |
101 | interrupt-parent = <&pmc>; | 140 | interrupt-parent = <&pmc>; |
102 | interrupts = <0>; | 141 | interrupts = <0>; |
103 | #clock-cells = <0>; | 142 | #clock-cells = <0>; |
104 | clocks = <&ck32k>; | 143 | clocks = <&main_rc_osc &main_osc>; |
105 | clock-frequency = <18432000>; | ||
106 | }; | 144 | }; |
107 | 145 | ||
108 | Required properties for master clock: | 146 | Required properties for master clock: |