Commit cee2cc21 authored by Akinobu Mita's avatar Akinobu Mita Committed by Alexandre Belloni

rtc: pcf2127: add pcf2129 device id

There are only a few differences between PCF2127 and PCF2129 (PCF2127
has 512 bytes of general purpose SRAM and count-down timer).

The rtc-pcf2127 driver currently doesn't use the PCF2127 specific
functionality and Kconfig help text already says this driver supports
PCF2127/29, so we can simply add pcf2129 to device id list.
Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent 9408ec1a
/* /*
* An I2C and SPI driver for the NXP PCF2127 RTC * An I2C and SPI driver for the NXP PCF2127/29 RTC
* Copyright 2013 Til-Technologies * Copyright 2013 Til-Technologies
* *
* Author: Renaud Cerrato <r.cerrato@til-technologies.fr> * Author: Renaud Cerrato <r.cerrato@til-technologies.fr>
* *
* based on the other drivers in this same directory. * based on the other drivers in this same directory.
* *
* http://www.nxp.com/documents/data_sheet/PCF2127AT.pdf * Datasheet: http://cache.nxp.com/documents/data_sheet/PCF2127.pdf
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
...@@ -196,6 +196,7 @@ static int pcf2127_probe(struct device *dev, struct regmap *regmap, ...@@ -196,6 +196,7 @@ static int pcf2127_probe(struct device *dev, struct regmap *regmap,
#ifdef CONFIG_OF #ifdef CONFIG_OF
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" },
{} {}
}; };
MODULE_DEVICE_TABLE(of, pcf2127_of_match); MODULE_DEVICE_TABLE(of, pcf2127_of_match);
...@@ -302,6 +303,7 @@ static int pcf2127_i2c_probe(struct i2c_client *client, ...@@ -302,6 +303,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", 0 }, { "pcf2127", 0 },
{ "pcf2129", 0 },
{ } { }
}; };
MODULE_DEVICE_TABLE(i2c, pcf2127_i2c_id); MODULE_DEVICE_TABLE(i2c, pcf2127_i2c_id);
...@@ -364,6 +366,7 @@ static int pcf2127_spi_probe(struct spi_device *spi) ...@@ -364,6 +366,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", 0 }, { "pcf2127", 0 },
{ "pcf2129", 0 },
{ } { }
}; };
MODULE_DEVICE_TABLE(spi, pcf2127_spi_id); MODULE_DEVICE_TABLE(spi, pcf2127_spi_id);
...@@ -428,5 +431,5 @@ static void __exit pcf2127_exit(void) ...@@ -428,5 +431,5 @@ static void __exit pcf2127_exit(void)
module_exit(pcf2127_exit) module_exit(pcf2127_exit)
MODULE_AUTHOR("Renaud Cerrato <r.cerrato@til-technologies.fr>"); MODULE_AUTHOR("Renaud Cerrato <r.cerrato@til-technologies.fr>");
MODULE_DESCRIPTION("NXP PCF2127 RTC driver"); MODULE_DESCRIPTION("NXP PCF2127/29 RTC driver");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
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