spi: master driver to enable RTC on ICPDAS LP-8841
authorSergei Ianovich <ynvich@gmail.com>
Tue, 23 Feb 2016 10:44:28 +0000 (13:44 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 24 Feb 2016 04:09:08 +0000 (13:09 +0900)
commit7ecbfff6711fb331591003ac32c002ce55a0758f
tree12723faadcbc40a55e05c20ab90f7978b97d964a
parent92e963f50fc74041b5e9e744c330dca48e04f08d
spi: master driver to enable RTC on ICPDAS LP-8841

ICP DAS LP-8841 contains a DS-1302 RTC. This driver provides an SPI
master which makes the RTC usable. The driver is not supposed to work
with anything else.

The driver uses the standard MicroWire half-duplex transfer timing.
Master output is set on low clock and sensed by the RTC on the rising
edge. Master input is set by the RTC on the trailing edge and is sensed
by the master on low clock.

Signed-off-by: Sergei Ianovich <ynvich@gmail.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/spi/icpdas-lp8841-spi-rtc.txt [new file with mode: 0644]
drivers/spi/Kconfig
drivers/spi/Makefile
drivers/spi/spi-lp8841-rtc.c [new file with mode: 0644]