0109-Add-device-tree-overlay-for-pcf2127.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. From 37973590d43217e3f7c4d905578b1b3324ea45c4 Mon Sep 17 00:00:00 2001
  2. From: Byron Bradley <byronb@afterthoughtsoftware.com>
  3. Date: Fri, 6 Feb 2015 14:19:41 +0000
  4. Subject: [PATCH 109/114] Add device-tree overlay for pcf2127
  5. Signed-off-by: Byron Bradley <byronb@afterthoughtsoftware.com>
  6. ---
  7. arch/arm/boot/dts/Makefile | 1 +
  8. arch/arm/boot/dts/pcf2127-rtc-overlay.dts | 22 ++++++++++++++++++++++
  9. 2 files changed, 23 insertions(+)
  10. create mode 100644 arch/arm/boot/dts/pcf2127-rtc-overlay.dts
  11. --- a/arch/arm/boot/dts/Makefile
  12. +++ b/arch/arm/boot/dts/Makefile
  13. @@ -72,6 +72,7 @@ dtb-$(RPI_DT_OVERLAYS) += hifiberry-amp-
  14. dtb-$(RPI_DT_OVERLAYS) += iqaudio-dac-overlay.dtb
  15. dtb-$(RPI_DT_OVERLAYS) += iqaudio-dacplus-overlay.dtb
  16. dtb-$(RPI_DT_OVERLAYS) += lirc-rpi-overlay.dtb
  17. +dtb-$(RPI_DT_OVERLAYS) += pcf2127-rtc-overlay.dtb
  18. dtb-$(RPI_DT_OVERLAYS) += pcf8523-rtc-overlay.dtb
  19. dtb-$(RPI_DT_OVERLAYS) += pps-gpio-overlay.dtb
  20. dtb-$(RPI_DT_OVERLAYS) += w1-gpio-overlay.dtb
  21. --- /dev/null
  22. +++ b/arch/arm/boot/dts/pcf2127-rtc-overlay.dts
  23. @@ -0,0 +1,22 @@
  24. +// Definitions for PCF2127 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. + pcf2127@51 {
  39. + compatible = "nxp,pcf2127";
  40. + reg = <0x51>;
  41. + status = "okay";
  42. + };
  43. + };
  44. + };
  45. +};