maxim,max77802.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Binding for Maxim MAX77802 32k clock generator block
  2. This is a part of device tree bindings of MAX77802 multi-function device.
  3. More information can be found in bindings/mfd/max77802.txt file.
  4. The MAX77802 contains two 32.768khz clock outputs that can be controlled
  5. (gated/ungated) over I2C.
  6. Following properties should be present 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. Clocks are defined as preprocessor macros in dt-bindings/clock/maxim,max77802.h
  16. header and can be used in device tree sources.
  17. Example: Node of the MFD chip
  18. max77802: max77802@09 {
  19. compatible = "maxim,max77802";
  20. interrupt-parent = <&wakeup_eint>;
  21. interrupts = <26 0>;
  22. reg = <0x09>;
  23. #clock-cells = <1>;
  24. /* ... */
  25. };
  26. Example: Clock consumer node
  27. foo@0 {
  28. compatible = "bar,foo";
  29. /* ... */
  30. clock-names = "my-clock";
  31. clocks = <&max77802 MAX77802_CLK_32K_AP>;
  32. };