|
2 | 2 | * vc4-kms-dsi-ili9881-5inch-overlay.dts |
3 | 3 | */ |
4 | 4 |
|
5 | | -/dts-v1/; |
6 | | -/plugin/; |
| 5 | +#include "vc4-kms-dsi-ili9881-7inch-overlay.dts" |
7 | 6 |
|
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 = <>911>; |
98 | | - __dormant__ { |
99 | | - touchscreen-inverted-x; |
100 | | - }; |
101 | | - }; |
102 | | - |
103 | | - fragment@11 { |
104 | | - target = <>911>; |
105 | | - __dormant__ { |
106 | | - touchscreen-inverted-y; |
107 | | - }; |
108 | | - }; |
| 7 | +>911 { |
| 8 | + touchscreen-x-mm = <62>; |
| 9 | + touchscreen-y-mm = <110>; |
| 10 | +}; |
109 | 11 |
|
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 = <>911>,"touchscreen-size-x:0"; |
116 | | - sizey = <>911>,"touchscreen-size-y:0"; |
117 | | - invx = <0>, "+10"; |
118 | | - invy = <0>, "+11"; |
119 | | - swapxy = <>911>,"touchscreen-swapped-x-y?"; |
120 | | - disable_touch = <>911>, "status=disabled"; |
121 | | - }; |
| 12 | +&dsi_panel { |
| 13 | + compatible = "raspberrypi,dsi-5inch"; |
122 | 14 | }; |
0 commit comments