18c2ecf20Sopenharmony_ci* Maxim/Dallas Semiconductor DS-1302 RTC
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciSimple device which could be used to store date/time between reboots.
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ciThe device uses the standard MicroWire half-duplex transfer timing.
68c2ecf20Sopenharmony_ciMaster output is set on low clock and sensed by the RTC on the rising
78c2ecf20Sopenharmony_ciedge. Master input is set by the RTC on the trailing edge and is sensed
88c2ecf20Sopenharmony_ciby the master on low clock.
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciRequired properties:
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci- compatible : Should be "maxim,ds1302"
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciRequired SPI properties:
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci- reg : Should be address of the device chip select within
178c2ecf20Sopenharmony_ci  the controller.
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci- spi-max-frequency : DS-1302 has 500 kHz if powered at 2.2V,
208c2ecf20Sopenharmony_ci  and 2MHz if powered at 5V.
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci- spi-3wire : The device has a shared signal IN/OUT line.
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci- spi-lsb-first : DS-1302 requires least significant bit first
258c2ecf20Sopenharmony_ci  transfers.
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci- spi-cs-high: DS-1302 has active high chip select line. This is
288c2ecf20Sopenharmony_ci  required unless inverted in hardware.
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ciExample:
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_cispi@901c {
338c2ecf20Sopenharmony_ci	#address-cells = <1>;
348c2ecf20Sopenharmony_ci	#size-cells = <0>;
358c2ecf20Sopenharmony_ci	compatible = "icpdas,lp8841-spi-rtc";
368c2ecf20Sopenharmony_ci	reg = <0x901c 0x1>;
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci	rtc@0 {
398c2ecf20Sopenharmony_ci		compatible = "maxim,ds1302";
408c2ecf20Sopenharmony_ci		reg = <0>;
418c2ecf20Sopenharmony_ci		spi-max-frequency = <500000>;
428c2ecf20Sopenharmony_ci		spi-3wire;
438c2ecf20Sopenharmony_ci		spi-lsb-first;
448c2ecf20Sopenharmony_ci		spi-cs-high;
458c2ecf20Sopenharmony_ci	};
468c2ecf20Sopenharmony_ci};
47