mvebu-core-clock.txt 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. * Core Clock bindings for Marvell MVEBU SoCs
  2. Marvell MVEBU SoCs usually allow to determine core clock frequencies by
  3. reading the Sample-At-Reset (SAR) register. The core clock consumer should
  4. specify the desired clock by having the clock ID in its "clocks" phandle cell.
  5. The following is a list of provided IDs and clock names on Armada 370/XP:
  6. 0 = tclk (Internal Bus clock)
  7. 1 = cpuclk (CPU clock)
  8. 2 = nbclk (L2 Cache clock)
  9. 3 = hclk (DRAM control clock)
  10. 4 = dramclk (DDR clock)
  11. The following is a list of provided IDs and clock names on Armada 375:
  12. 0 = tclk (Internal Bus clock)
  13. 1 = cpuclk (CPU clock)
  14. 2 = l2clk (L2 Cache clock)
  15. 3 = ddrclk (DDR clock)
  16. The following is a list of provided IDs and clock names on Armada 380/385:
  17. 0 = tclk (Internal Bus clock)
  18. 1 = cpuclk (CPU clock)
  19. 2 = l2clk (L2 Cache clock)
  20. 3 = ddrclk (DDR clock)
  21. The following is a list of provided IDs and clock names on Kirkwood and Dove:
  22. 0 = tclk (Internal Bus clock)
  23. 1 = cpuclk (CPU0 clock)
  24. 2 = l2clk (L2 Cache clock derived from CPU0 clock)
  25. 3 = ddrclk (DDR controller clock derived from CPU0 clock)
  26. The following is a list of provided IDs and clock names on Orion5x:
  27. 0 = tclk (Internal Bus clock)
  28. 1 = cpuclk (CPU0 clock)
  29. 2 = ddrclk (DDR controller clock derived from CPU0 clock)
  30. Required properties:
  31. - compatible : shall be one of the following:
  32. "marvell,armada-370-core-clock" - For Armada 370 SoC core clocks
  33. "marvell,armada-375-core-clock" - For Armada 375 SoC core clocks
  34. "marvell,armada-380-core-clock" - For Armada 380/385 SoC core clocks
  35. "marvell,armada-xp-core-clock" - For Armada XP SoC core clocks
  36. "marvell,dove-core-clock" - for Dove SoC core clocks
  37. "marvell,kirkwood-core-clock" - for Kirkwood SoC (except mv88f6180)
  38. "marvell,mv88f6180-core-clock" - for Kirkwood MV88f6180 SoC
  39. "marvell,mv88f5182-core-clock" - for Orion MV88F5182 SoC
  40. "marvell,mv88f5281-core-clock" - for Orion MV88F5281 SoC
  41. "marvell,mv88f6183-core-clock" - for Orion MV88F6183 SoC
  42. - reg : shall be the register address of the Sample-At-Reset (SAR) register
  43. - #clock-cells : from common clock binding; shall be set to 1
  44. Optional properties:
  45. - clock-output-names : from common clock binding; allows overwrite default clock
  46. output names ("tclk", "cpuclk", "l2clk", "ddrclk")
  47. Example:
  48. core_clk: core-clocks@d0214 {
  49. compatible = "marvell,dove-core-clock";
  50. reg = <0xd0214 0x4>;
  51. #clock-cells = <1>;
  52. };
  53. spi0: spi@10600 {
  54. compatible = "marvell,orion-spi";
  55. /* ... */
  56. /* get tclk from core clock provider */
  57. clocks = <&core_clk 0>;
  58. };