silabs,si5351.txt 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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 up to 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 the following:
  12. "silabs,si5351a" - Si5351a, QFN20 package
  13. "silabs,si5351a-msop" - Si5351a, MSOP10 package
  14. "silabs,si5351b" - Si5351b, QFN20 package
  15. "silabs,si5351c" - Si5351c, QFN20 package
  16. - reg: i2c device address, shall be 0x60 or 0x61.
  17. - #clock-cells: from common clock binding; shall be set to 1.
  18. - clocks: from common clock binding; list of parent clock
  19. handles, shall be xtal reference clock or xtal and clkin for
  20. si5351c only. Corresponding clock input names are "xtal" and
  21. "clkin" respectively.
  22. - #address-cells: shall be set to 1.
  23. - #size-cells: shall be set to 0.
  24. Optional properties:
  25. - silabs,pll-source: pair of (number, source) for each pll. Allows
  26. to overwrite clock source of pll A (number=0) or B (number=1).
  27. ==Child nodes==
  28. Each of the clock outputs can be overwritten individually by
  29. using a child node to the I2C device node. If a child node for a clock
  30. output is not set, the eeprom configuration is not overwritten.
  31. Required child node properties:
  32. - reg: number of clock output.
  33. Optional child node properties:
  34. - silabs,clock-source: source clock of the output divider stage N, shall be
  35. 0 = multisynth N
  36. 1 = multisynth 0 for output clocks 0-3, else multisynth4
  37. 2 = xtal
  38. 3 = clkin (si5351c only)
  39. - silabs,drive-strength: output drive strength in mA, shall be one of {2,4,6,8}.
  40. - silabs,multisynth-source: source pll A(0) or B(1) of corresponding multisynth
  41. divider.
  42. - silabs,pll-master: boolean, multisynth can change pll frequency.
  43. - silabs,pll-reset: boolean, clock output can reset its pll.
  44. - silabs,disable-state : clock output disable state, shall be
  45. 0 = clock output is driven LOW when disabled
  46. 1 = clock output is driven HIGH when disabled
  47. 2 = clock output is FLOATING (HIGH-Z) when disabled
  48. 3 = clock output is NEVER disabled
  49. ==Example==
  50. /* 25MHz reference crystal */
  51. ref25: ref25M {
  52. compatible = "fixed-clock";
  53. #clock-cells = <0>;
  54. clock-frequency = <25000000>;
  55. };
  56. i2c-master-node {
  57. /* Si5351a msop10 i2c clock generator */
  58. si5351a: clock-generator@60 {
  59. compatible = "silabs,si5351a-msop";
  60. reg = <0x60>;
  61. #address-cells = <1>;
  62. #size-cells = <0>;
  63. #clock-cells = <1>;
  64. /* connect xtal input to 25MHz reference */
  65. clocks = <&ref25>;
  66. clock-names = "xtal";
  67. /* connect xtal input as source of pll0 and pll1 */
  68. silabs,pll-source = <0 0>, <1 0>;
  69. /*
  70. * overwrite clkout0 configuration with:
  71. * - 8mA output drive strength
  72. * - pll0 as clock source of multisynth0
  73. * - multisynth0 as clock source of output divider
  74. * - multisynth0 can change pll0
  75. * - set initial clock frequency of 74.25MHz
  76. */
  77. clkout0 {
  78. reg = <0>;
  79. silabs,drive-strength = <8>;
  80. silabs,multisynth-source = <0>;
  81. silabs,clock-source = <0>;
  82. silabs,pll-master;
  83. clock-frequency = <74250000>;
  84. };
  85. /*
  86. * overwrite clkout1 configuration with:
  87. * - 4mA output drive strength
  88. * - pll1 as clock source of multisynth1
  89. * - multisynth1 as clock source of output divider
  90. * - multisynth1 can change pll1
  91. */
  92. clkout1 {
  93. reg = <1>;
  94. silabs,drive-strength = <4>;
  95. silabs,multisynth-source = <1>;
  96. silabs,clock-source = <0>;
  97. pll-master;
  98. };
  99. /*
  100. * overwrite clkout2 configuration with:
  101. * - xtal as clock source of output divider
  102. */
  103. clkout2 {
  104. reg = <2>;
  105. silabs,clock-source = <2>;
  106. };
  107. };
  108. };