maxim,max77686.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Binding for Maxim MAX77686 32k clock generator block
  2. This is a part of device tree bindings of MAX77686 multi-function device.
  3. More information can be found in bindings/mfd/max77686.txt file.
  4. The MAX77686 contains three 32.768khz clock outputs that can be controlled
  5. (gated/ungated) over I2C.
  6. Following properties should be presend in main device node of the MFD chip.
  7. Required properties:
  8. - #clock-cells: from common clock binding; shall be set to 1.
  9. Optional properties:
  10. - clock-output-names: From common clock binding.
  11. Each clock is assigned an identifier and client nodes can use this identifier
  12. to specify the clock which they consume. Following indices are allowed:
  13. - 0: 32khz_ap clock,
  14. - 1: 32khz_cp clock,
  15. - 2: 32khz_pmic clock.
  16. Clocks are defined as preprocessor macros in dt-bindings/clock/maxim,max77686.h
  17. header and can be used in device tree sources.
  18. Example: Node of the MFD chip
  19. max77686: max77686@09 {
  20. compatible = "maxim,max77686";
  21. interrupt-parent = <&wakeup_eint>;
  22. interrupts = <26 0>;
  23. reg = <0x09>;
  24. #clock-cells = <1>;
  25. /* ... */
  26. };
  27. Example: Clock consumer node
  28. foo@0 {
  29. compatible = "bar,foo";
  30. /* ... */
  31. clock-names = "my-clock";
  32. clocks = <&max77686 MAX77686_CLK_PMIC>;
  33. };