rtc: jz4740: Add support for JZ4760 SoC
authorPaul Cercueil <paul@crapouillou.net>
Wed, 11 Mar 2020 18:23:16 +0000 (19:23 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 24 Mar 2020 10:03:22 +0000 (11:03 +0100)
commit5840748520be19ea97ffdb80e5aa313c6ef60575
tree305ff8fa158b483001cf8d8ea094495106bb4af0
parentf9b2a4d6a5f18e0aaf715206a056565c56889d9f
rtc: jz4740: Add support for JZ4760 SoC

The WENR feature (set a magic value to enable RTC registers read-write)
first appeared on the JZ4760; the JZ4780 came much later.

Since it would be dangerous to specify a newer SoC's compatible string as
the fallback of an older SoC's compatible string, we add support for the
"ingenic,jz4760-rtc" compatible string in the driver.

This will permit to support the JZ4770 by having:
compatible = "ingenic,jz4770-rtc", "ingenic,jz4760-rtc";

Instead of doing:
compatible = "ingenic,jz4770-rtc", "ingenic,jz4780-rtc";

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20200311182318.22154-1-paul@crapouillou.net
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-jz4740.c