clk-palmas-clk32kg-clocks.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. * Palmas 32KHz clocks *
  2. Palmas device has two clock output pins for 32KHz, KG and KG_AUDIO.
  3. This binding uses the common clock binding ./clock-bindings.txt.
  4. Required properties:
  5. - compatible : "ti,palmas-clk32kg" for clk32kg clock
  6. "ti,palmas-clk32kgaudio" for clk32kgaudio clock
  7. - #clock-cells : shall be set to 0.
  8. Optional property:
  9. - ti,external-sleep-control: The external enable input pins controlled the
  10. enable/disable of clocks. The external enable input pins ENABLE1,
  11. ENABLE2 and NSLEEP. The valid values for the external pins are:
  12. PALMAS_EXT_CONTROL_PIN_ENABLE1 for ENABLE1 pin
  13. PALMAS_EXT_CONTROL_PIN_ENABLE2 for ENABLE2 pin
  14. PALMAS_EXT_CONTROL_PIN_NSLEEP for NSLEEP pin
  15. Option 0 or missing this property means the clock is enabled/disabled
  16. via register access and these pins do not have any control.
  17. The macros of external control pins for DTS is defined at
  18. dt-bindings/mfd/palmas.h
  19. Example:
  20. #include <dt-bindings/mfd/palmas.h>
  21. ...
  22. palmas: tps65913@58 {
  23. ...
  24. clk32kg: palmas_clk32k@0 {
  25. compatible = "ti,palmas-clk32kg";
  26. #clock-cells = <0>;
  27. ti,external-sleep-control = <PALMAS_EXT_CONTROL_PIN_NSLEEP>;
  28. };
  29. ...
  30. };