Firefly开源社区

12
发表新贴

[Android] RK3399PRO 双LVDS怎么调也不行

79

积分

0

威望

0

贡献

技术小白

积分
79
发表于 2020-7-2 16:56:50     
1.png


DTS

  1. &dsi {
  2.         status = "okay";
  3.         rockchip,lane-rate = <452>;
  4.         panel@0 {
  5.                 compatible ="simple-panel-dsi";
  6.                 reg = <0>;
  7.                 backlight = <&backlight>;

  8.                 enable-5v-gpios = <&gpio4 RK_PD6 GPIO_ACTIVE_HIGH>; //vcc_5v_en
  9.                 enable-tc-gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>; //tc358775 power
  10.                 reset-gpios = <&gpio4 RK_PD1 GPIO_ACTIVE_LOW>; //tc358775 reset


  11.                 dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
  12.                 dsi,format = <MIPI_DSI_FMT_RGB888>;
  13.                 bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;      
  14.                 dsi,lanes = <4>;

  15.         dsi,channel = <1>;

  16.         enable-delay-ms = <70>;
  17.         prepare-delay-ms = <12>;

  18.         unprepare-delay-ms = <12>;
  19.         disable-delay-ms = <30>;

  20.         size,width = <120>;
  21.         size,height = <170>;
  22.         status = "okay";
  23.                
  24.        
  25.                
  26.         panel-init-sequence = [                 
  27.                 29 02 06 3C 01 09 00 07 00                     
  28.                 29 02 06 14 01 06 00 00 00                     
  29.                 29 02 06 64 01 0B 00 00 00                     
  30.                 29 02 06 68 01 0B 00 00 00                     
  31.                 29 02 06 6C 01 0B 00 00 00                     
  32.                 29 02 06 70 01 0B 00 00 00                     
  33.                 29 02 06 34 01 1F 00 00 00                     
  34.                 29 02 06 10 02 1F 00 00 00                     
  35.                 29 02 06 04 01 01 00 00 00                     
  36.                 29 02 06 04 02 01 00 00 00                     
  37.                 29 02 06 50 04 30 01 F0 03       //framesync mode
  38.                 29 02 06 54 04 32 00 32 00      //hsync_len = 0x32    hback_porch =0x32
  39.                 29 02 06 58 04 38 04 32 00      //hactive   = 0x438   hfront_porch=0x32
  40.                 29 02 06 5C 04 12 00 0A 00      //vsync_len = 0x12    vback_porch =0x0A
  41.                 29 02 06 60 04 80 07 0A 00      //vactive   = 0x780   vfront_porch=0x0A

  42.                 29 02 06 64 04 01 00 00 00                     
  43.                 29 02 06 A0 04 06 80 44 00                     
  44.                 29 02 06 A0 04 06 80 04 00
  45.                 29 02 06 04 05 04 00 00 00                     
  46.                 29 02 06 80 04 00 01 02 03                     
  47.                 29 02 06 84 04 04 07 05 08                     
  48.                 29 02 06 88 04 09 0A 0E 0F                     
  49.                 29 02 06 8C 04 0B 0C 0D 10                     
  50.                 29 02 06 90 04 16 17 11 12                     
  51.                 29 02 06 94 04 13 14 15 1B                     
  52.                 29 02 06 98 04 18 19 1A 06
  53.                 //29 02 06 9C 04 31 04 00 00   
  54.                         29 02 06 9C 04 33 04 00 00                        
  55.         ];
  56.                

  57.                 panel-exit-sequence = [
  58.                         05 05 01 28
  59.                         05 78 01 10
  60.                 ];
  61.                                

  62.        
  63.        



  64.                 display-timings {
  65.                         native-mode = <&timing0>;
  66.                         timing0: timing0 {
  67.                                 clock-frequency = <66000000>; //@60
  68.                                 hactive = <1920>;
  69.                                 vactive = <1080>;
  70.                                 hsync-len = <10>;
  71.                                 hback-porch = <200>;
  72.                                 hfront-porch = <36>;
  73.                                 vsync-len = <6>;
  74.                                 vback-porch = <8>;
  75.                                 vfront-porch = <6>;
  76.                                 hsync-active = <0>;
  77.                                 vsync-active = <0>;
  78.                                 de-active = <0>;
  79.                                 pixelclk-active = <0>;
  80.                         };
  81.                 };
  82.         };
  83. };

  84. &route_dsi {
  85.         status = "disabled";
  86.         logo,mode = "center";
  87.         charge_logo,mode = "center";
  88.         logo,uboot = "logo.bmp";
  89.         logo,kernel = "logo_kernel.bmp";
  90.         connect = <&vopb_out_dsi>;
  91. };

  92. &route_hdmi {
  93.         status = "disabled";
  94.         logo,mode = "center";
  95. };
