0445-BCM270X-Add-the-DSI-and-DSI-panel-nodes-to-the-VC4-o.patch 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. From a5957ee5e1e3605c97c1282c21a0e799f81b49a1 Mon Sep 17 00:00:00 2001
  2. From: Eric Anholt <eric@anholt.net>
  3. Date: Thu, 2 Jun 2016 15:09:35 -0700
  4. Subject: [PATCH] BCM270X: Add the DSI and DSI panel nodes to the VC4 overlay.
  5. Signed-off-by: Eric Anholt <eric@anholt.net>
  6. ---
  7. arch/arm/boot/dts/bcm2708_common.dtsi | 24 ++++++++++++++++++++--
  8. arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dts | 16 +++++++++++++++
  9. 2 files changed, 38 insertions(+), 2 deletions(-)
  10. --- a/arch/arm/boot/dts/bcm2708_common.dtsi
  11. +++ b/arch/arm/boot/dts/bcm2708_common.dtsi
  12. @@ -2,6 +2,7 @@
  13. #include <dt-bindings/clock/bcm2835-aux.h>
  14. #include "dt-bindings/power/raspberrypi-power.h"
  15. #include "dt-bindings/gpio/gpio.h"
  16. +#include "dt-bindings/pinctrl/bcm2835.h"
  17. #include "skeleton.dtsi"
  18. / {
  19. @@ -110,9 +111,10 @@
  20. reg = <0x7e101000 0x2000>;
  21. /* CPRMAN derives everything from the platform's
  22. - * oscillator.
  23. + * oscillator except for a few clocks that may
  24. + * derive from something else derived from CPRMAN..
  25. */
  26. - clocks = <&clk_osc>;
  27. + clocks = <&clk_osc>, <&dsi1 0>, <&dsi1 1>, <&dsi1 2>;
  28. status = "disabled";
  29. };
  30. @@ -282,6 +284,24 @@
  31. status = "disabled";
  32. };
  33. + dsi1: dsi@7e700000 {
  34. + #address-cells = <1>;
  35. + #size-cells = <0>;
  36. + #clock-cells = <1>;
  37. +
  38. + compatible = "brcm,bcm2835-dsi1";
  39. + reg = <0x7e700000 0x8c>;
  40. + interrupts = <2 12>;
  41. +
  42. + clocks = <&cprman BCM2835_PLLD_DSI1>,
  43. + <&cprman BCM2835_CLOCK_DSI1E>,
  44. + <&cprman BCM2835_CLOCK_DSI1P>;
  45. + clock-names = "phy", "escape", "pixel";
  46. + clock-output-names = "dsi1_byte", "dsi1_ddr2", "dsi1_ddr";
  47. + status = "disabled";
  48. + power-domains = <&power RPI_POWER_DOMAIN_DSI1>;
  49. + };
  50. +
  51. i2c1: i2c@7e804000 {
  52. compatible = "brcm,bcm2708-i2c";
  53. reg = <0x7e804000 0x1000>;
  54. --- a/arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dts
  55. +++ b/arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dts
  56. @@ -126,6 +126,22 @@
  57. };
  58. };
  59. + fragment@16 {
  60. + target = <&dsi1>;
  61. + __overlay__ {
  62. + #address-cells = <1>;
  63. + #size-cells = <0>;
  64. + status = "okay";
  65. +
  66. + brcm,panel = <&pitouchscreen>;
  67. +
  68. + pitouchscreen: panel {
  69. + compatible = "raspberrypi,touchscreen";
  70. + reg = <0>;
  71. + };
  72. + };
  73. + };
  74. +
  75. __overrides__ {
  76. cma-256 = <0>,"+0-1-2-3-4";
  77. cma-192 = <0>,"-0+1-2-3-4";