Skip to content

Commit 985b30d

Browse files
liambeguinalexandrebelloni
authored andcommitted
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
1 parent 16c2480 commit 985b30d

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

Documentation/devicetree/bindings/rtc/trivial-rtc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ properties:
5252
- nxp,pcf2127
5353
# Real-time clock
5454
- nxp,pcf2129
55+
# Real-time clock
56+
- nxp,pca2129
5557
# Real-time Clock Module
5658
- pericom,pt7c4338
5759
# I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC

drivers/rtc/rtc-pcf2127.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ static int pcf2127_probe(struct device *dev, struct regmap *regmap,
553553
static const struct of_device_id pcf2127_of_match[] = {
554554
{ .compatible = "nxp,pcf2127" },
555555
{ .compatible = "nxp,pcf2129" },
556+
{ .compatible = "nxp,pca2129" },
556557
{}
557558
};
558559
MODULE_DEVICE_TABLE(of, pcf2127_of_match);
@@ -664,6 +665,7 @@ static int pcf2127_i2c_probe(struct i2c_client *client,
664665
static const struct i2c_device_id pcf2127_i2c_id[] = {
665666
{ "pcf2127", 1 },
666667
{ "pcf2129", 0 },
668+
{ "pca2129", 0 },
667669
{ }
668670
};
669671
MODULE_DEVICE_TABLE(i2c, pcf2127_i2c_id);
@@ -729,6 +731,7 @@ static int pcf2127_spi_probe(struct spi_device *spi)
729731
static const struct spi_device_id pcf2127_spi_id[] = {
730732
{ "pcf2127", 1 },
731733
{ "pcf2129", 0 },
734+
{ "pca2129", 0 },
732735
{ }
733736
};
734737
MODULE_DEVICE_TABLE(spi, pcf2127_spi_id);

0 commit comments

Comments
 (0)