0138-dt-overlay-add-wittypi-overlay.dts.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. From 44c996c04b54ff4babbfb9432b3d82cb009e5d8c Mon Sep 17 00:00:00 2001
  2. From: vitalogy <vitalogy_github@milaw.biz>
  3. Date: Tue, 19 Jan 2016 07:02:02 +0100
  4. Subject: [PATCH 138/381] dt-overlay: add wittypi-overlay.dts
  5. ---
  6. arch/arm/boot/dts/overlays/wittypi-overlay.dts | 44 ++++++++++++++++++++++++++
  7. 1 file changed, 44 insertions(+)
  8. create mode 100644 arch/arm/boot/dts/overlays/wittypi-overlay.dts
  9. --- /dev/null
  10. +++ b/arch/arm/boot/dts/overlays/wittypi-overlay.dts
  11. @@ -0,0 +1,44 @@
  12. +/*
  13. + * Device Tree overlay for Witty Pi extension board by UUGear
  14. + *
  15. + */
  16. +
  17. +/dts-v1/;
  18. +/plugin/;
  19. +
  20. +/ {
  21. +
  22. + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
  23. +
  24. + fragment@0 {
  25. + target = <&leds>;
  26. + __overlay__ {
  27. + compatible = "gpio-leds";
  28. + wittypi_led: wittypi_led {
  29. + label = "wittypi_led";
  30. + linux,default-trigger = "default-on";
  31. + gpios = <&gpio 17 0>;
  32. + };
  33. + };
  34. + };
  35. +
  36. + fragment@1 {
  37. + target = <&i2c1>;
  38. + __overlay__ {
  39. + #address-cells = <1>;
  40. + #size-cells = <0>;
  41. +
  42. + rtc: ds1337@68 {
  43. + compatible = "dallas,ds1337";
  44. + reg = <0x68>;
  45. + wakeup-source;
  46. + };
  47. + };
  48. + };
  49. +
  50. + __overrides__ {
  51. + led_gpio = <&wittypi_led>,"gpios:4";
  52. + led_trigger = <&wittypi_led>,"linux,default-trigger";
  53. + };
  54. +
  55. +};