206 lines · plain
1* Gated Clock bindings for Marvell EBU SoCs2 3Marvell Armada 370/375/380/385/39x/XP, Dove and Kirkwood allow some4peripheral clocks to be gated to save some power. The clock consumer5should specify the desired clock by having the clock ID in its6"clocks" phandle cell. The clock ID is directly mapped to the7corresponding clock gating control bit in HW to ease manual clock8lookup in datasheet.9 10The following is a list of provided IDs for Armada 370:11ID Clock Peripheral12-----------------------------------130 Audio AC97 Cntrl141 pex0_en PCIe 0 Clock out152 pex1_en PCIe 1 Clock out163 ge1 Gigabit Ethernet 1174 ge0 Gigabit Ethernet 0185 pex0 PCIe Cntrl 0199 pex1 PCIe Cntrl 12015 sata0 SATA Host 02117 sdio SDHCI Host2223 crypto CESA (crypto engine)2325 tdm Time Division Mplx2428 ddr DDR Cntrl2530 sata1 SATA Host 026 27The following is a list of provided IDs for Armada 375:28ID Clock Peripheral29-----------------------------------302 mu Management Unit313 pp Packet Processor324 ptp PTP335 pex0 PCIe 0 Clock out346 pex1 PCIe 1 Clock out358 audio Audio Cntrl3611 nd_clk Nand Flash Cntrl3714 sata0_link SATA 0 Link3815 sata0_core SATA 0 Core3916 usb3 USB3 Host4017 sdio SDHCI Host4118 usb USB Host4219 gop Gigabit Ethernet MAC4320 sata1_link SATA 1 Link4421 sata1_core SATA 1 Core4522 xor0 XOR DMA 04623 xor1 XOR DMA 04724 copro Coprocessor4825 tdm Time Division Mplx4928 crypto0_enc Cryptographic Unit Port 0 Encryption5029 crypto0_core Cryptographic Unit Port 0 Core5130 crypto1_enc Cryptographic Unit Port 1 Encryption5231 crypto1_core Cryptographic Unit Port 1 Core53 54The following is a list of provided IDs for Armada 380/385:55ID Clock Peripheral56-----------------------------------570 audio Audio582 ge2 Gigabit Ethernet 2593 ge1 Gigabit Ethernet 1604 ge0 Gigabit Ethernet 0615 pex1 PCIe 1626 pex2 PCIe 2637 pex3 PCIe 3648 pex0 PCIe 0659 usb3h0 USB3 Host 06610 usb3h1 USB3 Host 16711 usb3d USB3 Device6813 bm Buffer Management6914 crypto0z Cryptographic 0 Z7015 sata0 SATA 07116 crypto1z Cryptographic 1 Z7217 sdio SDIO7318 usb2 USB 27421 crypto1 Cryptographic 17522 xor0 XOR 07623 crypto0 Cryptographic 07725 tdm Time Division Multiplexing7828 xor1 XOR 17930 sata1 SATA 180 81The following is a list of provided IDs for Armada 39x:82ID Clock Peripheral83-----------------------------------845 pex1 PCIe 1856 pex2 PCIe 2867 pex3 PCIe 3878 pex0 PCIe 0889 usb3h0 USB3 Host 08910 usb3h1 USB3 Host 19015 sata0 SATA 09117 sdio SDIO9222 xor0 XOR 09328 xor1 XOR 194 95The following is a list of provided IDs for Armada XP:96ID Clock Peripheral97-----------------------------------980 audio Audio Cntrl991 ge3 Gigabit Ethernet 31002 ge2 Gigabit Ethernet 21013 ge1 Gigabit Ethernet 11024 ge0 Gigabit Ethernet 01035 pex0 PCIe Cntrl 01046 pex1 PCIe Cntrl 11057 pex2 PCIe Cntrl 21068 pex3 PCIe Cntrl 310713 bp10814 sata0lnk10915 sata0 SATA Host 011016 lcd LCD Cntrl11117 sdio SDHCI Host11218 usb0 USB Host 011319 usb1 USB Host 111420 usb2 USB Host 211522 xor0 XOR DMA 011623 crypto CESA engine11725 tdm Time Division Mplx11828 xor1 XOR DMA 111929 sata1lnk12030 sata1 SATA Host 1121 122The following is a list of provided IDs for 98dx3236:123ID Clock Peripheral124-----------------------------------1253 ge1 Gigabit Ethernet 11264 ge0 Gigabit Ethernet 01275 pex0 PCIe Cntrl 012817 sdio SDHCI Host12918 usb0 USB Host 013022 xor0 XOR DMA 0131 132The following is a list of provided IDs for Dove:133ID Clock Peripheral134-----------------------------------1350 usb0 USB Host 01361 usb1 USB Host 11372 ge Gigabit Ethernet1383 sata SATA Host1394 pex0 PCIe Cntrl 01405 pex1 PCIe Cntrl 11418 sdio0 SDHCI Host 01429 sdio1 SDHCI Host 114310 nand NAND Cntrl14411 camera Camera Cntrl14512 i2s0 I2S Cntrl 014613 i2s1 I2S Cntrl 114715 crypto CESA engine14821 ac97 AC97 Cntrl14922 pdma Peripheral DMA15023 xor0 XOR DMA 015124 xor1 XOR DMA 115230 gephy Gigabit Ethernel PHY153Note: gephy(30) is implemented as a parent clock of ge(2)154 155The following is a list of provided IDs for Kirkwood:156ID Clock Peripheral157-----------------------------------1580 ge0 Gigabit Ethernet 01592 pex0 PCIe Cntrl 01603 usb0 USB Host 01614 sdio SDIO Cntrl1625 tsu Transp. Stream Unit1636 dunit SDRAM Cntrl1647 runit Runit1658 xor0 XOR DMA 01669 audio I2S Cntrl 016714 sata0 SATA Host 016815 sata1 SATA Host 116916 xor1 XOR DMA 117017 crypto CESA engine17118 pex1 PCIe Cntrl 117219 ge1 Gigabit Ethernet 117320 tdm Time Division Mplx174 175Required properties:176- compatible : shall be one of the following:177 "marvell,armada-370-gating-clock" - for Armada 370 SoC clock gating178 "marvell,armada-375-gating-clock" - for Armada 375 SoC clock gating179 "marvell,armada-380-gating-clock" - for Armada 380/385 SoC clock gating180 "marvell,armada-390-gating-clock" - for Armada 39x SoC clock gating181 "marvell,armada-xp-gating-clock" - for Armada XP SoC clock gating182 "marvell,mv98dx3236-gating-clock" - for 98dx3236 SoC clock gating183 "marvell,dove-gating-clock" - for Dove SoC clock gating184 "marvell,kirkwood-gating-clock" - for Kirkwood SoC clock gating185- reg : shall be the register address of the Clock Gating Control register186- #clock-cells : from common clock binding; shall be set to 1187 188Optional properties:189- clocks : default parent clock phandle (e.g. tclk)190 191Example:192 193gate_clk: clock-gating-control@d0038 {194 compatible = "marvell,dove-gating-clock";195 reg = <0xd0038 0x4>;196 /* default parent clock is tclk */197 clocks = <&core_clk 0>;198 #clock-cells = <1>;199};200 201sdio0: sdio@92000 {202 compatible = "marvell,dove-sdhci";203 /* get clk gate bit 8 (sdio0) */204 clocks = <&gate_clk 8>;205};206