0242-Add-support-for-mcp7940x-family-of-RTC.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From 66800cc055de7b25eb233e70e48695b816aa2067 Mon Sep 17 00:00:00 2001
  2. From: Aaron Shaw <shawaj@gmail.com>
  3. Date: Fri, 8 Apr 2016 00:06:00 +0100
  4. Subject: [PATCH] Add support for mcp7940x family of RTC
  5. ---
  6. arch/arm/boot/dts/overlays/README | 2 ++
  7. arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts | 6 ++++++
  8. 2 files changed, 8 insertions(+)
  9. --- a/arch/arm/boot/dts/overlays/README
  10. +++ b/arch/arm/boot/dts/overlays/README
  11. @@ -435,6 +435,8 @@ Params: ds1307 Select t
  12. ds3231 Select the DS3231 device
  13. + mcp7940x Select the MCP7940x device
  14. +
  15. mcp7941x Select the MCP7941x device
  16. pcf2127 Select the PCF2127 device
  17. --- a/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
  18. +++ b/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
  19. @@ -23,6 +23,11 @@
  20. reg = <0x68>;
  21. status = "disable";
  22. };
  23. + mcp7940x: mcp7940x@6f {
  24. + compatible = "microchip,mcp7940x";
  25. + reg = <0x6f>;
  26. + status = "disable";
  27. + };
  28. mcp7941x: mcp7941x@6f {
  29. compatible = "microchip,mcp7941x";
  30. reg = <0x6f>;
  31. @@ -54,6 +59,7 @@
  32. ds1307 = <&ds1307>,"status";
  33. ds1339 = <&ds1339>,"status";
  34. ds3231 = <&ds3231>,"status";
  35. + mcp7940x = <&mcp7940x>,"status";
  36. mcp7941x = <&mcp7941x>,"status";
  37. pcf2127 = <&pcf2127>,"status";
  38. pcf8523 = <&pcf8523>,"status";