18c2ecf20Sopenharmony_ci* Maxim DS3231 Real Time Clock 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciRequired properties: 48c2ecf20Sopenharmony_ci- compatible: Should contain "maxim,ds3231". 58c2ecf20Sopenharmony_ci- reg: I2C address for chip. 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ciOptional property: 88c2ecf20Sopenharmony_ci- #clock-cells: Should be 1. 98c2ecf20Sopenharmony_ci- clock-output-names: 108c2ecf20Sopenharmony_ci overwrite the default clock names "ds3231_clk_sqw" and "ds3231_clk_32khz". 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ciEach clock is assigned an identifier and client nodes can use this identifier 138c2ecf20Sopenharmony_cito specify the clock which they consume. Following indices are allowed: 148c2ecf20Sopenharmony_ci - 0: square-wave output on the SQW pin 158c2ecf20Sopenharmony_ci - 1: square-wave output on the 32kHz pin 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci- interrupts: rtc alarm/event interrupt. When this property is selected, 188c2ecf20Sopenharmony_ci clock on the SQW pin cannot be used. 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ciExample: 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_cids3231: ds3231@51 { 238c2ecf20Sopenharmony_ci compatible = "maxim,ds3231"; 248c2ecf20Sopenharmony_ci reg = <0x68>; 258c2ecf20Sopenharmony_ci #clock-cells = <1>; 268c2ecf20Sopenharmony_ci}; 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_cidevice1 { 298c2ecf20Sopenharmony_ci... 308c2ecf20Sopenharmony_ci clocks = <&ds3231 0>; 318c2ecf20Sopenharmony_ci... 328c2ecf20Sopenharmony_ci}; 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_cidevice2 { 358c2ecf20Sopenharmony_ci... 368c2ecf20Sopenharmony_ci clocks = <&ds3231 1>; 378c2ecf20Sopenharmony_ci... 388c2ecf20Sopenharmony_ci}; 39