页次: 1
woturn 说:raspberryman 说:得弄个固件进去触摸屏的分辨率才会对吧?
这个就看你接的触摸屏原来固件分辨率是多少的,尽量修改为和显示屏的分辨率一致。如果显示原点和触摸原点不一致,可以在goodix.c里面上报坐标值函数goodix_ts_report_touch()中做x,y值的翻转。
改驱动比较麻烦,aodzip大佬里面有800x480固件
buildroot-tiny200 (F1C100/200s) 开发包近期更新内容 * 已支持DVP摄像头 *
http://whycan.com/t_5221.html
(出处:哇酷开发者社区【全志 V3S/F1C100s/X3】)
如果不想修改驱动,那么就要修改TP里面的固件分辨率了。
由于买回来的Lichee-Nano只有电阻触摸屏,所以本人就此添加了电容触摸GT911。方法比较简单。
1、首先在suniv-f1c100s-licheepi-nano.dts添加节点,如下:
&i2c0 {
pinctrl-0 = <&i2c0_pins>;
pinctrl-names = "default";
status = "okay";
gt911: touchscreen@5d {
compatible = "goodix,gt911";
reg = <0x5d>;
interrupt-parent = <&pio>;
interrupts = <4 10 IRQ_TYPE_EDGE_FALLING>; /* (PE10) */
pinctrl-names = "default";
/*pinctrl-0 = <&ts_reset_pin>;*/
irq-gpios = <&pio 4 10 GPIO_ACTIVE_HIGH>; /* (PE10) */
reset-gpios = <&pio 4 9 GPIO_ACTIVE_HIGH>; /* RST (PE9) */
/* touchscreen-swapped-x-y */
};
};
2、在内核源码目录下make menuconfig
选择编译——》Input device support ——》 Touchscreens ——》Goodix I2C touchscreen。
3、接线按照I2C0的引脚、中断PE10,复位PE9,即可。
请教一下,用的开发板是lichee-pi nano。测试的是雷龙发展的SD-NAND。雷龙一代的SD-NAND在电脑上正常检测到。通过uboot SPL时检测不到。怀疑是uboot SPL不支持此SD-NAND。因为通过spi flash进入文件系统后,通过mount可以检测到该一代SD-NAND
(PS: 雷龙二代的SD-NAND通过uboot SPL可以检测到,启动正常。)
LOG如下:
U-Boot SPL 2018.01-05679-g013ca45-dirty (Aug 05 2020 - 14:36:55)
DRAM: 32 MiB
Trying to boot from MMC1
Card did not respond to voltage select!
mmc_init: -95, time 22
spl: mmc init failed with error: -95
Trying to boot from sunxi SPI
U-Boot 2018.01-05679-g013ca457fd-dirty (Aug 02 2019 - 09:57:28 +0800) Allwinner Technology
CPU: Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM: 32 MiB
MMC: SUNXI SD/MMC: 0
SF: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment
Setting up a 800x480 lcd console (overscan 0x0)
In: serial@1c25000
Out: serial@1c25000
Err: serial@1c25000
Net: No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot: 1
页次: 1