@whycan 找到问题了,是DE的锅
thorinkong 发布的最佳帖子
-
适配LCD屏幕LQ035NC111遇到问题
屏幕型号为LQ035NC111,分辨率为320*240,带SPI但是应该无需初始化。按照手册填写好设备树、移植好屏幕后,分别使用echo 8 > /sys/class/disp/disp/attr/colorbar和echo 1 > /sys/class/disp/disp/attr/colorbar命令测试屏幕显示,屏幕如下:
使用DE截图命令:echo 路径/bmp 文件名 > /sys/class/disp/disp/attr/capture_dump
得到的截图图像如下,说明经过 DE 处理之后图像并不存在问题:
屏幕手册中时序方面的信息如下:
设备树配置:
&lcd0 { lcd_used = <1>; lcd_driver_name = "default_lcd"; lcd_if = <0>; lcd_hv_if = <0>; lcd_width = <70>; lcd_height = <52>; lcd_x = <320>; lcd_y = <240>; lcd_dclk_freq = <6>; lcd_hbp = <68>; lcd_ht = <408>; lcd_hspw = <30>; lcd_vbp = <18>; lcd_vt = <262>; lcd_vspw = <3>; lcd_backlight = <255>; lcd_pwm_used = <1>; lcd_pwm_ch = <7>; lcd_pwm_freq = <1000000>; lcd_pwm_pol = <0>; lcd_bright_curve_en = <0>; 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 = <0>; lcd_power = "vcc-lcd"; lcd_pin_power = "vcc-pd"; lcd_gpio_0 = <&pio PG 13 GPIO_ACTIVE_HIGH>; lcd_gpio_1 = <&pio PE 16 GPIO_ACTIVE_HIGH>; lcd_gpio_2 = <&pio PE 12 GPIO_ACTIVE_HIGH>; lcd_gpio_3 = <&pio PE 15 GPIO_ACTIVE_HIGH>; pinctrl-0 = <&rgb18_pins_a>; pinctrl-1 = <&rgb18_pins_b>; };
这个屏幕调试了好几天了,接线也反复排查了好几遍确认没有问题,实在是搞不明白为什么显示异常了,请各位帮忙分析看看到底是哪里出了问题呢?万分感谢!