尝试mq-r驱动mipi屏遇到问题
-
使用mq-r,d1s板子,驱动7701s的mipi屏。修改了dts之后,系统启动到sd卡部分就卡主了。
[ 3.377416] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50) [ 3.394561] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8 [ 3.400738] sunxi-mmc 4020000.sdmmc: No vmmc regulator found [ 3.424297] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found [ 3.430709] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found [ 3.454296] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found [ 3.460803] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found [ 3.474297] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found [ 3.480804] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
以下是dts
&lcd0 { lcd_used = <1>; lcd_driver_name = "tft08006"; lcd_if = <4>; lcd_hv_if = <0>; lcd_width = <70>; lcd_height = <72>; lcd_x = <480>; lcd_y = <480>; lcd_dclk_freq = <9>; /* lcd_hbp = <20>; lcd_ht = <526>; lcd_hspw = <6>; lcd_vbp = <10>; lcd_vt = <510>; lcd_vspw = <4>; */ lcd_dsi_if=<0>; lcd_dsi_lane=<2>; 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>; lcd_backlight = <50>; lcd_pwm_used = <1>; lcd_pwm_ch = <7>; lcd_pwm_freq = <20000>; lcd_pwm_pol = <1>; lcd_bright_curve_en = <0>; deu_mode = <0>; lcdgamma4iep = <22>; smart_color = <90>; /* lcd_frm = <1>; lcd_io_phase = <0x0000>; lcd_gamma_en = <0>; lcd_cmap_en = <0>; lcd_hv_clk_phase= <0>; lcd_hv_sync_polarity= <0>; lcd_rb_swap = <1>; */ pinctrl-0 = <&dsi4lane_pins_a>; pinctrl-1 = <&dsi4lane_pins_b>; lcd_power = "vcc-lcd"; lcd_pin_power = "vcc-pd"; lcd_gpio_0 = <&pio PE 0 GPIO_ACTIVE_HIGH>; lcd_gpio_1 = <&pio PE 1 GPIO_ACTIVE_HIGH>; lcd_gpio_2 = <&pio PE 2 GPIO_ACTIVE_HIGH>; lcd_gpio_3 = <&pio PE 3 GPIO_ACTIVE_HIGH>; // pinctrl-0 = <&rgb18_pins_a>; // pinctrl-1 = <&rgb18_pins_b>; };
这个dts驱动rgb屏,是能正常启动,改了lcd0相关就挂了,高手指导以下~~sdk应该比较旧,是晕哥之前的网盘版本~
-
@soso90
修改之前和修改之后的完整日志都发一下。 -
除了去修改LCM_setting_table lcm_tft08006_setting适配特定的初始化指令外,dts部分参考如下:
800*480,3.1寸,ips,mipi:&lcd0 { lcd_used = <1>; lcd_driver_name = "tft08006"; lcd_backlight = <100>; lcd_if = <4>; lcd_x = <480>; lcd_y = <800>; lcd_width = <48>; lcd_height = <80>; lcd_dclk_freq = <27>; lcd_pwm_used = <1>; lcd_pwm_ch = <2>; lcd_pwm_freq = <1000>; lcd_pwm_pol = <0>; lcd_pwm_max_limit = <255>; lcd_hbp = <70>; lcd_ht = <600>; lcd_hspw = <10>; lcd_vbp = <36>; lcd_vt = <956>; lcd_vspw = <4>; lcd_dsi_if = <0>; lcd_dsi_lane = <2>; 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>; lcd_gpio_0 = <&pio PG 13 GPIO_ACTIVE_HIGH>; pinctrl-0 = <&dsi4lane_pins_a>; pinctrl-1 = <&dsi4lane_pins_b>; };
-
请问楼主解决了吗,目前我也是遇到一样的问题
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号