samsung,s2mps11.txt 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. Binding for Samsung S2M and S5M family clock generator block
  2. ============================================================
  3. This is a part of device tree bindings for S2M and S5M family multi-function
  4. devices.
  5. More information can be found in bindings/mfd/sec-core.txt file.
  6. The S2MPS11/13/15 and S5M8767 provide three(AP/CP/BT) buffered 32.768 kHz
  7. outputs. The S2MPS14 provides two (AP/BT) buffered 32.768 KHz outputs.
  8. To register these as clocks with common clock framework instantiate under
  9. main device node a sub-node named "clocks".
  10. It uses the common clock binding documented in:
  11. - Documentation/devicetree/bindings/clock/clock-bindings.txt
  12. Required properties of the "clocks" sub-node:
  13. - #clock-cells: should be 1.
  14. - compatible: Should be one of: "samsung,s2mps11-clk", "samsung,s2mps13-clk",
  15. "samsung,s2mps14-clk", "samsung,s5m8767-clk"
  16. The S2MPS15 uses the same compatible as S2MPS13, as both provides similar
  17. clocks.
  18. Each clock is assigned an identifier and client nodes use this identifier
  19. to specify the clock which they consume.
  20. Clock ID Devices
  21. ----------------------------------------------------------
  22. 32KhzAP 0 S2MPS11/13/14/15, S5M8767
  23. 32KhzCP 1 S2MPS11/13/15, S5M8767
  24. 32KhzBT 2 S2MPS11/13/14/15, S5M8767
  25. Include dt-bindings/clock/samsung,s2mps11.h file to use preprocessor defines
  26. in device tree sources.
  27. Example:
  28. s2mps11_pmic@66 {
  29. compatible = "samsung,s2mps11-pmic";
  30. reg = <0x66>;
  31. s2m_osc: clocks {
  32. compatible = "samsung,s2mps11-clk";
  33. #clock-cells = <1>;
  34. clock-output-names = "xx", "yy", "zz";
  35. };
  36. };