1 * Gated Clock bindings for Marvell EBU SoCs 1 * Gated Clock bindings for Marvell EBU SoCs 2 2 3 Marvell Armada 370/375/380/385/39x/XP, Dove an 3 Marvell Armada 370/375/380/385/39x/XP, Dove and Kirkwood allow some 4 peripheral clocks to be gated to save some pow 4 peripheral clocks to be gated to save some power. The clock consumer 5 should specify the desired clock by having the 5 should specify the desired clock by having the clock ID in its 6 "clocks" phandle cell. The clock ID is directl 6 "clocks" phandle cell. The clock ID is directly mapped to the 7 corresponding clock gating control bit in HW t 7 corresponding clock gating control bit in HW to ease manual clock 8 lookup in datasheet. 8 lookup in datasheet. 9 9 10 The following is a list of provided IDs for Ar 10 The following is a list of provided IDs for Armada 370: 11 ID Clock Peripheral 11 ID Clock Peripheral 12 ----------------------------------- 12 ----------------------------------- 13 0 Audio AC97 Cntrl 13 0 Audio AC97 Cntrl 14 1 pex0_en PCIe 0 Clock out 14 1 pex0_en PCIe 0 Clock out 15 2 pex1_en PCIe 1 Clock out 15 2 pex1_en PCIe 1 Clock out 16 3 ge1 Gigabit Ethernet 1 16 3 ge1 Gigabit Ethernet 1 17 4 ge0 Gigabit Ethernet 0 17 4 ge0 Gigabit Ethernet 0 18 5 pex0 PCIe Cntrl 0 18 5 pex0 PCIe Cntrl 0 19 9 pex1 PCIe Cntrl 1 19 9 pex1 PCIe Cntrl 1 20 15 sata0 SATA Host 0 20 15 sata0 SATA Host 0 21 17 sdio SDHCI Host 21 17 sdio SDHCI Host 22 23 crypto CESA (crypto engine) 22 23 crypto CESA (crypto engine) 23 25 tdm Time Division Mplx 23 25 tdm Time Division Mplx 24 28 ddr DDR Cntrl 24 28 ddr DDR Cntrl 25 30 sata1 SATA Host 0 25 30 sata1 SATA Host 0 26 26 27 The following is a list of provided IDs for Ar 27 The following is a list of provided IDs for Armada 375: 28 ID Clock Peripheral 28 ID Clock Peripheral 29 ----------------------------------- 29 ----------------------------------- 30 2 mu Management Unit 30 2 mu Management Unit 31 3 pp Packet Processor 31 3 pp Packet Processor 32 4 ptp PTP 32 4 ptp PTP 33 5 pex0 PCIe 0 Clock out 33 5 pex0 PCIe 0 Clock out 34 6 pex1 PCIe 1 Clock out 34 6 pex1 PCIe 1 Clock out 35 8 audio Audio Cntrl 35 8 audio Audio Cntrl 36 11 nd_clk Nand Flash Cntrl 36 11 nd_clk Nand Flash Cntrl 37 14 sata0_link SATA 0 Link 37 14 sata0_link SATA 0 Link 38 15 sata0_core SATA 0 Core 38 15 sata0_core SATA 0 Core 39 16 usb3 USB3 Host 39 16 usb3 USB3 Host 40 17 sdio SDHCI Host 40 17 sdio SDHCI Host 41 18 usb USB Host 41 18 usb USB Host 42 19 gop Gigabit Ethernet MAC 42 19 gop Gigabit Ethernet MAC 43 20 sata1_link SATA 1 Link 43 20 sata1_link SATA 1 Link 44 21 sata1_core SATA 1 Core 44 21 sata1_core SATA 1 Core 45 22 xor0 XOR DMA 0 45 22 xor0 XOR DMA 0 46 23 xor1 XOR DMA 0 46 23 xor1 XOR DMA 0 47 24 copro Coprocessor 47 24 copro Coprocessor 48 25 tdm Time Division Mplx 48 25 tdm Time Division Mplx 49 28 crypto0_enc Cryptographic Unit Por 49 28 crypto0_enc Cryptographic Unit Port 0 Encryption 50 29 crypto0_core Cryptographic Unit Por 50 29 crypto0_core Cryptographic Unit Port 0 Core 51 30 crypto1_enc Cryptographic Unit Por 51 30 crypto1_enc Cryptographic Unit Port 1 Encryption 52 31 crypto1_core Cryptographic Unit Por 52 31 crypto1_core Cryptographic Unit Port 1 Core 53 53 54 The following is a list of provided IDs for Ar 54 The following is a list of provided IDs for Armada 380/385: 55 ID Clock Peripheral 55 ID Clock Peripheral 56 ----------------------------------- 56 ----------------------------------- 57 0 audio Audio 57 0 audio Audio 58 2 ge2 Gigabit Ethernet 2 58 2 ge2 Gigabit Ethernet 2 59 3 ge1 Gigabit Ethernet 1 59 3 ge1 Gigabit Ethernet 1 60 4 ge0 Gigabit Ethernet 0 60 4 ge0 Gigabit Ethernet 0 61 5 pex1 PCIe 1 61 5 pex1 PCIe 1 62 6 pex2 PCIe 2 62 6 pex2 PCIe 2 63 7 pex3 PCIe 3 63 7 pex3 PCIe 3 64 8 pex0 PCIe 0 64 8 pex0 PCIe 0 65 9 usb3h0 USB3 Host 0 65 9 usb3h0 USB3 Host 0 66 10 usb3h1 USB3 Host 1 66 10 usb3h1 USB3 Host 1 67 11 usb3d USB3 Device 67 11 usb3d USB3 Device 68 13 bm Buffer Management 68 13 bm Buffer Management 69 14 crypto0z Cryptographic 0 Z 69 14 crypto0z Cryptographic 0 Z 70 15 sata0 SATA 0 70 15 sata0 SATA 0 71 16 crypto1z Cryptographic 1 Z 71 16 crypto1z Cryptographic 1 Z 72 17 sdio SDIO 72 17 sdio SDIO 73 18 usb2 USB 2 73 18 usb2 USB 2 74 21 crypto1 Cryptographic 1 74 21 crypto1 Cryptographic 1 75 22 xor0 XOR 0 75 22 xor0 XOR 0 76 23 crypto0 Cryptographic 0 76 23 crypto0 Cryptographic 0 77 25 tdm Time Division Multiple 77 25 tdm Time Division Multiplexing 78 28 xor1 XOR 1 78 28 xor1 XOR 1 79 30 sata1 SATA 1 79 30 sata1 SATA 1 80 80 81 The following is a list of provided IDs for Ar 81 The following is a list of provided IDs for Armada 39x: 82 ID Clock Peripheral 82 ID Clock Peripheral 83 ----------------------------------- 83 ----------------------------------- 84 5 pex1 PCIe 1 84 5 pex1 PCIe 1 85 6 pex2 PCIe 2 85 6 pex2 PCIe 2 86 7 pex3 PCIe 3 86 7 pex3 PCIe 3 87 8 pex0 PCIe 0 87 8 pex0 PCIe 0 88 9 usb3h0 USB3 Host 0 88 9 usb3h0 USB3 Host 0 89 10 usb3h1 USB3 Host 1 89 10 usb3h1 USB3 Host 1 90 15 sata0 SATA 0 90 15 sata0 SATA 0 91 17 sdio SDIO 91 17 sdio SDIO 92 22 xor0 XOR 0 92 22 xor0 XOR 0 93 28 xor1 XOR 1 93 28 xor1 XOR 1 94 94 95 The following is a list of provided IDs for Ar 95 The following is a list of provided IDs for Armada XP: 96 ID Clock Peripheral 96 ID Clock Peripheral 97 ----------------------------------- 97 ----------------------------------- 98 0 audio Audio Cntrl 98 0 audio Audio Cntrl 99 1 ge3 Gigabit Ethernet 3 99 1 ge3 Gigabit Ethernet 3 100 2 ge2 Gigabit Ethernet 2 100 2 ge2 Gigabit Ethernet 2 101 3 ge1 Gigabit Ethernet 1 101 3 ge1 Gigabit Ethernet 1 102 4 ge0 Gigabit Ethernet 0 102 4 ge0 Gigabit Ethernet 0 103 5 pex0 PCIe Cntrl 0 103 5 pex0 PCIe Cntrl 0 104 6 pex1 PCIe Cntrl 1 104 6 pex1 PCIe Cntrl 1 105 7 pex2 PCIe Cntrl 2 105 7 pex2 PCIe Cntrl 2 106 8 pex3 PCIe Cntrl 3 106 8 pex3 PCIe Cntrl 3 107 13 bp 107 13 bp 108 14 sata0lnk 108 14 sata0lnk 109 15 sata0 SATA Host 0 109 15 sata0 SATA Host 0 110 16 lcd LCD Cntrl 110 16 lcd LCD Cntrl 111 17 sdio SDHCI Host 111 17 sdio SDHCI Host 112 18 usb0 USB Host 0 112 18 usb0 USB Host 0 113 19 usb1 USB Host 1 113 19 usb1 USB Host 1 114 20 usb2 USB Host 2 114 20 usb2 USB Host 2 115 22 xor0 XOR DMA 0 115 22 xor0 XOR DMA 0 116 23 crypto CESA engine 116 23 crypto CESA engine 117 25 tdm Time Division Mplx 117 25 tdm Time Division Mplx 118 28 xor1 XOR DMA 1 118 28 xor1 XOR DMA 1 119 29 sata1lnk 119 29 sata1lnk 120 30 sata1 SATA Host 1 120 30 sata1 SATA Host 1 121 121 122 The following is a list of provided IDs for 98 122 The following is a list of provided IDs for 98dx3236: 123 ID Clock Peripheral 123 ID Clock Peripheral 124 ----------------------------------- 124 ----------------------------------- 125 3 ge1 Gigabit Ethernet 1 125 3 ge1 Gigabit Ethernet 1 126 4 ge0 Gigabit Ethernet 0 126 4 ge0 Gigabit Ethernet 0 127 5 pex0 PCIe Cntrl 0 127 5 pex0 PCIe Cntrl 0 128 17 sdio SDHCI Host 128 17 sdio SDHCI Host 129 18 usb0 USB Host 0 129 18 usb0 USB Host 0 130 22 xor0 XOR DMA 0 130 22 xor0 XOR DMA 0 131 131 132 The following is a list of provided IDs for Do 132 The following is a list of provided IDs for Dove: 133 ID Clock Peripheral 133 ID Clock Peripheral 134 ----------------------------------- 134 ----------------------------------- 135 0 usb0 USB Host 0 135 0 usb0 USB Host 0 136 1 usb1 USB Host 1 136 1 usb1 USB Host 1 137 2 ge Gigabit Ethernet 137 2 ge Gigabit Ethernet 138 3 sata SATA Host 138 3 sata SATA Host 139 4 pex0 PCIe Cntrl 0 139 4 pex0 PCIe Cntrl 0 140 5 pex1 PCIe Cntrl 1 140 5 pex1 PCIe Cntrl 1 141 8 sdio0 SDHCI Host 0 141 8 sdio0 SDHCI Host 0 142 9 sdio1 SDHCI Host 1 142 9 sdio1 SDHCI Host 1 143 10 nand NAND Cntrl 143 10 nand NAND Cntrl 144 11 camera Camera Cntrl 144 11 camera Camera Cntrl 145 12 i2s0 I2S Cntrl 0 145 12 i2s0 I2S Cntrl 0 146 13 i2s1 I2S Cntrl 1 146 13 i2s1 I2S Cntrl 1 147 15 crypto CESA engine 147 15 crypto CESA engine 148 21 ac97 AC97 Cntrl 148 21 ac97 AC97 Cntrl 149 22 pdma Peripheral DMA 149 22 pdma Peripheral DMA 150 23 xor0 XOR DMA 0 150 23 xor0 XOR DMA 0 151 24 xor1 XOR DMA 1 151 24 xor1 XOR DMA 1 152 30 gephy Gigabit Ethernel PHY 152 30 gephy Gigabit Ethernel PHY 153 Note: gephy(30) is implemented as a parent clo 153 Note: gephy(30) is implemented as a parent clock of ge(2) 154 154 155 The following is a list of provided IDs for Ki 155 The following is a list of provided IDs for Kirkwood: 156 ID Clock Peripheral 156 ID Clock Peripheral 157 ----------------------------------- 157 ----------------------------------- 158 0 ge0 Gigabit Ethernet 0 158 0 ge0 Gigabit Ethernet 0 159 2 pex0 PCIe Cntrl 0 159 2 pex0 PCIe Cntrl 0 160 3 usb0 USB Host 0 160 3 usb0 USB Host 0 161 4 sdio SDIO Cntrl 161 4 sdio SDIO Cntrl 162 5 tsu Transp. Stream Unit 162 5 tsu Transp. Stream Unit 163 6 dunit SDRAM Cntrl 163 6 dunit SDRAM Cntrl 164 7 runit Runit 164 7 runit Runit 165 8 xor0 XOR DMA 0 165 8 xor0 XOR DMA 0 166 9 audio I2S Cntrl 0 166 9 audio I2S Cntrl 0 167 14 sata0 SATA Host 0 167 14 sata0 SATA Host 0 168 15 sata1 SATA Host 1 168 15 sata1 SATA Host 1 169 16 xor1 XOR DMA 1 169 16 xor1 XOR DMA 1 170 17 crypto CESA engine 170 17 crypto CESA engine 171 18 pex1 PCIe Cntrl 1 171 18 pex1 PCIe Cntrl 1 172 19 ge1 Gigabit Ethernet 1 172 19 ge1 Gigabit Ethernet 1 173 20 tdm Time Division Mplx 173 20 tdm Time Division Mplx 174 174 175 Required properties: 175 Required properties: 176 - compatible : shall be one of the following: 176 - compatible : shall be one of the following: 177 "marvell,armada-370-gating-clock" - fo 177 "marvell,armada-370-gating-clock" - for Armada 370 SoC clock gating 178 "marvell,armada-375-gating-clock" - fo 178 "marvell,armada-375-gating-clock" - for Armada 375 SoC clock gating 179 "marvell,armada-380-gating-clock" - fo 179 "marvell,armada-380-gating-clock" - for Armada 380/385 SoC clock gating 180 "marvell,armada-390-gating-clock" - fo 180 "marvell,armada-390-gating-clock" - for Armada 39x SoC clock gating 181 "marvell,armada-xp-gating-clock" - for 181 "marvell,armada-xp-gating-clock" - for Armada XP SoC clock gating 182 "marvell,mv98dx3236-gating-clock" - fo 182 "marvell,mv98dx3236-gating-clock" - for 98dx3236 SoC clock gating 183 "marvell,dove-gating-clock" - for Dove 183 "marvell,dove-gating-clock" - for Dove SoC clock gating 184 "marvell,kirkwood-gating-clock" - for 184 "marvell,kirkwood-gating-clock" - for Kirkwood SoC clock gating 185 - reg : shall be the register address of the C 185 - reg : shall be the register address of the Clock Gating Control register 186 - #clock-cells : from common clock binding; sh 186 - #clock-cells : from common clock binding; shall be set to 1 187 187 188 Optional properties: 188 Optional properties: 189 - clocks : default parent clock phandle (e.g. 189 - clocks : default parent clock phandle (e.g. tclk) 190 190 191 Example: 191 Example: 192 192 193 gate_clk: clock-gating-control@d0038 { 193 gate_clk: clock-gating-control@d0038 { 194 compatible = "marvell,dove-gating-cloc 194 compatible = "marvell,dove-gating-clock"; 195 reg = <0xd0038 0x4>; 195 reg = <0xd0038 0x4>; 196 /* default parent clock is tclk */ 196 /* default parent clock is tclk */ 197 clocks = <&core_clk 0>; 197 clocks = <&core_clk 0>; 198 #clock-cells = <1>; 198 #clock-cells = <1>; 199 }; 199 }; 200 200 201 sdio0: sdio@92000 { 201 sdio0: sdio@92000 { 202 compatible = "marvell,dove-sdhci"; 202 compatible = "marvell,dove-sdhci"; 203 /* get clk gate bit 8 (sdio0) */ 203 /* get clk gate bit 8 (sdio0) */ 204 clocks = <&gate_clk 8>; 204 clocks = <&gate_clk 8>; 205 }; 205 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.