Firefly开源社区

标题: AIO-Rk3399Pro-JD4 为什么LVDS VCC电压一直为0 [打印本页]

作者: RobinXu    时间: 2022-3-13 15:42
标题: AIO-Rk3399Pro-JD4 为什么LVDS VCC电压一直为0
本帖最后由 RobinXu 于 2022-3-13 15:55 编辑

DTS文件:rk3399pro-firefly-aiojd4-lvds.dts

  1. /dts-v1/;
  2. #include "rk3399pro-firefly-aiojd4.dtsi"

  3. / {
  4.         model = "AIO-RK3399pro-JD4 8.0 inch lvds (Android 9.0)";
  5.         compatible = "rockchip,rk3399pro-firefly-aiojd4-lvds", "rockchip,rk3399pro";
  6. };

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

  47. &dsi {
  48.         status = "okay";
  49.         rockchip,lane-rate = <864>;
  50.         panel@0 {
  51.                 compatible ="simple-panel-dsi";
  52.                 reg = <0>;
  53.                 backlight = <&backlight>;

  54.                 enable-gpios = <&gpio4 RK_PD6 GPIO_ACTIVE_HIGH>;                 // LCD_EN
  55.                 //enable-tc-gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>;         // MIPI power enable
  56.                 reset-gpios = <&gpio3 RK_PB2 GPIO_ACTIVE_LOW>;                         // LCD_Reset
  57.                
  58.                 dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
  59.                                 MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
  60.                 dsi,format = <MIPI_DSI_FMT_RGB888>;
  61.                 bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
  62.                 dsi,lanes = <4>;

  63.                 //dsi,channel = <0>;

  64.                 reset-delay-ms = <20>;
  65.                 init-delay-ms = <20>;
  66.                 enable-delay-ms = <120>;
  67.                 prepare-delay-ms = <120>;
  68.                 //unprepare-delay-ms = <0>;
  69.                 //disable-delay-ms = <20>;

  70.                 //size,width = <120>;
  71.                 //size,height = <170>;
  72.                 status = "okay";
  73.                 panel-init-sequence = [
  74.                         29 02 06 3C 01 03 00 02 00
  75.                         29 02 06 14 01 02 00 00 00
  76.                         29 02 06 64 01 02 00 00 00
  77.                         29 02 06 68 01 02 00 00 00
  78.                         29 02 06 6C 01 02 00 00 00
  79.                         29 02 06 70 01 02 00 00 00
  80.                         29 02 06 34 01 1F 00 00 00
  81.                         29 02 06 10 02 1F 00 00 00
  82.                         29 02 06 04 01 01 00 00 00
  83.                         29 02 06 04 02 01 00 00 00
  84.                         29 02 06 50 04 20 01 F0 03
  85.                         29 02 06 54 04 14 00 96 00
  86.                         29 02 06 58 04 00 04 96 00
  87.                         29 02 06 5C 04 05 00 0F 00
  88.                         29 02 06 60 04 58 02 0F 00
  89.                         29 02 06 64 04 01 00 00 00
  90.                         29 02 06 A0 04 2D 80 44 00
  91.                         29 02 06 A0 04 2D 80 04 00
  92.                         29 02 06 04 05 04 00 00 00
  93.                         29 02 06 9C 04 31 00 00 00
  94.                 ];

  95.                 panel-exit-sequence = [
  96.                         05 05 01 28
  97.                         05 78 01 10
  98.                 ];
  99.                 display-timings {
  100.                         native-mode = <&timing0>;
  101.                         compatible = "rockchip,display-timings";
  102.                         timing0: timing0 {
  103.                                 clock-frequency = <51200000>;
  104.                                 hactive = <1024>;
  105.                                 vactive = <600>;
  106.                               
  107.                                 hback-porch = <160>;
  108.                                 hfront-porch = <150>;
  109.                                 hsync-len = <10>;
  110.                               
  111.                                 vback-porch = <16>;
  112.                                 vfront-porch = <14>;
  113.                                 vsync-len = <5>;
  114.                               
  115.                                 hsync-active = <0>;
  116.                                 vsync-active = <0>;
  117.                                 de-active = <0>;
  118.                                 pixelclk-active = <0>;
  119.                         };
  120.                 };
  121.         };
  122. };
  123. /* kernel启动时logo显示 */
  124. &route_dsi {
  125.         status = "okay";
  126.         logo,mode = "center";
  127.         charge_logo,mode = "center";
  128.         logo,uboot = "logo.bmp";
  129.         logo,kernel = "logo_kernel.bmp";
  130.         connect = <&vopb_out_dsi>;
  131. };

  132. &route_hdmi {
  133.         status = "okay";
  134.         logo,mode = "center";
  135. };
  136. //Uboot fb DSI
  137. &vopb_out_dsi {
  138.         status = "okay";
  139. };
  140. &vopl_out_dsi {
  141.         status = "disabled";
  142. };

  143. &dsi_in_vopl {
  144.         status = "disabled";
  145. };

  146. &dsi_in_vopb {
  147.         status = "okay";
  148. };

  149. &pwm0 {
  150.         status = "okay";
  151. };

  152. &hdmi {
  153.     status = "okay";
  154.         rockchip,phy-table =
  155.         <74250000  0x8009 0x0004 0x0272>,
  156.         <165000000 0x802b 0x0004 0x0209>,
  157.         <297000000 0x8039 0x0005 0x028d>,
  158.         <594000000 0x8039 0x0000 0x00f6>,
  159.         <000000000 0x0000 0x0000 0x0000>;
  160. };

  161. &hdmi_dp_sound {
  162.         status = "okay";
  163. };

  164. &hdmi_in_vopb {
  165.         status = "disabled";
  166. };

  167. &hdmi_in_vopl {
  168.     status = "okay";
  169. };

  170. &dp_in_vopb {
  171.         status = "disabled";
  172. };

  173. &vopb {
  174.     assigned-clocks = <&cru DCLK_VOP0_DIV>;
  175.     assigned-clock-parents = <&cru PLL_CPLL>;
  176. };

  177. &vopl {
  178.     assigned-clocks = <&cru DCLK_VOP1_DIV>;
  179.     assigned-clock-parents = <&cru PLL_VPLL>;
  180. };

  181. &i2c4 {                                                                                                                                                                 
  182.     status = "okay";
  183.     i2c-scl-rising-time-ns = <345>;
  184.     i2c-scl-falling-time-ns = <11>;

  185.     gslx680: gslx680@41 {
  186.         status = "okay";
  187.         compatible = "gslX680";
  188.         reg = <0x41>;
  189.         screen_max_x = <1024>;
  190.         screen_max_y = <600>;
  191.         touch-gpio = <&gpio4 RK_PD5 IRQ_TYPE_LEVEL_LOW>;
  192.         reset-gpio = <&gpio4 RK_PD4 GPIO_ACTIVE_HIGH>;
  193.         flip-x = <1>;
  194.         flip-y = <0>;
  195.         swap-xy = <0>;
  196.         gsl,fw = <1>;
  197.         };
  198. };
