Navigation

    全志在线开发者论坛

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

    d1 lvds dual

    MR Series
    lvds屏
    2
    2
    1552
    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.
    • S
      sogen LV 2 last edited by

      d1 lvds dual,SDK文档里说支持,dts里没有相关定义SDK里也没有相关代码,有没有人知道怎么在d驱动dlvds dual link大屏

      A 1 Reply Last reply Reply Quote Share 0
      • A
        anruliu LV 6 @sogen last edited by

        @sogen 首先在dts中配置lvds1的gpio,大致是下面这样的

        			lvds1_pins_a: lvds1@0 {
        				pins  = "PD10", "PD11", "PD12", "PD13", "PD14", "PD15", "PD16", "PD17", "PD18", "PD19";
        				function = "lvds1";
        				drive-strength = <30>;
        				bias-disable;
        			};
        
        			lvds1_pins_b: lvds1@1 {
        				pins  = "PD10", "PD11", "PD12", "PD13", "PD14", "PD15", "PD16", "PD17", "PD18", "PD19";
        				function = "io_disabled";
        				drive-strength = <30>;
        				bias-disable;
        			};
        

        然后在dts中配置dual lvds,主要是lcd_lvds_if与pinctrl-0

        &lcd0 {
        	lcd_used            = <1>;
        
        	lcd_driver_name     = "default_lcd";
        	lcd_backlight       = <50>;
        	lcd_if              = <3>;
        
        	lcd_x               = <640>;
        	lcd_y               = <2560>;
        	lcd_width           = <150>;
        	lcd_height          = <94>;
        	lcd_dclk_freq       = <117>;
        
        	lcd_pwm_used        = <0>;
        	lcd_pwm_ch          = <7>;
        	lcd_pwm_freq        = <50000>;
        	lcd_pwm_pol         = <1>;
        	lcd_pwm_max_limit   = <255>;
         
        	lcd_hbp             = <40>;
        	lcd_ht              = <720>;
        	lcd_hspw            = <20>;
        	lcd_vbp             = <20>;
        	lcd_vt              = <2600>;
        	lcd_vspw            = <10>;
        	
        	lcd_lvds_if         = <1>;
        	lcd_lvds_colordepth = <0>;	
        	lcd_lvds_mode       = <0>;
        	lcd_frm             = <0>;
        	lcd_hv_clk_phase    = <0>;
        	lcd_hv_sync_polarity= <0>;
        	lcd_gamma_en        = <0>;
        	lcd_bright_curve_en = <0>;
        	lcd_cmap_en         = <0>;
        
        	deu_mode            = <0>;
        	lcdgamma4iep        = <22>;
        	smart_color         = <90>;
        	
                pinctrl-0 = <&lvds0_pins_a &lvds1_pins_a>;
                pinctrl-1 = <&lvds0_pins_b &lvds1_pins_b>;	
          
        };
        
        1 Reply Last reply Reply Quote Share 1
        • 1 / 1
        • First post
          Last post

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

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