maxim,ds3231.txt 817 B

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