Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    D1s mipi显示屏有问题

    MR Series
    2
    5
    2343
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Maihuanyi LV 5 last edited by

      使用最新的tian V2.1源码

      修改了st7701s.c的代码

      struct LCM_setting_table {
          u8 cmd;
          u32 count;                                                                                                                                                                                                     
          u8 para_list[128];
      };
      
      

      根据商家给的参数改了static struct LCM_setting_table lcm_initialization_setting[]

      设备树如下:

      lcd_driver_name     = "st7701s";
          lcd_backlight       = <100>;
          lcd_if              = <4>; 
      
          lcd_x               = <720>;
          lcd_y               = <1280>;
          lcd_width           = <62>;
          lcd_height          = <110>;
          lcd_dclk_freq       = <100>;
      
          lcd_pwm_used        = <1>; 
          lcd_pwm_ch          = <7>; 
          lcd_pwm_freq        = <1000>;
          lcd_pwm_pol         = <0>; 
          lcd_pwm_max_limit   = <255>;
      
          lcd_hbp             = <40>;
          lcd_ht              = <800>;
          lcd_hspw            = <10>;
          lcd_vbp             = <11>;
          lcd_vt              = <1307>;
          lcd_vspw            = <3>;                                                                                                                                                                                     
      
          lcd_dsi_if          = <0>; 
          lcd_dsi_lane        = <4>; 
          lcd_lvds_if         = <0>; 
          lcd_lvds_colordepth = <0>; 
          lcd_lvds_mode       = <0>; 
          lcd_frm             = <0>; 
          lcd_hv_clk_phase    = <0>; 
          lcd_hv_sync_polarity= <0>; 
          lcd_io_phase        = <0x0000>;
          lcd_gamma_en        = <0>; 
          lcd_bright_curve_en = <0>; 
          lcd_cmap_en         = <0>; 
          lcd_fsync_en        = <0>; 
          lcd_fsync_act_time  = <1000>;
          lcd_fsync_dis_time  = <1000>;
          lcd_fsync_pol       = <0>; 
      
          deu_mode            = <0>; 
          lcdgamma4iep        = <22>;
          smart_color         = <90>;
      

      显示的效果有竖的花纹
      0ee3f161-5a31-4f67-b1b9-b7c407fe3955-7816b7a207de8ee625e481dcf6a94ea.jpg

      whycan 1 Reply Last reply Reply Quote Share 0
      • whycan
        whycan晕哥 LV 9 @Maihuanyi last edited by

        @maihuanyi

        cat /sys/class/disp/disp/attr/sys
        

        看下 ref_fps 是不是60左右?

        M 3 Replies Last reply Reply Quote Share 0
        • M
          Maihuanyi LV 5 @whycan last edited by

          @whycan 是的

          1 Reply Last reply Reply Quote Share 0
          • M
            Maihuanyi LV 5 @whycan last edited by

            @whycan 4b9fceba-e042-426a-8112-ce34146cbf14-578163ba1851bc9e81a3f75a5618e1a.jpg

            1 Reply Last reply Reply Quote Share 0
            • M
              Maihuanyi LV 5 @whycan last edited by

              @whycan 调成这样了,不知道调整那个参数

              1 Reply Last reply Reply Quote Share 0
              • 1 / 1
              • First post
                Last post

              Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

              行为准则 | 用户协议 | 隐私权政策