Firefly开源社区
标题:
RK3399 dsi1 MIPI点屏
[打印本页]
作者:
18720996532
时间:
2020-3-2 17:11
标题:
RK3399 dsi1 MIPI点屏
目前使用RK3399的dsi通道,mipi屏已经正常点亮,现在使用dsi1,mipi屏一直起不来,下面我会把dts粘贴出来,包括一些debug信息,有遇到类似问题的,还请帮忙讲解下
作者:
18720996532
时间:
2020-3-2 17:14
现在背光正常,屏的控制脚都正常,该屏无需初始化序列,已经验证在其他RK平台上可以正常使用
dts文件如下:
&backlight {
status = "okay";
/*
pwms = <&pwm1 0 25000 1>;
brightness-levels = <
255 23 23 24 24 25 25 26
26 27 27 28 28 29 29 30
30 31 31 32 32 33 33 34
34 35 35 36 36 37 38 39
40 41 42 43 44 45 46 47
48 49 50 51 52 53 54 55
56 57 58 59 60 61 62 63
64 65 66 67 68 69 70 71
72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87
88 89 90 91 92 93 94 95
96 97 98 99 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 198
199 199 200 200 201 201 202 202
203 203 204 204 205 205 206 206
207 207 208 208 209 219 210 210
211 211 212 212 213 213 214 214
215 215 216 216 217 217 218 218
219 219 220 220 221 221 222 222
223 223 224 224 225 225 226 226
227 227 228 228 229 229 230 230>;
*/
enable-gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
//pinctrl-names = "default";
//pinctrl-0 = <&lcd_panel_enable>;
};
&dsi1 {
status = "okay";
rockchip,lane-rate = <500>;
panel@0 {
compatible = "simple-panel-dsi";
reg = <0>;
backlight = <&backlight>;
dsi,flags = <(MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_MODE_VIDEO |
MIPI_DSI_MODE_LPM )>;
dsi,format = <MIPI_DSI_FMT_RGB888>;
bus-format = <MEDIA_BUS_FMT_RGB666_1X18>;
dsi,lanes = <4>;
enable-delay-ms = <35>;
prepare-delay-ms = <6>;
unprepare-delay-ms = <0>;
disable-delay-ms = <20>;
status = "okay";
power_ctr: power_ctr {
rockchip,debug = <1>;
lcd_rst: lcd-rst {
gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&lcd_panel_reset>;
rockchip,delay = <6>;
};
lcd_55power: lcd-55power {
gpios = <&gpio3 29 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&lcd_panel_55power>;
rockchip,delay = <6>;
};
lcd_enable: lcd-panel-enable {
gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&lcd_panel_enable>;
rockchip,delay = <6>;
};
};
display-timings {
native-mode = <&timing0>;
timing0: timing0 {
clock-frequency = <63000000>;//<80000000>;
hactive = <1024>;//<768>;
vactive = <600>;
hsync-len = <100>; //20, 50
hback-porch = <100>; //50, 56
hfront-porch = <120>;//50, 30
vsync-len = <10>;
vback-porch = <10>;
vfront-porch = <15>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
};
};
};
&pwm1 {
status = "okay";
};
&dsi1_in_vopl {
status = "disabled";
};
&hdmi {
status = "okay";
};
&hdmi_in_vopb {
status = "disabled";
};
&uart2 {
status = "disabled";
};
//HDMI for vopl to vpll
&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>;
};
&route_hdmi {
status = "disabled";
logo,mode = "center";
};
&route_dsi1 {
status = "okay";
logo,mode = "center";
};
&i2c1 {
status = "disabled";
};
&isp0 {
status = "disabled";
rockchip,gpios = <&gpio3 31 GPIO_ACTIVE_HIGH>;
};
&isp1 {
status = "disabled";
rockchip,gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
};
&pinctrl {
lcd-panel {
lcd_panel_reset: lcd-panel-reset {
rockchip,pins = <2 28 RK_FUNC_GPIO &pcfg_pull_down>;
};
lcd_panel_enable: lcd-panel-enable {
rockchip,pins = <1 4 RK_FUNC_GPIO &pcfg_pull_down>;
};
lcd_panel_55power: lcd-panel-55power {
rockchip,pins = <3 29 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
};
作者:
18720996532
时间:
2020-3-2 17:17
debug信息如下,
[ 17.253790] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[ 17.273812] dw-mipi-dsi ff968000.dsi: generic write cmd fifo is full
[ 17.273844] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[ 17.293880] dw-mipi-dsi ff968000.dsi: generic write cmd fifo is full
[ 17.293912] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[ 17.313939] dw-mipi-dsi ff968000.dsi: generic write cmd fifo is full
[ 17.313971] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[ 17.333999] dw-mipi-dsi ff968000.dsi: generic write cmd fifo is full
[ 17.334030] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[ 17.354058] dw-mipi-dsi ff968000.dsi: generic write cmd fifo is full
[ 17.354089] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[ 17.374112] dw-mipi-dsi ff968000.dsi: generic write cmd fifo is full
[ 17.374144] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[ 17.394180] dw-mipi-dsi ff968000.dsi: generic write cmd fifo is full
[ 17.394212] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[ 17.414241] dw-mipi-dsi ff968000.dsi: generic write cmd fifo is full
[ 17.414273] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[ 17.434296] dw-mipi-dsi ff968000.dsi: generic write cmd fifo is full
[ 17.434327] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[ 17.454352] dw-mipi-dsi ff968000.dsi: generic write cmd fifo is full
[ 17.454383] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
作者:
yjz
时间:
2020-4-9 15:06
您好,这个问题解决了吗?
欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/)
Powered by Discuz! X3.1