Firefly开源社区
标题:
DSI配置为4K2K显示时不正常,无法全屏显示
[打印本页]
作者:
kfeifei
时间:
2024-1-17 10:36
标题:
DSI配置为4K2K显示时不正常,无法全屏显示
本帖最后由 kfeifei 于 2024-1-17 10:38 编辑
只是将roc-rk3588s-pc-mipi101-M101014-BE45-A1-v10.dtsi中DSI0配置为4K2K,显示图像不是全屏。
显示为一个低分辨率的小图,其他部分都是雪花点。
没有log;
修改前:
disp_timings0: display-timings {
native-mode = <&dsi_timing0>;
dsi_timing0: timing0 {
clock-frequency = <72600000>;//<80000000>;
hactive = <800>;//<768>;
vactive = <1280>;
hsync-len = <14>; //20, 50,10
hback-porch = <26>; //50, 56,10
hfront-porch = <32>;//50, 30,180
vsync-len = <8>;//4
vback-porch = <20>;//4
vfront-porch = <80>;//8
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
};
修改后:
disp_timings0: display-timings {
native-mode = <&dsi_timing0>;
dsi_timing0: timing0 {
//clock-frequency = <594000000>; //60fps
clock-frequency = <198000000>; //20fps
//clock-frequency = <148500000>; //15fps
hactive = <3840>;
vactive = <2160>;
hfront-porch = <176>;
hsync-len = <88>;
hback-porch = <296>;
vsync-len = <10>;
vback-porch = <8>;
vfront-porch = <72>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
};
tchip_askquestions
log_dummy.zip
2024-1-17 10:36 上传
点击文件名下载附件
下载积分: 灯泡 -1 , 经验 -1
160 Bytes, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1
作者:
ffcoretek
时间:
2024-7-18 14:38
我也遇到类似问题,在 ./kernel/arch/arm64/boot/dts/rockchip/roc-rk3588s-pc-mipi101-M101014-BE45-A1-v10.dtsi 中配置成 3840*2160 ,启动画面能显示,但是进了系统不能显示,看了下DSI-1参数,分辨率和帧率都变掉了(配置成1920*1080的时候没有这个问题):
DSI-1 connected 1280x800+1920+0 (normal left inverted right x axis y axis) 0mm x 0mm
1368x768 59.88
1280x800 59.81*
1280x720 59.86
1024x768 60.00
1024x576 59.90
960x540 59.63
800x600 60.32
800x450 59.82
700x450 59.88
640x480 59.94
684x384 59.88 59.85
640x400 59.88 59.98
640x360 59.86 59.83
512x384 60.00
512x288 60.00 59.92
480x270 59.63 59.82
400x300 60.32
320x240 60.05
作者:
ffcoretek
时间:
2024-7-18 14:45
系统log显示 3840x2160p15 ,这个是我需要的配置;但是进了ubuntu系统之后就不对了。
------------------------------
dsi@fde20000: detailed mode clock 130000 kHz, flags[a]
H: 3840 3865 3870 3895
V: 2160 2182 2183 2205
bus_format: 100e
VOP update mode to: 3840x2160p15, type: MIPI0 for VP3
p_rate=1188000000, best_rate=118800000, div=10, sel=0
p_rate=1500000000, best_rate=125000000, div=12, sel=1
p_rate=0, best_rate=125000000, div=12, sel=1
p_rate=786431991, best_rate=125000000, div=12, sel=1
[result]p_rate=786431991, best_rate=125000000, div=12, sel=1
VP3 set crtc_clock to 125000KHz
VOP VP3 enable Esmart3[500x501->500x501@1670x829] fmt[2] addr[0xedf20000]
final DSI-Link bandwidth: 750000 Kbps x 4
在ubuntu系统里面,cat /sys/kernel/debug/dri/0/summary
--------------------------------------------------------------
Video Port0: ACTIVE
Connector: HDMI-A-1
bus_format[2025]: YUV8_1X24
overlay_mode[1] output_mode[f] color_space[3], eotf:0
Display mode: 1920x1080p60
clk[148500] real_clk[148500] type[0] flag[5]
H: 1920 2008 2052 2200
V: 1080 1084 1089 1125
Esmart0-win0: ACTIVE
win_id: 8
format: XR24 little-endian (0x34325258) SDR[0] color_space[0] glb_alpha[0xff]
rotate: xmirror: 0 ymirror: 0 rotate_90: 0 rotate_270: 0
csc: y2r[0] r2y[1] csc mode[1]
zpos: 0
src: pos[0, 0] rect[1920 x 1080]
dst: pos[0, 0] rect[1920 x 1080]
buf[0]: addr: 0x00000000f1543000 pitch: 7680 offset: 0
Video Port1: DISABLED
Video Port2: DISABLED
Video Port3: ACTIVE
Connector: DSI-1
bus_format[100a]: RGB888_1X24
overlay_mode[0] output_mode[0] color_space[0], eotf:0
Display mode: 1280x800p60
clk[83500] real_clk[83334] type[0] flag[6]
H: 1280 1352 1480 1680
V: 800 803 809 831
Esmart2-win0: ACTIVE
win_id: 9
format: XR24 little-endian (0x34325258) SDR[0] color_space[0] glb_alpha[0xff]
rotate: xmirror: 0 ymirror: 0 rotate_90: 0 rotate_270: 0
csc: y2r[0] r2y[0] csc mode[0]
zpos: 2
src: pos[0, 0] rect[1280 x 800]
dst: pos[0, 0] rect[1280 x 800]
buf[0]: addr: 0x00000000eef13000 pitch: 5120 offset: 0
Esmart3-win0: ACTIVE
win_id: 11
format: XR24 little-endian (0x34325258) SDR[0] color_space[0] glb_alpha[0xff]
rotate: xmirror: 0 ymirror: 0 rotate_90: 0 rotate_270: 0
csc: y2r[0] r2y[0] csc mode[0]
zpos: 3
src: pos[0, 0] rect[1280 x 800]
dst: pos[0, 0] rect[1280 x 800]
buf[0]: addr: 0x00000000eef13000 pitch: 5120 offset: 0
欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/)
Powered by Discuz! X3.1