复制代码
2.PNG

rk3399pro-firefly-aiojd4-lvds-HSX101H40C.zip (3.31 KB, 下载次数: 4)
回复

使用道具 举报

190

积分

0

威望

0

贡献

技术小白

积分
190
发表于 2020-10-12 10:21:30     
楼主最后点亮屏幕了么,可以交流一下不?
回复

使用道具 举报

72

积分

0

威望

0

贡献

技术小白

积分
72
发表于 2020-10-19 20:45:36     
可以交流一下不
回复

使用道具 举报

79

积分

0

威望

0

贡献

技术小白

积分
79
发表于 2020-11-9 15:50:59     
  1. /*
  2. * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd
  3. *
  4. * This file is dual-licensed: you can use it either under the terms
  5. * of the GPL or the X11 license, at your option. Note that this dual
  6. * licensing only applies to this file, and not this project as a
  7. * whole.
  8. *
  9. *  a) This file is free software; you can redistribute it and/or
  10. *     modify it under the terms of the GNU General Public License as
  11. *     published by the Free Software Foundation; either version 2 of the
  12. *     License, or (at your option) any later version.
  13. *
  14. *     This file is distributed in the hope that it will be useful,
  15. *     but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17. *     GNU General Public License for more details.
  18. *
  19. * Or, alternatively,
  20. *
  21. *  b) Permission is hereby granted, free of charge, to any person
  22. *     obtaining a copy of this software and associated documentation
  23. *     files (the "Software"), to deal in the Software without
  24. *     restriction, including without limitation the rights to use,
  25. *     copy, modify, merge, publish, distribute, sublicense, and/or
  26. *     sell copies of the Software, and to permit persons to whom the
  27. *     Software is furnished to do so, subject to the following
  28. *     conditions:
  29. *
  30. *     The above copyright notice and this permission notice shall be
  31. *     included in all copies or substantial portions of the Software.
  32. *
  33. *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  34. *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  35. *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  36. *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  37. *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  38. *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  39. *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  40. *     OTHER DEALINGS IN THE SOFTWARE.
  41. */

  42. /dts-v1/;
  43. #include "rk3399pro-firefly-port.dtsi"

  44. / {
  45.         model = "RK3399pro-firefly-aiojd4 board 10.1 lvds (Android)";
  46.         compatible = "rockchip,rk3399pro-firefly-aiojd4-lvds", "rockchip,rk3399pro";

  47. };

  48. &backlight {
  49.                 status = "okay";
  50.                 pwms = <&pwm0 0 25000 1>;
  51.                 brightness-levels = <
  52.                          /*0 20  20  21  21  22  22  23
  53.                          23  24  24  25  25  26  26  27
  54.                          27  28  28  29  29  30  30  31
  55.                          31  32  32  33  33  34  34  35
  56.                          35  36  36  37  37  38  38  39
  57.                          40*/41  42  43  44  45  46  47
  58.                          48  49  50  51  52  53  54  55
  59.                          56  57  58  59  60  61  62  63
  60.                          64  65  66  67  68  69  70  71
  61.                          72  73  74  75  76  77  78  79
  62.                          80  81  82  83  84  85  86  87
  63.                          88  89  90  91  92  93  94  95
  64.                          96  97  98  99 100 101 102 103
  65.                         104 105 106 107 108 109 110 111
  66.                         112 113 114 115 116 117 118 119
  67.                         120 121 122 123 124 125 126 127
  68.                         128 129 130 131 132 133 134 135
  69.                         136 137 138 139 140 141 142 143
  70.                         144 145 146 147 148 149 150 151
  71.                         152 153 154 155 156 157 158 159
  72.                         160 161 162 163 164 165 166 167
  73.                         168 169 170 171 172 173 174 175
  74.                         176 177 178 179 180 181 182 183
  75.                         184 185 186 187 188 189 190 191
  76.                         192 193 194 195 196 197 198 199
  77.                         200 201 202 203 204 205 206 207
  78.                         208 209 210 211 212 213 214 215
  79.                         216 217 218 219 220 221 222 223
  80.                         224 225 226 227 228 229 230 231
  81.                         232 233 234 235 236 237 238 239
  82.                         240 241 242 243 244 245 246 247
  83.                         248 249 250 251 252 253 254 255
  84.                 >;
  85.                 default-brightness-level = <200>;
  86.                 enable-gpios = <&gpio1 RK_PC5 GPIO_ACTIVE_HIGH>;
  87. };

  88. &dsi {
  89.         status = "okay";
  90.         panel@0 {
  91.                 compatible ="simple-panel-dsi";
  92.                 reg = <0>;
  93.                 rockchip,lane-rate = <862>;
  94.                 backlight = <&backlight>;

  95.                 enable-5v-gpios = <&gpio4 RK_PD6 GPIO_ACTIVE_HIGH>; //vcc_5v_en
  96.                 enable-tc-gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>; //tc358775 power
  97.                 reset-gpios = <&gpio4 RK_PD1 GPIO_ACTIVE_LOW>; //tc358775 reset


  98.                 dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
  99.                 dsi,format = <MIPI_DSI_FMT_RGB888>;
  100.                 //bus-format = <MEDIA_BUS_FMT_RGB666_1X18>;
  101.                                 bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
  102.                 dsi,lvds-force-clk = <800>; // 800/2/3 ~= 65Mhz
  103.                 dsi,lanes = <4>;

  104.         dsi,channel = <0>;

  105.         enable-delay-ms = <35>;
  106.         prepare-delay-ms = <6>;

  107.         unprepare-delay-ms = <0>;
  108.         disable-delay-ms = <20>;

  109.         size,width = <120>;
  110.         size,height = <170>;
  111.         status = "okay";
  112.          panel-init-sequence = [
  113.                         29 00 06 14 01 08 00 00 00
  114.                         29 00 06 3c 01 0c 00 0a 00
  115.                         29 00 06 64 01 0c 00 00 00
  116.                         29 00 06 68 01 0c 00 00 00
  117.                         29 00 06 6c 01 0c 00 00 00
  118.                         29 00 06 70 01 0c 00 00 00
  119.                         29 00 06 34 01 1f 00 00 00
  120.                         29 00 06 10 02 1f 00 00 00
  121.                         29 00 06 04 01 01 00 00 00
  122.                         29 00 06 04 02 01 00 00 00
  123.                         29 00 06 50 04 00 01 f0 03
  124.                         29 00 06 54 04 14 00 64 00
  125.                         29 00 06 58 04 80 07 a0 00
  126.                         29 00 06 5c 04 0a 00 19 00
  127.                         29 00 06 60 04 38 04 0a 00
  128.                         29 00 06 64 04 01 00 00 00
  129.                         29 00 06 a0 04 06 c0 00 00
  130.                         29 00 06 04 05 04 00 00 00
  131.                         29 00 06 80 04 00 01 02 03
  132.                         29 00 06 84 04 04 07 05 08
  133.                         29 00 06 88 04 09 0a 0e 0f
  134.                         29 00 06 8c 04 0b 0c 0d 10
  135.                         29 00 06 90 04 16 17 11 12
  136.                         29 00 06 94 04 13 14 15 1b
  137.                         29 14 06 98 04 18 19 1a 06
  138.                         29 78 06 9c 04 33 04 00 00      
  139.                 ];      

  140.                 panel-exit-sequence = [
  141.                         05 05 01 28
  142.                         05 78 01 10
  143.                 ];

  144.                 display-timings {
  145.                                           native-mode = <&timing0>;
  146.                                            timing0: timing0 {
  147.                                 //32 inch screen
  148.                                 clock-frequency = <123750000>;
  149.                                                                
  150.                                 hactive = <1920>;
  151.                                 vactive = <1080>;

  152.                                 hback-porch = <100>;
  153.                                 hsync-len = <20>;
  154.                                 hfront-porch = <160>;
  155.                                 vback-porch = <25>;
  156.                                 vfront-porch = <10>;
  157.                                 vsync-len = <10>;
  158.                                 hsync-active = <0>;
  159.                                 vsync-active = <0>;
  160.                                 de-active = <0>;
  161.                                 pixelclk-active = <0>;
  162.                         };
  163.                                       };
  164.                 };
  165. };

  166. &route_dsi {
  167.         status = "okay";
  168.         logo,mode = "center";
  169.         charge_logo,mode = "center";
  170.         logo,uboot = "logo.bmp";
  171.         logo,kernel = "logo_kernel.bmp";
  172.         connect = <&vopb_out_dsi>;
  173. };

  174. &route_hdmi {
  175.         status = "okay";
  176.         logo,mode = "center";
  177. };

  178. //ubbot fb dsi0
  179. &vopb_out_dsi {
  180.         status = "okay";
  181. };
  182. &vopl_out_dsi {
  183.         status = "disabled";
  184. };

  185. &dsi_in_vopl {
  186.     status = "disabled";
  187. };

  188. &dsi_in_vopb {
  189.     status = "okay";
  190. };


  191. &pwm0 {
  192.         status = "okay";
  193. };

  194. &hdmi {
  195.     status = "okay";
  196.         rockchip,phy-table =
  197.         <74250000  0x8009 0x0004 0x0272>,
  198.         <165000000 0x802b 0x0004 0x0209>,
  199.         <297000000 0x8039 0x0005 0x028d>,
  200.         <594000000 0x8039 0x0000 0x00f6>,
  201.         <000000000 0x0000 0x0000 0x0000>;
  202. };

  203. &hdmi_dp_sound {
  204.         status = "okay";
  205. };

  206. &hdmi_in_vopb {
  207.         status = "disabled";
  208. };

  209. &hdmi_in_vopl {
  210.     status = "okay";
  211. };

  212. &dp_in_vopb {
  213.         status = "disabled";
  214. };

  215. &vopb {
  216.     assigned-clocks = <&cru DCLK_VOP0_DIV>;
  217.     assigned-clock-parents = <&cru PLL_CPLL>;
  218. };

  219. &vopl {
  220.     assigned-clocks = <&cru DCLK_VOP1_DIV>;
  221.     assigned-clock-parents = <&cru PLL_VPLL>;
  222. };

  223. &i2c4 {                                                                                                                                                                 
  224.     status = "okay";
  225.     i2c-scl-rising-time-ns = <345>;
  226.     i2c-scl-falling-time-ns = <11>;

  227.     gslx680: gslx680@41 {
  228.         status = "okay";
  229.         compatible = "gslX680";
  230.         reg = <0x41>;
  231.         screen_max_x = <800>;
  232.         screen_max_y = <1280>;
  233.         touch-gpio = <&gpio4 RK_PD5 IRQ_TYPE_LEVEL_LOW>;
  234.         reset-gpio = <&gpio4 RK_PD4 GPIO_ACTIVE_HIGH>;
  235.         flip-x = <1>;
  236.         flip-y = <0>;
  237.         swap-xy = <0>;
  238.         gsl,fw = <1>;
  239.         };
  240. };
