vt8500.txt 1.8 KB

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