silabs,si5351.txt 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. Binding for Silicon Labs Si5351a/b/c programmable i2c clock generator.
  2. Reference
  3. [1] Si5351A/B/C Data Sheet
  4. http://www.silabs.com/Support%20Documents/TechnicalDocs/Si5351.pdf
  5. The Si5351a/b/c are programmable i2c clock generators with upto 8 output
  6. clocks. Si5351a also has a reduced pin-count package (MSOP10) where only
  7. 3 output clocks are accessible. The internal structure of the clock
  8. generators can be found in [1].
  9. ==I2C device node==
  10. Required properties:
  11. - compatible: shall be one of "silabs,si5351{a,a-msop,b,c}".
  12. - reg: i2c device address, shall be 0x60 or 0x61.
  13. - #clock-cells: from common clock binding; shall be set to 1.
  14. - clocks: from common clock binding; list of parent clock
  15. handles, shall be xtal reference clock or xtal and clkin for
  16. si5351c only.
  17. - #address-cells: shall be set to 1.
  18. - #size-cells: shall be set to 0.
  19. Optional properties:
  20. - silabs,pll-source: pair of (number, source) for each pll. Allows
  21. to overwrite clock source of pll A (number=0) or B (number=1).
  22. ==Child nodes==
  23. Each of the clock outputs can be overwritten individually by
  24. using a child node to the I2C device node. If a child node for a clock
  25. output is not set, the eeprom configuration is not overwritten.
  26. Required child node properties:
  27. - reg: number of clock output.
  28. Optional child node properties:
  29. - silabs,clock-source: source clock of the output divider stage N, shall be
  30. 0 = multisynth N
  31. 1 = multisynth 0 for output clocks 0-3, else multisynth4
  32. 2 = xtal
  33. 3 = clkin (si5351c only)
  34. - silabs,drive-strength: output drive strength in mA, shall be one of {2,4,6,8}.
  35. - silabs,multisynth-source: source pll A(0) or B(1) of corresponding multisynth
  36. divider.
  37. - silabs,pll-master: boolean, multisynth can change pll frequency.
  38. ==Example==
  39. /* 25MHz reference crystal */
  40. ref25: ref25M {
  41. compatible = "fixed-clock";
  42. #clock-cells = <0>;
  43. clock-frequency = <25000000>;
  44. };
  45. i2c-master-node {
  46. /* Si5351a msop10 i2c clock generator */
  47. si5351a: clock-generator@60 {
  48. compatible = "silabs,si5351a-msop";
  49. reg = <0x60>;
  50. #address-cells = <1>;
  51. #size-cells = <0>;
  52. #clock-cells = <1>;
  53. /* connect xtal input to 25MHz reference */
  54. clocks = <&ref25>;
  55. /* connect xtal input as source of pll0 and pll1 */
  56. silabs,pll-source = <0 0>, <1 0>;
  57. /*
  58. * overwrite clkout0 configuration with:
  59. * - 8mA output drive strength
  60. * - pll0 as clock source of multisynth0
  61. * - multisynth0 as clock source of output divider
  62. * - multisynth0 can change pll0
  63. * - set initial clock frequency of 74.25MHz
  64. */
  65. clkout0 {
  66. reg = <0>;
  67. silabs,drive-strength = <8>;
  68. silabs,multisynth-source = <0>;
  69. silabs,clock-source = <0>;
  70. silabs,pll-master;
  71. clock-frequency = <74250000>;
  72. };
  73. /*
  74. * overwrite clkout1 configuration with:
  75. * - 4mA output drive strength
  76. * - pll1 as clock source of multisynth1
  77. * - multisynth1 as clock source of output divider
  78. * - multisynth1 can change pll1
  79. */
  80. clkout1 {
  81. reg = <1>;
  82. silabs,drive-strength = <4>;
  83. silabs,multisynth-source = <1>;
  84. silabs,clock-source = <0>;
  85. pll-master;
  86. };
  87. /*
  88. * overwrite clkout2 configuration with:
  89. * - xtal as clock source of output divider
  90. */
  91. clkout2 {
  92. reg = <2>;
  93. silabs,clock-source = <2>;
  94. };
  95. };
  96. };