屏幕已成功点亮,但是I2C触控失效,有TP_INT管脚有反应,但I2C SCL和SDA没有数据
本帖最后由 helloTom 于 2022-11-8 14:06 编辑屏幕已成功点亮,示波器的TP_INT管脚只能拉到1.8V,dmesg保存在Log日志当中
修改了rk3566-roc-pc-mipi101_M101014_BE45_A1.dts修改如下:
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2020 Rockchip Electronics Co., Ltd.
*
*/
/dts-v1/;
#include "rk3566-roc-pc.dtsi"
/*
* Select one of the two
* using single camera xc7160 ----> rk3566-roc-pc-cam-8ms1m.dtsi
* using dual camera gc2053/gc2093 ----> rk3566-roc-pc-cam-2ms2m.dtsi
*/
#include "rk3566-roc-pc-cam-8ms1m.dtsi"
//#include "rk3566-roc-pc-cam-2ms2m.dtsi"
/ {
model = "ROC-RK3566-PC MIPI101 M101014-BE45-A1(Android)";
compatible = "rockchip,rk3566-roc-pc-mipi", "rockchip,rk3566";
backlight:backlight {
status = "okay";
compatible = "pwm-backlight";
pwms = <&pwm4 0 50000 1>;
brightness-levels = <
6060606060606060
6060606060606060
6060606060606060
6060606060606060
6060606060606060
6060606060606060
6060606060606060
6060606060616263
6465666768697071
7273747576777879
8081828384858687
8889909192939495
96979899 100 101 102 103
104 105 106 107 108 109 110 111
112 113 114 115 116 117 118 119
120 121 122 123 124 125 126 127
128 129 130 131 132 133 134 135
136 137 138 139 140 141 142 143
144 145 146 147 148 149 150 151
152 153 154 155 156 157 158 159
160 161 162 163 164 165 166 167
168 169 170 171 172 173 174 175
176 177 178 179 180 181 182 183
184 185 186 187 188 189 190 191
192 193 194 195 196 197 198 199
200 201 202 203 204 205 206 207
208 209 210 211 212 213 214 215
216 217 218 219 220 221 222 223
224 225 226 227 228 229 230 231
232 233 234 235 236 237 238 239
240 241 242 243 244 245 246 247
248 249 250 251 252 253 254 255
>;
default-brightness-level = <200>;
//enable-gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
polarity = <1>;
};
};
&pwm4{
status = "okay";
};
//disabled dsi1
&dsi1 {
status = "disabled";
};
&dsi1_in_vp0 {
status = "disabled";
};
&dsi1_in_vp1 {
status = "disabled";
};
&video_phy1 {
status = "disabled";
};
//open hdmi(vop0) extend
&hdmi{
status = "disabled";
};
&hdmi_in_vp1{
status = "disabled";
};
&hdmi_in_vp0{
status = "disabled";
};
&route_hdmi{
status="disabled";
connect = <&vp0_out_hdmi>;
};
//open dsi0(vop1)main
&route_dsi0 {
status = "okay";
logo,rotation = <270>; //support rotation 90,180,270
connect = <&vp1_out_dsi0>;
};
&dsi0_in_vp0 {
status = "disabled";
};
&dsi0_in_vp1 {
status = "okay";
};
&video_phy0 {
status = "okay";
};
&dsi0 {
status = "okay";
//rockchip,lane-rate = <500>;
dsi0_panel: panel@0 {
status = "okay";
compatible = "simple-panel-dsi";
reg = <0>;
backlight = <&backlight>;
reset-gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_LOW>;
//enable-on-always = <0>;
//enable-gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
reset-delay-ms = <1>;
init-delay-ms = <10>;
size,width = <120>;
size,height = <170>;
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
dsi,format = <MIPI_DSI_FMT_RGB888>;
dsi,lanes= <4>;
panel-init-sequence = [
39 00 04 FF 98 81 03
15 00 02 01 00
15 00 02 02 00
15 00 02 03 72
15 00 02 04 00
15 00 02 05 00
15 00 02 06 09
15 00 02 07 00
15 00 02 08 00
15 00 02 09 01
15 00 02 0a 00
15 00 02 0b 00
15 00 02 0c 01
15 00 02 0d 00
15 00 02 0e 00
15 00 02 0f 00
15 00 02 10 00
15 00 02 11 00
15 00 02 12 00
15 00 02 13 00
15 00 02 14 00
15 00 02 15 00
15 00 02 16 00
15 00 02 17 00
15 00 02 18 00
15 00 02 19 00
15 00 02 1a 00
15 00 02 1b 00
15 00 02 1c 00
15 00 02 1d 00
15 00 02 1e 40
15 00 02 1f 80
15 00 02 20 05
15 00 02 21 02
15 00 02 22 00
15 00 02 23 00
15 00 02 24 00
15 00 02 25 00
15 00 02 26 00
15 00 02 27 00
15 00 02 28 33
15 00 02 29 02
15 00 02 2a 00
15 00 02 2b 00
15 00 02 2c 00
15 00 02 2d 00
15 00 02 2e 00
15 00 02 2f 00
15 00 02 30 00
15 00 02 31 00
15 00 02 32 00
15 00 02 33 00
15 00 02 34 04
15 00 02 35 00
15 00 02 36 00
15 00 02 37 00
15 00 02 38 3c
15 00 02 39 00
15 00 02 3a 40
15 00 02 3b 40
15 00 02 3c 00
15 00 02 3d 00
15 00 02 3e 00
15 00 02 3f 00
15 00 02 40 00
15 00 02 41 00
15 00 02 42 00
15 00 02 43 00
15 00 02 44 00
15 00 02 50 01
15 00 02 51 23
15 00 02 52 45
15 00 02 53 67
15 00 02 54 89
15 00 02 55 ab
15 00 02 56 01
15 00 02 57 23
15 00 02 58 45
15 00 02 59 67
15 00 02 5a 89
15 00 02 5b ab
15 00 02 5c cd
15 00 02 5d ef
15 00 02 5e 11
15 00 02 5f 01
15 00 02 60 00
15 00 02 61 15
15 00 02 62 14
15 00 02 63 0E
15 00 02 64 0F
15 00 02 65 0C
15 00 02 66 0D
15 00 02 67 06
15 00 02 68 02
15 00 02 69 02
15 00 02 6a 02
15 00 02 6b 02
15 00 02 6c 02
15 00 02 6d 02
15 00 02 6e 07
15 00 02 6f 02
15 00 02 70 02
15 00 02 71 02
15 00 02 72 02
15 00 02 73 02
15 00 02 74 02
15 00 02 75 01
15 00 02 76 00
15 00 02 77 14
15 00 02 78 15
15 00 02 79 0E
15 00 02 7a 0F
15 00 02 7b 0C
15 00 02 7c 0D
15 00 02 7d 06
15 00 02 7e 02
15 00 02 7f 07
15 00 02 80 02
15 00 02 81 02
15 00 02 82 02
15 00 02 83 02
15 00 02 84 07
15 00 02 85 02
15 00 02 86 02
15 00 02 87 02
15 00 02 88 02
15 00 02 89 02
15 00 02 8A 02
39 00 04 FF 98 81 04
15 00 02 6C 15
15 00 02 6E 2A
15 00 02 6F 33
15 00 02 3A 94
15 00 02 8D 1A
15 00 02 87 BA
15 00 02 26 76
15 00 02 B2 D1
15 00 02 B5 06
39 00 04 FF 98 81 01
15 00 02 22 0A
15 00 02 31 00
15 00 02 53 8A
15 00 02 55 8A
15 00 02 50 AE
15 00 02 51 AE
15 00 02 60 28
15 00 02 61 00
15 00 02 62 19
15 00 02 63 10
15 00 02 A0 0F
15 00 02 A1 1B
15 00 02 A2 28
15 00 02 A3 12
15 00 02 A4 15
15 00 02 A5 28
15 00 02 A6 1B
15 00 02 A7 1E
15 00 02 A8 79
15 00 02 A9 1B
15 00 02 AA 27
15 00 02 AB 69
15 00 02 AC 19
15 00 02 AD 18
15 00 02 AE 4C
15 00 02 AF 21
15 00 02 B0 28
15 00 02 B1 52
15 00 02 B2 65
15 00 02 B3 3F
15 00 02 C0 04
15 00 02 C1 1B
15 00 02 C2 27
15 00 02 C3 13
15 00 02 C4 15
15 00 02 C5 28
15 00 02 C6 1C
15 00 02 C7 1E
15 00 02 C8 79
15 00 02 C9 1A
15 00 02 CA 27
15 00 02 CB 69
15 00 02 CC 1A
15 00 02 CD 18
15 00 02 CE 4C
15 00 02 CF 21
15 00 02 D0 27
15 00 02 D1 52
15 00 02 D2 65
15 00 02 D3 3F
39 00 04 FF 98 81 00
15 00 02 35 00
15 00 02 3A 70
05 78 01 11
05 19 01 29
39 00 04 FF 98 81 04
15 00 02 2D 03
15 00 02 2F 01
];
panel-exit-sequence = [
05 78 01 11
05 00 01 29
];
display-timings {
native-mode = <&timing1>;
timing1: timing1 {
clock-frequency = <63000000>;//<80000000>;
hactive = <720>;//<768>;
vactive = <1280>;
hsync-len = <20>; //20, 50,10
hback-porch = <40>; //50, 56,10
hfront-porch = <40>;//50, 30,180
vsync-len = <8>;//4
vback-porch = <16>;//4
vfront-porch = <16>;//8
hsync-active = <0>;
vsync-active = <0>;
de-active = <1>;
pixelclk-active = <0>;
};
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
panel_in_dsi: endpoint {
remote-endpoint = <&dsi_out_panel>;
};
};
};
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@1 {
reg = <1>;
dsi_out_panel: endpoint {
remote-endpoint = <&panel_in_dsi>;
};
};
};
};
&i2c2 {
status = "okay";
gt911@5d {
status = "okay";
compatible = "goodix,gt911";
reg = <0x5d>;
pinctrl-names = "default";
pinctrl-0 = <&tp_gpio>;
irq-gpios = <&gpio0 RK_PA5 IRQ_TYPE_LEVEL_HIGH>;
reset-gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
max-x = <720>;
max-y = <1280>;
};
};
&pinctrl{
touch{
tp_gpio:tp-gpio{
rockchip,pins =
<0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>,
<0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};
/delete-node/ &vcc3v3_lcd0_n;
/delete-node/ &vcc3v3_lcd1_n;
1. 如果中断是正常的,可以看一下i2c的通讯是否正常
2.log 看不出有用的信息
3. 你所用的TP 驱动没有用过,可以试下下面的驱动
goodix_ts@5d {
status = "okay";
compatible = "goodix,gt9xxx";
reg = <0x5d>;
interrupt-parent = <&gpio0>;
interrupts = <0 17 0x2008 0>;
//goodix,pwr-gpio = <&gpio4 RK_PC5 GPIO_ACTIVE_HIGH>;
goodix,rst-gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
goodix,irq-gpio = <&gpio0 RK_PA5 IRQ_TYPE_LEVEL_LOW>;
flip-x = <1>;
flip-y = <1>;
/*
goodix,cfg-group0 = [
42 D0 02 00 05 05 75 01 01 0F 24
0F 64 3C 03 05 00 00 00 02 00 00
00 16 19 1C 14 8C 0E 0E 24 00 31
0D 00 00 00 83 33 1D 00 41 00 00
00 00 00 08 0A 00 2B 1C 3C 94 D5
03 08 00 00 04 93 1E 00 82 23 00
74 29 00 69 2F 00 5F 37 00 5F 20
40 60 00 F0 40 30 55 50 27 00 00
00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 14 19 00 00
50 50 02 04 06 08 0A 0C 0E 10 12
14 16 18 1A 1C 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 1D
1E 1F 20 21 22 24 26 28 29 2A 1C
18 16 14 13 12 10 0F 0C 0A 08 06
04 02 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 9C 01];
*/
}; luwy 发表于 2022-11-9 09:26
1. 如果中断是正常的,可以看一下i2c的通讯是否正常
2.log 看不出有用的信息
3. 你所用的TP 驱动没有用过 ...
1. I2C通讯没数据
3. 好的 我去尝试一下
感谢!!!
页:
[1]