rtc: ds1307: Add support for configuring external clock pin
The DS1307 has a square wave output pin, which can be used to output a
clock signal from the DS1307.  Additionally, the DS1308 supports
configuring this pin as an input from an external clock source to
which it should sync itself.

Add support with OF device tree properties to configure these
settings.  Supported features are using the clock pin as an output, an
input, the rate of the pin, and if it should be enabled on battery
backup power.

The driver does not check that the selected features are supported by
the clock chip being used.  It is the designer's responsibility to
create a valid device tree node; the bootloader does not attempt to be
a device tree validator.

Signed-off-by: Trent Piepho <tpiepho@kymetacorp.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 61ddbd3 commit 24fcf5fceec8a3af9fab21f2ba702da08ba7c430
@Trent Piepho Trent Piepho authored on 19 May 2016
Sascha Hauer committed on 30 May 2016
Showing 2 changed files
View
Documentation/devicetree/bindings/rtc/dallas,ds1307.rst 0 → 100644
View
drivers/rtc/rtc-ds1307.c