blob: 4ad8ccd15e67e373803a751afcd7ce7d8910fa42 [file] [log] [blame]
Sebastian Hesselbarthf97d0d72012-11-17 15:22:26 +01001* 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};