0238-BCM270X_DT-Add-dpi24-overlay.patch 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. From 8f6cc1607cb38e53b0638be389fceaafb48b3f34 Mon Sep 17 00:00:00 2001
  2. From: Phil Elwell <phil@raspberrypi.org>
  3. Date: Tue, 5 Apr 2016 13:01:54 +0100
  4. Subject: [PATCH] BCM270X_DT: Add dpi24 overlay
  5. Signed-off-by: Phil Elwell <phil@raspberrypi.org>
  6. ---
  7. arch/arm/boot/dts/overlays/Makefile | 1 +
  8. arch/arm/boot/dts/overlays/README | 8 +++++++
  9. arch/arm/boot/dts/overlays/dpi24-overlay.dts | 31 ++++++++++++++++++++++++++++
  10. 3 files changed, 40 insertions(+)
  11. create mode 100644 arch/arm/boot/dts/overlays/dpi24-overlay.dts
  12. --- a/arch/arm/boot/dts/overlays/Makefile
  13. +++ b/arch/arm/boot/dts/overlays/Makefile
  14. @@ -15,6 +15,7 @@ endif
  15. dtbo-$(RPI_DT_OVERLAYS) += ads7846.dtbo
  16. dtbo-$(RPI_DT_OVERLAYS) += at86rf233.dtbo
  17. dtbo-$(RPI_DT_OVERLAYS) += bmp085_i2c-sensor.dtbo
  18. +dtbo-$(RPI_DT_OVERLAYS) += dpi24.dtbo
  19. dtbo-$(RPI_DT_OVERLAYS) += dwc2.dtbo
  20. dtbo-$(RPI_DT_OVERLAYS) += dwc-otg.dtbo
  21. dtbo-$(RPI_DT_OVERLAYS) += dht11.dtbo
  22. --- a/arch/arm/boot/dts/overlays/README
  23. +++ b/arch/arm/boot/dts/overlays/README
  24. @@ -213,6 +213,14 @@ Params: gpiopin GPIO con
  25. (default 4)
  26. +Name: dpi24
  27. +Info: Overlay for a generic 24-bit DPI display
  28. + This uses GPIOs 0-27 (so no I2C, uart etc.), and activates the output
  29. + 2-3 seconds after the kernel has started.
  30. +Load: dtoverlay=dpi24
  31. +Params: <None>
  32. +
  33. +
  34. Name: dwc-otg
  35. Info: Selects the dwc_otg USB controller driver which has fiq support. This
  36. is the default on all except the Pi Zero which defaults to dwc2.
  37. --- /dev/null
  38. +++ b/arch/arm/boot/dts/overlays/dpi24-overlay.dts
  39. @@ -0,0 +1,31 @@
  40. +/dts-v1/;
  41. +/plugin/;
  42. +
  43. +/{
  44. + compatible = "brcm,bcm2708";
  45. +
  46. + // There is no DPI driver module, but we need a platform device
  47. + // node (that doesn't already use pinctrl) to hang the pinctrl
  48. + // reference on - leds will do
  49. +
  50. + fragment@0 {
  51. + target = <&leds>;
  52. + __overlay__ {
  53. + pinctrl-names = "default";
  54. + pinctrl-0 = <&dpi24_pins>;
  55. + };
  56. + };
  57. +
  58. + fragment@1 {
  59. + target = <&gpio>;
  60. + __overlay__ {
  61. + dpi24_pins: dpi24_pins {
  62. + brcm,pins = <0 1 2 3 4 5 6 7 8 9 10 11
  63. + 12 13 14 15 16 17 18 19 20
  64. + 21 22 23 24 25 26 27>;
  65. + brcm,function = <6>; /* alt2 */
  66. + brcm,pull = <0>; /* no pull */
  67. + };
  68. + };
  69. + };
  70. +};