rtc: sun6i: Expose internal oscillator through device tree
authorChen-Yu Tsai <wens@csie.org>
Mon, 3 Dec 2018 14:58:19 +0000 (22:58 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 6 Dec 2018 17:13:46 +0000 (18:13 +0100)
commitc56afc1844d6a8a050d73eda1a59d286e1d5bc04
tree3367b9eddae5d7a385baa9a31ecaab55a024e092
parent7cd1acaeea4e72e2926c23ac8db5ab376b2819a4
rtc: sun6i: Expose internal oscillator through device tree

The bindings have been updated to expose the RTC's internal oscillator,
for some SoCs that have it directly feeding the PRCM block. The changes
include the index 2 for the clock outputs, as well as the clock output
names.

This patch adds the internal oscillator to the list of clocks exposed
through of_clk_add_hw_provider(), and also have the driver optionally
fetch the name of the clock from the device tree if it's available.

Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-sun6i.c