复制代码


后来调好了,双LVDS 1080P的屏 需要的拿走吧
回复

使用道具 举报

79

积分

0

威望

0

贡献

技术小白

积分
79
发表于 2020-11-9 16:44:54     
hh3151128 发表于 2020-10-12 10:21
楼主最后点亮屏幕了么,可以交流一下不?

调节好了,还是初始化序列的原因,楼下有dts
回复

使用道具 举报

3

积分

0

威望

0

贡献

吃瓜的群众

积分
3
发表于 2020-12-25 16:54:30     
楼主,请教一下,为什么用你提供的TC358775的配置数据,用示波器测量LVDS数据没有输出
回复

使用道具 举报

76

积分

0

威望

0

贡献

技术小白

积分
76
发表于 2021-11-12 11:16:38     
楼主,这个LVDS在UBUNTU下面点亮过吗
回复

使用道具 举报

17

积分

0

威望

0

贡献

技术小白

积分
17
发表于 2021-11-23 10:21:14     
文档都好难下载到啊,感谢分享.
回复

使用道具 举报

49

积分

0

威望

0

贡献

技术小白

积分
49
发表于 2022-3-13 15:50:41     
为啥我的 LVDS VCC引脚电压一直为 0 啊,始终点不亮屏……………………郁闷啊………………!
回复

使用道具 举报

8

积分

0

威望

0

贡献

吃瓜的群众

积分
8
发表于 2022-4-18 17:37:06     
文档都好难下载到啊,感谢分享.
回复

使用道具 举报

返回列表
12
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表