162306a36Sopenharmony_ci* Maxim/Dallas Semiconductor DS-1302 RTC
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciSimple device which could be used to store date/time between reboots.
462306a36Sopenharmony_ci
562306a36Sopenharmony_ciThe device uses the standard MicroWire half-duplex transfer timing.
662306a36Sopenharmony_ciMaster output is set on low clock and sensed by the RTC on the rising
762306a36Sopenharmony_ciedge. Master input is set by the RTC on the trailing edge and is sensed
862306a36Sopenharmony_ciby the master on low clock.
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ciRequired properties:
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci- compatible : Should be "maxim,ds1302"
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ciRequired SPI properties:
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci- reg : Should be address of the device chip select within
1762306a36Sopenharmony_ci  the controller.
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci- spi-max-frequency : DS-1302 has 500 kHz if powered at 2.2V,
2062306a36Sopenharmony_ci  and 2MHz if powered at 5V.
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci- spi-3wire : The device has a shared signal IN/OUT line.
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci- spi-lsb-first : DS-1302 requires least significant bit first
2562306a36Sopenharmony_ci  transfers.
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ci- spi-cs-high: DS-1302 has active high chip select line. This is
2862306a36Sopenharmony_ci  required unless inverted in hardware.
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ciExample:
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_cispi@901c {
3362306a36Sopenharmony_ci	#address-cells = <1>;
3462306a36Sopenharmony_ci	#size-cells = <0>;
3562306a36Sopenharmony_ci	compatible = "icpdas,lp8841-spi-rtc";
3662306a36Sopenharmony_ci	reg = <0x901c 0x1>;
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ci	rtc@0 {
3962306a36Sopenharmony_ci		compatible = "maxim,ds1302";
4062306a36Sopenharmony_ci		reg = <0>;
4162306a36Sopenharmony_ci		spi-max-frequency = <500000>;
4262306a36Sopenharmony_ci		spi-3wire;
4362306a36Sopenharmony_ci		spi-lsb-first;
4462306a36Sopenharmony_ci		spi-cs-high;
4562306a36Sopenharmony_ci	};
4662306a36Sopenharmony_ci};
47