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