Back to home page

OSCL-LXR

 
 

    


0001 * Maxim DS3231 Real Time Clock
0002 
0003 Required properties:
0004 - compatible: Should contain "maxim,ds3231".
0005 - reg: I2C address for chip.
0006 
0007 Optional property:
0008 - #clock-cells: Should be 1.
0009 - clock-output-names:
0010   overwrite the default clock names "ds3231_clk_sqw" and "ds3231_clk_32khz".
0011 
0012 Each clock is assigned an identifier and client nodes can use this identifier
0013 to specify the clock which they consume. Following indices are allowed:
0014     - 0: square-wave output on the SQW pin
0015     - 1: square-wave output on the 32kHz pin
0016 
0017 - interrupts: rtc alarm/event interrupt. When this property is selected,
0018   clock on the SQW pin cannot be used.
0019 
0020 Example:
0021 
0022 ds3231: ds3231@51 {
0023         compatible = "maxim,ds3231";
0024         reg = <0x68>;
0025         #clock-cells = <1>;
0026 };
0027 
0028 device1 {
0029 ...
0030         clocks = <&ds3231 0>;
0031 ...
0032 };
0033 
0034 device2 {
0035 ...
0036         clocks = <&ds3231 1>;
0037 ...
0038 };