0214-BCM270X_DT-Add-DS1339-to-i2c-rtc-overlay.patch 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. From d1235b349a4f89dec0738692494373471acb3a36 Mon Sep 17 00:00:00 2001
  2. From: Nicolas Boullis <nboullis@debian.org>
  3. Date: Wed, 23 Mar 2016 23:40:15 +0100
  4. Subject: [PATCH] BCM270X_DT: Add DS1339 to i2c-rtc overlay
  5. ---
  6. arch/arm/boot/dts/overlays/README | 4 ++++
  7. arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts | 8 ++++++++
  8. 2 files changed, 12 insertions(+)
  9. --- a/arch/arm/boot/dts/overlays/README
  10. +++ b/arch/arm/boot/dts/overlays/README
  11. @@ -371,6 +371,8 @@ Info: Adds support for a number of I2C
  12. Load: dtoverlay=i2c-rtc,<param>=<val>
  13. Params: ds1307 Select the DS1307 device
  14. + ds1339 Select the DS1339 device
  15. +
  16. ds3231 Select the DS3231 device
  17. mcp7941x Select the MCP7941x device
  18. @@ -381,6 +383,8 @@ Params: ds1307 Select t
  19. pcf8563 Select the PCF8563 device
  20. + trickle-resistor-ohms Resistor value for trickle charge (DS1339-only)
  21. +
  22. Name: i2c0-bcm2708
  23. Info: Enable the i2c_bcm2708 driver for the i2c0 bus
  24. --- a/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
  25. +++ b/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
  26. @@ -17,6 +17,12 @@
  27. reg = <0x68>;
  28. status = "disable";
  29. };
  30. + ds1339: ds1339@68 {
  31. + compatible = "dallas,ds1339";
  32. + trickle-resistor-ohms = <0>;
  33. + reg = <0x68>;
  34. + status = "disable";
  35. + };
  36. mcp7941x: mcp7941x@6f {
  37. compatible = "microchip,mcp7941x";
  38. reg = <0x6f>;
  39. @@ -46,10 +52,12 @@
  40. };
  41. __overrides__ {
  42. ds1307 = <&ds1307>,"status";
  43. + ds1339 = <&ds1339>,"status";
  44. ds3231 = <&ds3231>,"status";
  45. mcp7941x = <&mcp7941x>,"status";
  46. pcf2127 = <&pcf2127>,"status";
  47. pcf8523 = <&pcf8523>,"status";
  48. pcf8563 = <&pcf8563>,"status";
  49. + trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0";
  50. };
  51. };