Firefly开源社区

打印 上一主题 下一主题

[Linux] DSI配置为4K2K显示时不正常,无法全屏显示

40

积分

0

威望

0

贡献

技术小白

积分
40

DSI配置为4K2K显示时不正常,无法全屏显示

发表于 2024-1-17 10:36:34      浏览:1666 | 回复:2        打印      只看该作者   [复制链接] 楼主
  • 固件类型: 自行编译的固件
  • SDK包名称: rk3588_linux_release_20231027_v1.1.1e
  • SDK更新到哪个COMMIT: 0000-00-00 00:00:00
  • SDK修改内容: 修改:kernel/arch/arm64/boot/dts/rockchip/roc-rk3588s-pc-mipi101-M101014-BE45-A1-v10.dtsi文件 将屏幕时序修改为 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>; }; };
  • Log日志: log_dummy.zip
问题描述及复现步骤:
本帖最后由 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>;
            };
        };

log_dummy.zip

160 Bytes, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

11

积分

0

威望

0

贡献

技术小白

积分
11
发表于 2024-7-18 14:38:49        只看该作者  沙发
我也遇到类似问题,在 ./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
回复

使用道具 举报

11

积分

0

威望

0

贡献

技术小白

积分
11
发表于 2024-7-18 14:45:28        只看该作者  板凳
系统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
回复

使用道具 举报

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

本版积分规则

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