RK3399 dsi1 MIPI点屏
目前使用RK3399的dsi通道,mipi屏已经正常点亮,现在使用dsi1,mipi屏一直起不来,下面我会把dts粘贴出来,包括一些debug信息,有遇到类似问题的,还请帮忙讲解下 现在背光正常,屏的控制脚都正常,该屏无需初始化序列,已经验证在其他RK平台上可以正常使用dts文件如下:
&backlight {
status = "okay";
/*
pwms = <&pwm1 0 25000 1>;
brightness-levels = <
255 23232424252526
2627272828292930
3031313232333334
3435353636373839
4041424344454647
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 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>;
};
};
};
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
您好,这个问题解决了吗?
页:
[1]