RK3399PRO 双LVDS怎么调也不行
DTS
&dsi {
status = "okay";
rockchip,lane-rate = <452>;
panel@0 {
compatible ="simple-panel-dsi";
reg = <0>;
backlight = <&backlight>;
enable-5v-gpios = <&gpio4 RK_PD6 GPIO_ACTIVE_HIGH>; //vcc_5v_en
enable-tc-gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>; //tc358775 power
reset-gpios = <&gpio4 RK_PD1 GPIO_ACTIVE_LOW>; //tc358775 reset
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>;
bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
dsi,lanes = <4>;
dsi,channel = <1>;
enable-delay-ms = <70>;
prepare-delay-ms = <12>;
unprepare-delay-ms = <12>;
disable-delay-ms = <30>;
size,width = <120>;
size,height = <170>;
status = "okay";
panel-init-sequence = [
29 02 06 3C 01 09 00 07 00
29 02 06 14 01 06 00 00 00
29 02 06 64 01 0B 00 00 00
29 02 06 68 01 0B 00 00 00
29 02 06 6C 01 0B 00 00 00
29 02 06 70 01 0B 00 00 00
29 02 06 34 01 1F 00 00 00
29 02 06 10 02 1F 00 00 00
29 02 06 04 01 01 00 00 00
29 02 06 04 02 01 00 00 00
29 02 06 50 04 30 01 F0 03 //framesync mode
29 02 06 54 04 32 00 32 00 //hsync_len = 0x32 hback_porch =0x32
29 02 06 58 04 38 04 32 00 //hactive = 0x438 hfront_porch=0x32
29 02 06 5C 04 12 00 0A 00 //vsync_len = 0x12 vback_porch =0x0A
29 02 06 60 04 80 07 0A 00 //vactive = 0x780 vfront_porch=0x0A
29 02 06 64 04 01 00 00 00
29 02 06 A0 04 06 80 44 00
29 02 06 A0 04 06 80 04 00
29 02 06 04 05 04 00 00 00
29 02 06 80 04 00 01 02 03
29 02 06 84 04 04 07 05 08
29 02 06 88 04 09 0A 0E 0F
29 02 06 8C 04 0B 0C 0D 10
29 02 06 90 04 16 17 11 12
29 02 06 94 04 13 14 15 1B
29 02 06 98 04 18 19 1A 06
//29 02 06 9C 04 31 04 00 00
29 02 06 9C 04 33 04 00 00
];
panel-exit-sequence = [
05 05 01 28
05 78 01 10
];
display-timings {
native-mode = <&timing0>;
timing0: timing0 {
clock-frequency = <66000000>; //@60
hactive = <1920>;
vactive = <1080>;
hsync-len = <10>;
hback-porch = <200>;
hfront-porch = <36>;
vsync-len = <6>;
vback-porch = <8>;
vfront-porch = <6>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
};
};
};
&route_dsi {
status = "disabled";
logo,mode = "center";
charge_logo,mode = "center";
logo,uboot = "logo.bmp";
logo,kernel = "logo_kernel.bmp";
connect = <&vopb_out_dsi>;
};
&route_hdmi {
status = "disabled";
logo,mode = "center";
};
面板是LG的 LD5500EUE 不管怎么调节 都是只有一多半的屏幕显示,而且关掉uboot LOGO后就黑屏了,什么都不显示了。
希望能在这里得到一些有用的信息,谢谢。
楼主最后点亮屏幕了么,可以交流一下不?
可以交流一下不 /*
* Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd
*
* This file is dual-licensed: you can use it either under the terms
* of the GPL or the X11 license, at your option. Note that this dual
* licensing only applies to this file, and not this project as a
* whole.
*
*a) This file is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This file is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
* GNU General Public License for more details.
*
* Or, alternatively,
*
*b) Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
/dts-v1/;
#include "rk3399pro-firefly-port.dtsi"
/ {
model = "RK3399pro-firefly-aiojd4 board 10.1 lvds (Android)";
compatible = "rockchip,rk3399pro-firefly-aiojd4-lvds", "rockchip,rk3399pro";
};
&backlight {
status = "okay";
pwms = <&pwm0 0 25000 1>;
brightness-levels = <
/*0 20202121222223
2324242525262627
2728282929303031
3132323333343435
3536363737383839
40*/41424344454647
4849505152535455
5657585960616263
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 = <&gpio1 RK_PC5 GPIO_ACTIVE_HIGH>;
};
&dsi {
status = "okay";
panel@0 {
compatible ="simple-panel-dsi";
reg = <0>;
rockchip,lane-rate = <862>;
backlight = <&backlight>;
enable-5v-gpios = <&gpio4 RK_PD6 GPIO_ACTIVE_HIGH>; //vcc_5v_en
enable-tc-gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>; //tc358775 power
reset-gpios = <&gpio4 RK_PD1 GPIO_ACTIVE_LOW>; //tc358775 reset
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>;
//bus-format = <MEDIA_BUS_FMT_RGB666_1X18>;
bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
dsi,lvds-force-clk = <800>; // 800/2/3 ~= 65Mhz
dsi,lanes = <4>;
dsi,channel = <0>;
enable-delay-ms = <35>;
prepare-delay-ms = <6>;
unprepare-delay-ms = <0>;
disable-delay-ms = <20>;
size,width = <120>;
size,height = <170>;
status = "okay";
panel-init-sequence = [
29 00 06 14 01 08 00 00 00
29 00 06 3c 01 0c 00 0a 00
29 00 06 64 01 0c 00 00 00
29 00 06 68 01 0c 00 00 00
29 00 06 6c 01 0c 00 00 00
29 00 06 70 01 0c 00 00 00
29 00 06 34 01 1f 00 00 00
29 00 06 10 02 1f 00 00 00
29 00 06 04 01 01 00 00 00
29 00 06 04 02 01 00 00 00
29 00 06 50 04 00 01 f0 03
29 00 06 54 04 14 00 64 00
29 00 06 58 04 80 07 a0 00
29 00 06 5c 04 0a 00 19 00
29 00 06 60 04 38 04 0a 00
29 00 06 64 04 01 00 00 00
29 00 06 a0 04 06 c0 00 00
29 00 06 04 05 04 00 00 00
29 00 06 80 04 00 01 02 03
29 00 06 84 04 04 07 05 08
29 00 06 88 04 09 0a 0e 0f
29 00 06 8c 04 0b 0c 0d 10
29 00 06 90 04 16 17 11 12
29 00 06 94 04 13 14 15 1b
29 14 06 98 04 18 19 1a 06
29 78 06 9c 04 33 04 00 00
];
panel-exit-sequence = [
05 05 01 28
05 78 01 10
];
display-timings {
native-mode = <&timing0>;
timing0: timing0 {
//32 inch screen
clock-frequency = <123750000>;
hactive = <1920>;
vactive = <1080>;
hback-porch = <100>;
hsync-len = <20>;
hfront-porch = <160>;
vback-porch = <25>;
vfront-porch = <10>;
vsync-len = <10>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
};
};
};
&route_dsi {
status = "okay";
logo,mode = "center";
charge_logo,mode = "center";
logo,uboot = "logo.bmp";
logo,kernel = "logo_kernel.bmp";
connect = <&vopb_out_dsi>;
};
&route_hdmi {
status = "okay";
logo,mode = "center";
};
//ubbot fb dsi0
&vopb_out_dsi {
status = "okay";
};
&vopl_out_dsi {
status = "disabled";
};
&dsi_in_vopl {
status = "disabled";
};
&dsi_in_vopb {
status = "okay";
};
&pwm0 {
status = "okay";
};
&hdmi {
status = "okay";
rockchip,phy-table =
<742500000x8009 0x0004 0x0272>,
<165000000 0x802b 0x0004 0x0209>,
<297000000 0x8039 0x0005 0x028d>,
<594000000 0x8039 0x0000 0x00f6>,
<000000000 0x0000 0x0000 0x0000>;
};
&hdmi_dp_sound {
status = "okay";
};
&hdmi_in_vopb {
status = "disabled";
};
&hdmi_in_vopl {
status = "okay";
};
&dp_in_vopb {
status = "disabled";
};
&vopb {
assigned-clocks = <&cru DCLK_VOP0_DIV>;
assigned-clock-parents = <&cru PLL_CPLL>;
};
&vopl {
assigned-clocks = <&cru DCLK_VOP1_DIV>;
assigned-clock-parents = <&cru PLL_VPLL>;
};
&i2c4 {
status = "okay";
i2c-scl-rising-time-ns = <345>;
i2c-scl-falling-time-ns = <11>;
gslx680: gslx680@41 {
status = "okay";
compatible = "gslX680";
reg = <0x41>;
screen_max_x = <800>;
screen_max_y = <1280>;
touch-gpio = <&gpio4 RK_PD5 IRQ_TYPE_LEVEL_LOW>;
reset-gpio = <&gpio4 RK_PD4 GPIO_ACTIVE_HIGH>;
flip-x = <1>;
flip-y = <0>;
swap-xy = <0>;
gsl,fw = <1>;
};
};
后来调好了,双LVDS 1080P的屏 需要的拿走吧
hh3151128 发表于 2020-10-12 10:21
楼主最后点亮屏幕了么,可以交流一下不?
调节好了,还是初始化序列的原因,楼下有dts 楼主,请教一下,为什么用你提供的TC358775的配置数据,用示波器测量LVDS数据没有输出 楼主,这个LVDS在UBUNTU下面点亮过吗 文档都好难下载到啊,感谢分享. 为啥我的 LVDS VCC引脚电压一直为 0 啊,始终点不亮屏……………………郁闷啊………………! 文档都好难下载到啊,感谢分享.
页:
[1]
2