vt8500.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. Device Tree Clock bindings for arch-vt8500
  2. This binding uses the common clock binding[1].
  3. [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
  4. Required properties:
  5. - compatible : shall be one of the following:
  6. "via,vt8500-pll-clock" - for a VT8500/WM8505 PLL clock
  7. "wm,wm8650-pll-clock" - for a WM8650 PLL clock
  8. "wm,wm8750-pll-clock" - for a WM8750 PLL clock
  9. "wm,wm8850-pll-clock" - for a WM8850 PLL clock
  10. "via,vt8500-device-clock" - for a VT/WM device clock
  11. Required properties for PLL clocks:
  12. - reg : shall be the control register offset from PMC base for the pll clock.
  13. - clocks : shall be the input parent clock phandle for the clock. This should
  14. be the reference clock.
  15. - #clock-cells : from common clock binding; shall be set to 0.
  16. Required properties for device clocks:
  17. - clocks : shall be the input parent clock phandle for the clock. This should
  18. be a pll output.
  19. - #clock-cells : from common clock binding; shall be set to 0.
  20. Device Clocks
  21. Device clocks are required to have one or both of the following sets of
  22. properties:
  23. Gated device clocks:
  24. Required properties:
  25. - enable-reg : shall be the register offset from PMC base for the enable
  26. register.
  27. - enable-bit : shall be the bit within enable-reg to enable/disable the clock.
  28. Divisor device clocks:
  29. Required property:
  30. - divisor-reg : shall be the register offset from PMC base for the divisor
  31. register.
  32. Optional property:
  33. - divisor-mask : shall be the mask for the divisor register. Defaults to 0x1f
  34. if not specified.
  35. For example:
  36. ref25: ref25M {
  37. #clock-cells = <0>;
  38. compatible = "fixed-clock";
  39. clock-frequency = <25000000>;
  40. };
  41. plla: plla {
  42. #clock-cells = <0>;
  43. compatible = "wm,wm8650-pll-clock";
  44. clocks = <&ref25>;
  45. reg = <0x200>;
  46. };
  47. sdhc: sdhc {
  48. #clock-cells = <0>;
  49. compatible = "via,vt8500-device-clock";
  50. clocks = <&pllb>;
  51. divisor-reg = <0x328>;
  52. divisor-mask = <0x3f>;
  53. enable-reg = <0x254>;
  54. enable-bit = <18>;
  55. };