maxim,ds3231.txt 806 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. * Maxim DS3231 Real Time Clock
  2. Required properties:
  3. see: Documentation/devicetree/bindings/i2c/trivial-devices.txt
  4. Optional property:
  5. - #clock-cells: Should be 1.
  6. - clock-output-names:
  7. overwrite the default clock names "ds3231_clk_sqw" and "ds3231_clk_32khz".
  8. Each clock is assigned an identifier and client nodes can use this identifier
  9. to specify the clock which they consume. Following indices are allowed:
  10. - 0: square-wave output on the SQW pin
  11. - 1: square-wave output on the 32kHz pin
  12. - interrupts: rtc alarm/event interrupt. When this property is selected,
  13. clock on the SQW pin cannot be used.
  14. Example:
  15. ds3231: ds3231@51 {
  16. compatible = "maxim,ds3231";
  17. reg = <0x68>;
  18. #clock-cells = <1>;
  19. };
  20. device1 {
  21. ...
  22. clocks = <&ds3231 0>;
  23. ...
  24. };
  25. device2 {
  26. ...
  27. clocks = <&ds3231 1>;
  28. ...
  29. };