0087-Add-device-tree-overlay-for-ds1307.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. From fe72f81ecb7578418207444186fa035262530946 Mon Sep 17 00:00:00 2001
  2. From: Ryan Coe <bluemrp9@gmail.com>
  3. Date: Sat, 31 Jan 2015 18:26:03 -0700
  4. Subject: [PATCH 087/114] Add device-tree overlay for ds1307
  5. Signed-off-by: Ryan Coe <bluemrp9@gmail.com>
  6. ---
  7. arch/arm/boot/dts/Makefile | 1 +
  8. arch/arm/boot/dts/ds1307-rtc-overlay.dts | 22 ++++++++++++++++++++++
  9. 2 files changed, 23 insertions(+)
  10. create mode 100644 arch/arm/boot/dts/ds1307-rtc-overlay.dts
  11. --- a/arch/arm/boot/dts/Makefile
  12. +++ b/arch/arm/boot/dts/Makefile
  13. @@ -64,6 +64,7 @@ dtb-$(CONFIG_BCM2708_DT) += iqaudio-dacp
  14. dtb-$(CONFIG_BCM2708_DT) += lirc-rpi-overlay.dtb
  15. dtb-$(CONFIG_BCM2708_DT) += pcf8523-rtc-overlay.dtb
  16. dtb-$(CONFIG_BCM2708_DT) += pps-gpio-overlay.dtb
  17. +dtb-$(CONFIG_BCM2708_DT) += ds1307-rtc-overlay.dtb
  18. dtb-$(CONFIG_BCM2708_DT) += w1-gpio-overlay.dtb
  19. dtb-$(CONFIG_BCM2708_DT) += w1-gpio-pullup-overlay.dtb
  20. dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-b.dtb
  21. --- /dev/null
  22. +++ b/arch/arm/boot/dts/ds1307-rtc-overlay.dts
  23. @@ -0,0 +1,22 @@
  24. +// Definitions for DS1307 Real Time Clock
  25. +/dts-v1/;
  26. +/plugin/;
  27. +
  28. +/ {
  29. + compatible = "brcm,bcm2708";
  30. +
  31. + fragment@0 {
  32. + target = <&i2c1>;
  33. + __overlay__ {
  34. + #address-cells = <1>;
  35. + #size-cells = <0>;
  36. + status = "okay";
  37. +
  38. + ds1307@68 {
  39. + compatible = "maxim,ds1307";
  40. + reg = <0x68>;
  41. + status = "okay";
  42. + };
  43. + };
  44. + };
  45. +};