复制代码






板子启动信息:

……
……
Model: AIO-RK3399pro-JD4 8.0 inch lvds (Android 9.0)
Rockchip UBOOT DRM driver version: v1.0.1
Using display timing dts
Detailed mode clock 51200 kHz, flags[a]
    H: 1024 1174 1184 1344
    V: 0600 0614 0619 0635
bus_format: 100a
final DSI-Link bandwidth: 864 Mbps x 4
CLK: (uboot. arml: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
CLK: (uboot. armb: enter 24000 KHz, init 24000 KHz, kernel 0N/A)

……
……

屏信息:




作者: RobinXu    时间: 2022-3-25 00:21
只能自己来结帖了!
唉,这个论坛基本没啥用,对于我这种小白来说,太痛苦了。
不过,功夫不负有心人,终于还是点亮了。

作者: zll9876    时间: 2022-6-21 18:11
你好,你是怎么调出来的呢?方便说下吗?
官方配套的屏幕, 安装图示插上不展示任何内容(黑屏)。 固件已经在sd卡上了,sd卡已插入主板上,主板已插入电源。 ps,插电脑显示器是可以看到界面的。求解,谢谢
作者: 895816513    时间: 2022-7-12 10:04
你是不是没有接跳线帽呀,选择firefly的lvds用12V电压{:4_121:}




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1