Skip to content

Commit 9e1f61c

Browse files
pelwellpopcornmix
authored andcommitted
overlays: Rebuild 5inch display from the 7inch
Reimplement the vc4-kms-dsi-ili9881-5inch display overlay by applying a few changes to the vc4-kms-dsi-ili9881-7inch version. In doing so, it inherits the rotation parameter that was previously absent, which then needs documenting. Signed-off-by: Phil Elwell <[email protected]>
1 parent 7f0522c commit 9e1f61c

File tree

2 files changed

+8
-115
lines changed

2 files changed

+8
-115
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5595,6 +5595,7 @@ Params: sizex Touchscreen size x (default 720)
55955595
invy Touchscreen inverted y axis
55965596
swapxy Touchscreen swapped x y axis
55975597
disable_touch Disables the touch screen overlay driver
5598+
rotation Display rotation {0,90,180,270} (default 0)
55985599
dsi0 Use DSI0 and i2c_csi_dsi0 (rather than
55995600
the default DSI1 and i2c_csi_dsi).
56005601

arch/arm/boot/dts/overlays/vc4-kms-dsi-ili9881-5inch-overlay.dts

Lines changed: 7 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -2,121 +2,13 @@
22
* vc4-kms-dsi-ili9881-5inch-overlay.dts
33
*/
44

5-
/dts-v1/;
6-
/plugin/;
5+
#include "vc4-kms-dsi-ili9881-7inch-overlay.dts"
76

8-
#include <dt-bindings/gpio/gpio.h>
9-
10-
/ {
11-
compatible = "brcm,bcm2835";
12-
13-
i2c_frag: fragment@0 {
14-
target = <&i2c_csi_dsi>;
15-
__overlay__ {
16-
#address-cells = <1>;
17-
#size-cells = <0>;
18-
status = "okay";
19-
20-
display_mcu: display_mcu@45
21-
{
22-
compatible = "raspberrypi,v2-touchscreen-panel-regulator";
23-
reg = <0x45>;
24-
gpio-controller;
25-
#gpio-cells = <2>;
26-
};
27-
28-
gt911: gt911@5d {
29-
compatible = "goodix,gt911";
30-
reg = <0x5d>;
31-
AVDD28-supply = <&touch_reg>;
32-
touchscreen-size-x = <720>;
33-
touchscreen-size-y = <1280>;
34-
touchscreen-x-mm = <62>;
35-
touchscreen-y-mm = <110>;
36-
};
37-
};
38-
};
39-
40-
dsi_frag: fragment@1 {
41-
target = <&dsi1>;
42-
__overlay__ {
43-
#address-cells = <1>;
44-
#size-cells = <0>;
45-
status = "okay";
46-
47-
port {
48-
dsi_out: endpoint {
49-
remote-endpoint = <&panel_in>;
50-
};
51-
};
52-
53-
dsi_panel: dsi_panel@0 {
54-
reg = <0>;
55-
compatible = "raspberrypi,dsi-5inch";
56-
reset-gpio = <&display_mcu 0 GPIO_ACTIVE_LOW>;
57-
backlight = <&display_mcu>;
58-
59-
port {
60-
panel_in: endpoint {
61-
remote-endpoint = <&dsi_out>;
62-
};
63-
};
64-
};
65-
};
66-
};
67-
68-
fragment@2 {
69-
target = <&i2c0if>;
70-
__overlay__ {
71-
status = "okay";
72-
};
73-
};
74-
75-
fragment@3 {
76-
target = <&i2c0mux>;
77-
__overlay__ {
78-
status = "okay";
79-
};
80-
};
81-
82-
fragment@4 {
83-
target-path = "/";
84-
__overlay__ {
85-
touch_reg: touch_reg@1 {
86-
reg = <1>;
87-
compatible = "regulator-fixed";
88-
regulator-name = "touch_reg_1";
89-
gpio = <&display_mcu 1 GPIO_ACTIVE_HIGH>;
90-
startup-delay-us = <50000>;
91-
enable-active-high;
92-
};
93-
};
94-
};
95-
96-
fragment@10 {
97-
target = <&gt911>;
98-
__dormant__ {
99-
touchscreen-inverted-x;
100-
};
101-
};
102-
103-
fragment@11 {
104-
target = <&gt911>;
105-
__dormant__ {
106-
touchscreen-inverted-y;
107-
};
108-
};
7+
&gt911 {
8+
touchscreen-x-mm = <62>;
9+
touchscreen-y-mm = <110>;
10+
};
10911

110-
__overrides__ {
111-
dsi0 = <&dsi_frag>, "target:0=",<&dsi0>,
112-
<&i2c_frag>, "target:0=",<&i2c_csi_dsi0>,
113-
<&touch_reg>, "reg:0=0",
114-
<&touch_reg>, "regulator-name=touch_reg_0";
115-
sizex = <&gt911>,"touchscreen-size-x:0";
116-
sizey = <&gt911>,"touchscreen-size-y:0";
117-
invx = <0>, "+10";
118-
invy = <0>, "+11";
119-
swapxy = <&gt911>,"touchscreen-swapped-x-y?";
120-
disable_touch = <&gt911>, "status=disabled";
121-
};
12+
&dsi_panel {
13+
compatible = "raspberrypi,dsi-5inch";
12214
};

0 commit comments

Comments
 (0)