mvebu-core-clock.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 Kirkwood and Dove:
  12. 0 = tclk (Internal Bus clock)
  13. 1 = cpuclk (CPU0 clock)
  14. 2 = l2clk (L2 Cache clock derived from CPU0 clock)
  15. 3 = ddrclk (DDR controller clock derived from CPU0 clock)
  16. Required properties:
  17. - compatible : shall be one of the following:
  18. "marvell,armada-370-core-clock" - For Armada 370 SoC core clocks
  19. "marvell,armada-xp-core-clock" - For Armada XP SoC core clocks
  20. "marvell,dove-core-clock" - for Dove SoC core clocks
  21. "marvell,kirkwood-core-clock" - for Kirkwood SoC (except mv88f6180)
  22. "marvell,mv88f6180-core-clock" - for Kirkwood MV88f6180 SoC
  23. - reg : shall be the register address of the Sample-At-Reset (SAR) register
  24. - #clock-cells : from common clock binding; shall be set to 1
  25. Optional properties:
  26. - clock-output-names : from common clock binding; allows overwrite default clock
  27. output names ("tclk", "cpuclk", "l2clk", "ddrclk")
  28. Example:
  29. core_clk: core-clocks@d0214 {
  30. compatible = "marvell,dove-core-clock";
  31. reg = <0xd0214 0x4>;
  32. #clock-cells = <1>;
  33. };
  34. spi0: spi@10600 {
  35. compatible = "marvell,orion-spi";
  36. /* ... */
  37. /* get tclk from core clock provider */
  38. clocks = <&core_clk 0>;
  39. };