8125-rtc-pcf2127-add-pcf2129-device-id.patch 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. From 228d15f0c525d1d62540539ebb8d311feddb79f5 Mon Sep 17 00:00:00 2001
  2. From: Akinobu Mita <akinobu.mita@gmail.com>
  3. Date: Mon, 26 Sep 2016 11:26:11 +0800
  4. Subject: [PATCH 125/141] rtc: pcf2127: add pcf2129 device id
  5. commit e8bf83a7f9454ed1026f100139ebd10eace0e280
  6. [context adjustment]
  7. There are only a few differences between PCF2127 and PCF2129 (PCF2127
  8. has 512 bytes of general purpose SRAM and count-down timer).
  9. The rtc-pcf2127 driver currently doesn't use the PCF2127 specific
  10. functionality and Kconfig help text already says this driver supports
  11. PCF2127/29, so we can simply add pcf2129 to device id list.
  12. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
  13. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
  14. Signed-off-by: Shaohui Xie <Shaohui.Xie@nxp.com>
  15. Integrated-by: Zhao Qiang <qiang.zhao@nxp.com>
  16. ---
  17. drivers/rtc/rtc-pcf2127.c | 8 +++++---
  18. 1 file changed, 5 insertions(+), 3 deletions(-)
  19. --- a/drivers/rtc/rtc-pcf2127.c
  20. +++ b/drivers/rtc/rtc-pcf2127.c
  21. @@ -1,12 +1,12 @@
  22. /*
  23. - * An I2C driver for the NXP PCF2127 RTC
  24. + * An I2C and SPI driver for the NXP PCF2127/29 RTC
  25. * Copyright 2013 Til-Technologies
  26. *
  27. * Author: Renaud Cerrato <r.cerrato@til-technologies.fr>
  28. *
  29. * based on the other drivers in this same directory.
  30. *
  31. - * http://www.nxp.com/documents/data_sheet/PCF2127AT.pdf
  32. + * Datasheet: http://cache.nxp.com/documents/data_sheet/PCF2127.pdf
  33. *
  34. * This program is free software; you can redistribute it and/or modify
  35. * it under the terms of the GNU General Public License version 2 as
  36. @@ -216,6 +216,7 @@ static int pcf2127_probe(struct i2c_clie
  37. static const struct i2c_device_id pcf2127_id[] = {
  38. { "pcf2127", 0 },
  39. + { "pcf2129", 0 },
  40. { }
  41. };
  42. MODULE_DEVICE_TABLE(i2c, pcf2127_id);
  43. @@ -223,6 +224,7 @@ MODULE_DEVICE_TABLE(i2c, pcf2127_id);
  44. #ifdef CONFIG_OF
  45. static const struct of_device_id pcf2127_of_match[] = {
  46. { .compatible = "nxp,pcf2127" },
  47. + { .compatible = "nxp,pcf2129" },
  48. {}
  49. };
  50. MODULE_DEVICE_TABLE(of, pcf2127_of_match);
  51. @@ -240,5 +242,5 @@ static struct i2c_driver pcf2127_driver
  52. module_i2c_driver(pcf2127_driver);
  53. MODULE_AUTHOR("Renaud Cerrato <r.cerrato@til-technologies.fr>");
  54. -MODULE_DESCRIPTION("NXP PCF2127 RTC driver");
  55. +MODULE_DESCRIPTION("NXP PCF2127/29 RTC driver");
  56. MODULE_LICENSE("GPL v2");