aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2012-11-17 09:22:26 -0500
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-11-20 08:43:24 -0500
commitf97d0d7aa8f8cec29a24d65afa12a777c6d2a2f1 (patch)
tree96b8ae53f370882f4e399f9da657e78eb388a505 /Documentation
parentab8ba01b3fe5e0b81bd2da0afe66f7f6968e017b (diff)
clk: mvebu: add clock gating control provider for DT
This driver allows to provide DT clocks for clock gates found on Marvell Dove and Kirkwood SoCs. The clock gates are referenced by the phandle index of the corresponding bit in the clock gating control register to ease lookup in the datasheet. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/clock/mvebu-gated-clock.txt76
1 files changed, 76 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/clock/mvebu-gated-clock.txt b/Documentation/devicetree/bindings/clock/mvebu-gated-clock.txt
new file mode 100644
index 000000000000..4ad8ccd15e67
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/mvebu-gated-clock.txt
@@ -0,0 +1,76 @@
1* Gated Clock bindings for Marvell Orion SoCs
2
3Marvell Dove and Kirkwood allow some peripheral clocks to be gated to save
4some power. The clock consumer should specify the desired clock by having
5the clock ID in its "clocks" phandle cell. The clock ID is directly mapped to
6the corresponding clock gating control bit in HW to ease manual clock lookup
7in datasheet.
8
9The following is a list of provided IDs for Dove:
10ID Clock Peripheral
11-----------------------------------
120 usb0 USB Host 0
131 usb1 USB Host 1
142 ge Gigabit Ethernet
153 sata SATA Host
164 pex0 PCIe Cntrl 0
175 pex1 PCIe Cntrl 1
188 sdio0 SDHCI Host 0
199 sdio1 SDHCI Host 1
2010 nand NAND Cntrl
2111 camera Camera Cntrl
2212 i2s0 I2S Cntrl 0
2313 i2s1 I2S Cntrl 1
2415 crypto CESA engine
2521 ac97 AC97 Cntrl
2622 pdma Peripheral DMA
2723 xor0 XOR DMA 0
2824 xor1 XOR DMA 1
2930 gephy Gigabit Ethernel PHY
30Note: gephy(30) is implemented as a parent clock of ge(2)
31
32The following is a list of provided IDs for Kirkwood:
33ID Clock Peripheral
34-----------------------------------
350 ge0 Gigabit Ethernet 0
362 pex0 PCIe Cntrl 0
373 usb0 USB Host 0
384 sdio SDIO Cntrl
395 tsu Transp. Stream Unit
406 dunit SDRAM Cntrl
417 runit Runit
428 xor0 XOR DMA 0
439 audio I2S Cntrl 0
4414 sata0 SATA Host 0
4515 sata1 SATA Host 1
4616 xor1 XOR DMA 1
4717 crypto CESA engine
4818 pex1 PCIe Cntrl 1
4919 ge1 Gigabit Ethernet 0
5020 tdm Time Division Mplx
51
52Required properties:
53- compatible : shall be one of the following:
54 "marvell,dove-gating-clock" - for Dove SoC clock gating
55 "marvell,kirkwood-gating-clock" - for Kirkwood SoC clock gating
56- reg : shall be the register address of the Clock Gating Control register
57- #clock-cells : from common clock binding; shall be set to 1
58
59Optional properties:
60- clocks : default parent clock phandle (e.g. tclk)
61
62Example:
63
64gate_clk: clock-gating-control@d0038 {
65 compatible = "marvell,dove-gating-clock";
66 reg = <0xd0038 0x4>;
67 /* default parent clock is tclk */
68 clocks = <&core_clk 0>;
69 #clock-cells = <1>;
70};
71
72sdio0: sdio@92000 {
73 compatible = "marvell,dove-sdhci";
74 /* get clk gate bit 8 (sdio0) */
75 clocks = <&gate_clk 8>;
76};