Skip to content

Commit aabfe05

Browse files
Fabio Estevamalexandrebelloni
authored andcommitted
rtc: pcf85063: Add a compatible entry for pca85073a
The PCA85073A RTC has the same programming model as the PCF85063A. Add a compatible entry for it. Tested on a custom i.MX6SX based board. Signed-off-by: Fabio Estevam <festevam@denx.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20220419014445.341444-2-festevam@gmail.com
1 parent bb9b980 commit aabfe05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/rtc/rtc-pcf85063.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@ static int pcf85063_probe(struct i2c_client *client)
650650
}
651651

652652
static const struct i2c_device_id pcf85063_ids[] = {
653+
{ "pca85073a", PCF85063A },
653654
{ "pcf85063", PCF85063 },
654655
{ "pcf85063tp", PCF85063TP },
655656
{ "pcf85063a", PCF85063A },
@@ -660,6 +661,7 @@ MODULE_DEVICE_TABLE(i2c, pcf85063_ids);
660661

661662
#ifdef CONFIG_OF
662663
static const struct of_device_id pcf85063_of_match[] = {
664+
{ .compatible = "nxp,pca85073a", .data = &pcf85063_cfg[PCF85063A] },
663665
{ .compatible = "nxp,pcf85063", .data = &pcf85063_cfg[PCF85063] },
664666
{ .compatible = "nxp,pcf85063tp", .data = &pcf85063_cfg[PCF85063TP] },
665667
{ .compatible = "nxp,pcf85063a", .data = &pcf85063_cfg[PCF85063A] },

0 commit comments

Comments
 (0)