silabs,si5351.txt 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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 "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. - silabs,disable-state : clock output disable state, shall be
  39. 0 = clock output is driven LOW when disabled
  40. 1 = clock output is driven HIGH when disabled
  41. 2 = clock output is FLOATING (HIGH-Z) when disabled
  42. 3 = clock output is NEVER disabled
  43. ==Example==
  44. /* 25MHz reference crystal */
  45. ref25: ref25M {
  46. compatible = "fixed-clock";
  47. #clock-cells = <0>;
  48. clock-frequency = <25000000>;
  49. };
  50. i2c-master-node {
  51. /* Si5351a msop10 i2c clock generator */
  52. si5351a: clock-generator@60 {
  53. compatible = "silabs,si5351a-msop";
  54. reg = <0x60>;
  55. #address-cells = <1>;
  56. #size-cells = <0>;
  57. #clock-cells = <1>;
  58. /* connect xtal input to 25MHz reference */
  59. clocks = <&ref25>;
  60. /* connect xtal input as source of pll0 and pll1 */
  61. silabs,pll-source = <0 0>, <1 0>;
  62. /*
  63. * overwrite clkout0 configuration with:
  64. * - 8mA output drive strength
  65. * - pll0 as clock source of multisynth0
  66. * - multisynth0 as clock source of output divider
  67. * - multisynth0 can change pll0
  68. * - set initial clock frequency of 74.25MHz
  69. */
  70. clkout0 {
  71. reg = <0>;
  72. silabs,drive-strength = <8>;
  73. silabs,multisynth-source = <0>;
  74. silabs,clock-source = <0>;
  75. silabs,pll-master;
  76. clock-frequency = <74250000>;
  77. };
  78. /*
  79. * overwrite clkout1 configuration with:
  80. * - 4mA output drive strength
  81. * - pll1 as clock source of multisynth1
  82. * - multisynth1 as clock source of output divider
  83. * - multisynth1 can change pll1
  84. */
  85. clkout1 {
  86. reg = <1>;
  87. silabs,drive-strength = <4>;
  88. silabs,multisynth-source = <1>;
  89. silabs,clock-source = <0>;
  90. pll-master;
  91. };
  92. /*
  93. * overwrite clkout2 configuration with:
  94. * - xtal as clock source of output divider
  95. */
  96. clkout2 {
  97. reg = <2>;
  98. silabs,clock-source = <2>;
  99. };
  100. };
  101. };