麻雀 d1s,又又开新坑之7701s
-
前期工作:
1.使用荔枝派d1的驱动,包含dts以及驱动,仅改linux部分,uboot部分没有修改;
2.关闭uboot的lcd驱动
3.目前已经能显示,但是显示的图像变成“双屏”。spi的初始化已经在树莓派上验证过。能正常显示。应该是全志平台哪里配置不对。
目前尝试:
a.关闭uboot的lcd驱动,修改uboot的lcd的配置,将分辨率调成一致,问题依旧
b.目前这个方屏跟荔枝派不是一个型号。但是都是7701s。480*480.以下是lcd的dts
&lcd0 { lcd_used = <1>; lcd_driver_name = "st7701s_rgb"; lcd_if = <0>; lcd_hv_if = <0>; lcd_width = <70>; lcd_height = <72>; lcd_x = <480>; lcd_y = <480>; lcd_dclk_freq = <19>; lcd_hbp = <60>; lcd_ht = <612>; lcd_hspw = <12>; lcd_vbp = <18>; lcd_vt = <520>; lcd_vspw = <4>; lcd_backlight = <50>; lcd_pwm_used = <1>; lcd_pwm_ch = <7>; lcd_pwm_freq = <20000>; lcd_pwm_pol = <1>; 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 = <1>; 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>; };
-
目前调整了时序,能正常显示,但是有明显的波纹。屏厂家建议是修改clk极性。但是在dts里面还没找到配置。非sync_polarity以及clk_phase.这clk极性是指哪个配置?
-
调整了极性后。能出图。现在开始进入触摸的坑:
目前启动后,i2c报错。dts按照荔枝派86盒子的配置配置触摸
[ 13.835167] input: fts_ts as /devices/platform/soc@3000000/twi2/i2c-2/2-0048/input/input3
[ 13.875092] sunxi_i2c_do_xfer()1816 - [i2c2] incomplete xfer (status: 0x20, dev addr: 0x48)
[ 13.911070] sunxi_i2c_do_xfer()1816 - [i2c2] incomplete xfer (status: 0x48, dev addr: 0x48)
[ 13.948346] sunxi_set_cur_vol_work()394 WARN: get power supply failed
[ 13.955742] fts_ts 2-0048: 2-0048 supply not found, using dummy regulator
[ 13.995184] fts_ts 2-0048: 2-0048 supply not found, using dummy regulator
[ 14.002891] debugfs: Directory '2-0048-' with parent 'reg-dummy-regulator-dummy' already present!
[ 14.237069] sunxi_set_cur_vol_work()394 WARN: get power supply failed
[ 14.315243] sunxi_i2c_do_xfer()1816 - [i2c2] incomplete xfer (status: 0x20, dev addr: 0x48)
[ 14.355227] sunxi_i2c_do_xfer()1816 - [i2c2] incomplete xfer (status: 0x20, dev addr: 0x48)
[ 14.395316] sunxi_i2c_do_xfer()1816 - [i2c2] incomplete xfer (status: 0x20, dev addr: 0x48)
[ 14.415094] sunxi_set_cur_vol_work()394 WARN: get power supply failed
[ 14.435258] sunxi_i2c_do_xfer()1816 - [i2c2] incomplete xfer (status: 0x20, dev addr: 0x48)
[ 14.471104] android_work: sent uevent USB_STATE=CONNECTED
[ 14.477626] sunxi_i2c_do_xfer()1816 - [i2c2] incomplete xfer (status: 0x20, dev addr: 0x48)
[ 14.505999] sunxi_set_cur_vol_work()394 WARN: get power supply failed
[ 14.565333] sunxi_i2c_do_xfer()1816 - [i2c2] incomplete xfer (status: 0x20, dev addr: 0x48)
[ 14.605320] sunxi_i2c_do_xfer()1816 - [i2c2] incomplete xfer (status: 0x20, dev addr: 0x48)
[ 14.645250] sunxi_i2c_do_xfer()1816 - [i2c2] incomplete xfer (status: 0x20, dev addr: 0x48)
[ 14.685332] sunxi_i2c_do_xfer()1816 - [i2c2] incomplete xfer (status: 0x20, dev addr: 0x48)
[ 14.725351] sunxi_i2c_do_xfer()1816 - [i2c2] incomplete xfer (status: 0x20, dev addr: 0x48)
[ 14.765251] sunxi_i2c_do_xfer()1816 - [i2c2] incomplete xfer (status: 0x20, dev addr: 0x48)
[ 14.805276] sunxi_i2c_do_xfer()1816 - [i2c2] incomplete xfer (status: 0x20, dev addr: 0x48)
[ 14.855092]
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号