]> git.baikalelectronics.ru Git - kernel.git/commit
dt-bindings: rtc: sun6i-rtc: Add compatible strings for pre-H6 variants
authorChen-Yu Tsai <wens@csie.org>
Mon, 3 Dec 2018 14:58:13 +0000 (22:58 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 6 Dec 2018 17:12:09 +0000 (18:12 +0100)
commita2ac1198a3aef2beb968f498fb2908df566d9ce4
tree675596b4dfa065139f16c022fae4b79da1789671
parent806f7b77b085a2a27881358ecdb6f768d6275a16
dt-bindings: rtc: sun6i-rtc: Add compatible strings for pre-H6 variants

While doing Bluetooth enablement for various boards based on various
Allwinner SoCs, minor differences in the RTC modules were found. These
include a lack of an external clock output (A31), different internal
oscillator frequencies (H3/H5/A64/V3/V3s), different regulator voltage
settings (H5/H6), and the presence of miscellaneous registers unrelated
to the RTC (A64/R40/H5/H6). The datasheet also describes different number
of registers for non-volatile storage, though based on actual experiments
the actual number is the same across the board.

This patch adds a list of all pre-H6 variants, grouped by the internal
oscillator's clock rate, regulator settings, and the presence of the
external clock output. Combinations are introduced for the variants that
have miscellaneous registers.

The RTC block in the H6 also handles the 24 MHz DCXO. This will require
more device tree binding changes and will be done later.

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