0083-BCM2708_DT-Add-pcf8523-rtc-overlay.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. From 82fe3c57ba4c661c119a08567b9aaa5b63de07e1 Mon Sep 17 00:00:00 2001
  2. From: Phil Elwell <phil@raspberrypi.org>
  3. Date: Wed, 28 Jan 2015 16:22:04 +0000
  4. Subject: [PATCH 083/114] BCM2708_DT: Add pcf8523-rtc overlay
  5. ---
  6. arch/arm/boot/dts/Makefile | 1 +
  7. arch/arm/boot/dts/pcf8523-rtc-overlay.dts | 22 ++++++++++++++++++++++
  8. 2 files changed, 23 insertions(+)
  9. create mode 100644 arch/arm/boot/dts/pcf8523-rtc-overlay.dts
  10. --- a/arch/arm/boot/dts/Makefile
  11. +++ b/arch/arm/boot/dts/Makefile
  12. @@ -62,6 +62,7 @@ dtb-$(CONFIG_BCM2708_DT) += hifiberry-am
  13. dtb-$(CONFIG_BCM2708_DT) += iqaudio-dac-overlay.dtb
  14. dtb-$(CONFIG_BCM2708_DT) += iqaudio-dacplus-overlay.dtb
  15. dtb-$(CONFIG_BCM2708_DT) += lirc-rpi-overlay.dtb
  16. +dtb-$(CONFIG_BCM2708_DT) += pcf8523-rtc-overlay.dtb
  17. dtb-$(CONFIG_BCM2708_DT) += pps-gpio-overlay.dtb
  18. dtb-$(CONFIG_BCM2708_DT) += w1-gpio-overlay.dtb
  19. dtb-$(CONFIG_BCM2708_DT) += w1-gpio-pullup-overlay.dtb
  20. --- /dev/null
  21. +++ b/arch/arm/boot/dts/pcf8523-rtc-overlay.dts
  22. @@ -0,0 +1,22 @@
  23. +// Definitions for PCF8523 Real Time Clock
  24. +/dts-v1/;
  25. +/plugin/;
  26. +
  27. +/ {
  28. + compatible = "brcm,bcm2708";
  29. +
  30. + fragment@0 {
  31. + target = <&i2c1>;
  32. + __overlay__ {
  33. + #address-cells = <1>;
  34. + #size-cells = <0>;
  35. + status = "okay";
  36. +
  37. + pcf8523@68 {
  38. + compatible = "nxp,pcf8523";
  39. + reg = <0x68>;
  40. + status = "okay";
  41. + };
  42. + };
  43. + };
  44. +};