Sebastian Hesselbarth | f97d0d7 | 2012-11-17 15:22:26 +0100 | [diff] [blame^] | 1 | * Gated Clock bindings for Marvell Orion SoCs |
| 2 | |
| 3 | Marvell Dove and Kirkwood allow some peripheral clocks to be gated to save |
| 4 | some power. The clock consumer should specify the desired clock by having |
| 5 | the clock ID in its "clocks" phandle cell. The clock ID is directly mapped to |
| 6 | the corresponding clock gating control bit in HW to ease manual clock lookup |
| 7 | in datasheet. |
| 8 | |
| 9 | The following is a list of provided IDs for Dove: |
| 10 | ID Clock Peripheral |
| 11 | ----------------------------------- |
| 12 | 0 usb0 USB Host 0 |
| 13 | 1 usb1 USB Host 1 |
| 14 | 2 ge Gigabit Ethernet |
| 15 | 3 sata SATA Host |
| 16 | 4 pex0 PCIe Cntrl 0 |
| 17 | 5 pex1 PCIe Cntrl 1 |
| 18 | 8 sdio0 SDHCI Host 0 |
| 19 | 9 sdio1 SDHCI Host 1 |
| 20 | 10 nand NAND Cntrl |
| 21 | 11 camera Camera Cntrl |
| 22 | 12 i2s0 I2S Cntrl 0 |
| 23 | 13 i2s1 I2S Cntrl 1 |
| 24 | 15 crypto CESA engine |
| 25 | 21 ac97 AC97 Cntrl |
| 26 | 22 pdma Peripheral DMA |
| 27 | 23 xor0 XOR DMA 0 |
| 28 | 24 xor1 XOR DMA 1 |
| 29 | 30 gephy Gigabit Ethernel PHY |
| 30 | Note: gephy(30) is implemented as a parent clock of ge(2) |
| 31 | |
| 32 | The following is a list of provided IDs for Kirkwood: |
| 33 | ID Clock Peripheral |
| 34 | ----------------------------------- |
| 35 | 0 ge0 Gigabit Ethernet 0 |
| 36 | 2 pex0 PCIe Cntrl 0 |
| 37 | 3 usb0 USB Host 0 |
| 38 | 4 sdio SDIO Cntrl |
| 39 | 5 tsu Transp. Stream Unit |
| 40 | 6 dunit SDRAM Cntrl |
| 41 | 7 runit Runit |
| 42 | 8 xor0 XOR DMA 0 |
| 43 | 9 audio I2S Cntrl 0 |
| 44 | 14 sata0 SATA Host 0 |
| 45 | 15 sata1 SATA Host 1 |
| 46 | 16 xor1 XOR DMA 1 |
| 47 | 17 crypto CESA engine |
| 48 | 18 pex1 PCIe Cntrl 1 |
| 49 | 19 ge1 Gigabit Ethernet 0 |
| 50 | 20 tdm Time Division Mplx |
| 51 | |
| 52 | Required 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 | |
| 59 | Optional properties: |
| 60 | - clocks : default parent clock phandle (e.g. tclk) |
| 61 | |
| 62 | Example: |
| 63 | |
| 64 | gate_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 | |
| 72 | sdio0: sdio@92000 { |
| 73 | compatible = "marvell,dove-sdhci"; |
| 74 | /* get clk gate bit 8 (sdio0) */ |
| 75 | clocks = <&gate_clk 8>; |
| 76 | }; |