Commit 198be989 authored by Marek Vasut's avatar Marek Vasut Committed by Alexandre Belloni

rtc: pcf8563: Add NXP PCA8565 compatible

The NXP PCA8565 is software compatible with the NXP PCF8563,
add DT and ACPI compatible entries.
Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: linux-rtc@vger.kernel.org
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210210220623.23233-1-marex@denx.de
parent 7d6bec28
...@@ -5,7 +5,8 @@ Philips PCF8563/Epson RTC8564 Real Time Clock ...@@ -5,7 +5,8 @@ Philips PCF8563/Epson RTC8564 Real Time Clock
Required properties: Required properties:
- compatible: Should contain "nxp,pcf8563", - compatible: Should contain "nxp,pcf8563",
"epson,rtc8564" or "epson,rtc8564" or
"microcrystal,rv8564" "microcrystal,rv8564" or
"nxp,pca8565"
- reg: I2C address for chip. - reg: I2C address for chip.
Optional property: Optional property:
......
...@@ -597,6 +597,7 @@ static int pcf8563_probe(struct i2c_client *client, ...@@ -597,6 +597,7 @@ static int pcf8563_probe(struct i2c_client *client,
static const struct i2c_device_id pcf8563_id[] = { static const struct i2c_device_id pcf8563_id[] = {
{ "pcf8563", 0 }, { "pcf8563", 0 },
{ "rtc8564", 0 }, { "rtc8564", 0 },
{ "pca8565", 0 },
{ } { }
}; };
MODULE_DEVICE_TABLE(i2c, pcf8563_id); MODULE_DEVICE_TABLE(i2c, pcf8563_id);
...@@ -606,6 +607,7 @@ static const struct of_device_id pcf8563_of_match[] = { ...@@ -606,6 +607,7 @@ static const struct of_device_id pcf8563_of_match[] = {
{ .compatible = "nxp,pcf8563" }, { .compatible = "nxp,pcf8563" },
{ .compatible = "epson,rtc8564" }, { .compatible = "epson,rtc8564" },
{ .compatible = "microcrystal,rv8564" }, { .compatible = "microcrystal,rv8564" },
{ .compatible = "nxp,pca8565" },
{} {}
}; };
MODULE_DEVICE_TABLE(of, pcf8563_of_match); MODULE_DEVICE_TABLE(of, pcf8563_of_match);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment