rtc: pcf2127: add pca2129 device id

The PCA2129 is the automotive grade version of the PCF2129.
add it to the list of compatibles.

Signed-off-by: Liam Beguin <lvb@xiphos.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Reviewed-by: Bruno Thomsen <bruno.thomsen@gmail.com>
Link: https://lore.kernel.org/r/20200630024211.12782-2-liambeguin@gmail.com
This commit is contained in:
Liam Beguin
2020-06-29 22:42:10 -04:00
committed by Alexandre Belloni
parent 16c2480112
commit 985b30dbe2
2 changed files with 5 additions and 0 deletions

View File

@@ -52,6 +52,8 @@ properties:
- nxp,pcf2127 - nxp,pcf2127
# Real-time clock # Real-time clock
- nxp,pcf2129 - nxp,pcf2129
# Real-time clock
- nxp,pca2129
# Real-time Clock Module # Real-time Clock Module
- pericom,pt7c4338 - pericom,pt7c4338
# I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC # I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC

View File

@@ -553,6 +553,7 @@ static int pcf2127_probe(struct device *dev, struct regmap *regmap,
static const struct of_device_id pcf2127_of_match[] = { static const struct of_device_id pcf2127_of_match[] = {
{ .compatible = "nxp,pcf2127" }, { .compatible = "nxp,pcf2127" },
{ .compatible = "nxp,pcf2129" }, { .compatible = "nxp,pcf2129" },
{ .compatible = "nxp,pca2129" },
{} {}
}; };
MODULE_DEVICE_TABLE(of, pcf2127_of_match); MODULE_DEVICE_TABLE(of, pcf2127_of_match);
@@ -664,6 +665,7 @@ static int pcf2127_i2c_probe(struct i2c_client *client,
static const struct i2c_device_id pcf2127_i2c_id[] = { static const struct i2c_device_id pcf2127_i2c_id[] = {
{ "pcf2127", 1 }, { "pcf2127", 1 },
{ "pcf2129", 0 }, { "pcf2129", 0 },
{ "pca2129", 0 },
{ } { }
}; };
MODULE_DEVICE_TABLE(i2c, pcf2127_i2c_id); MODULE_DEVICE_TABLE(i2c, pcf2127_i2c_id);
@@ -729,6 +731,7 @@ static int pcf2127_spi_probe(struct spi_device *spi)
static const struct spi_device_id pcf2127_spi_id[] = { static const struct spi_device_id pcf2127_spi_id[] = {
{ "pcf2127", 1 }, { "pcf2127", 1 },
{ "pcf2129", 0 }, { "pcf2129", 0 },
{ "pca2129", 0 },
{ } { }
}; };
MODULE_DEVICE_TABLE(spi, pcf2127_spi_id); MODULE_DEVICE_TABLE(spi, pcf2127_spi_id);