d1 lvds dual
-
d1 lvds dual,SDK文档里说支持,dts里没有相关定义SDK里也没有相关代码,有没有人知道怎么在d驱动dlvds dual link大屏
-
@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>; };
Copyright © 2023 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号