在licheepi的BSP配置基础上做修改从而用上主线
一、基础的硬件配置
1.1 LCD背光需要重新配置uboot
在licheepi的uboot里面有相关配置: 路径:u-boot-3s-current/configs/LicheePi_Zero_800x480LCD_defconfig
CONFIG_ARM=y
CONFIG_ARCH_SUNXI=y
CONFIG_MACH_SUN8I_V3S=y
CONFIG_DRAM_CLK=360
CONFIG_DRAM_ZQ=14779
CONFIG_VIDEO_LCD_MODE="x:800,y:480,depth:18,pclk_khz:33000,le:87,ri:40,up:31,lo:13,hs:1,vs:1,sync:3,vmode:0"
CONFIG_VIDEO_LED_BL_EN="PB4"
CONFIG_VIDEO_LCD_BL_PWM="PB2"
CONFIG_DEFAULT_DEVICE_TREE="sun8i-v3s-licheepi-zero"
CONFIG_SPL=y
CONFIG_CMD_BOOTMENU=y
CONFIG_CMD_MEMINFO=y
CONFIG_OF_LIBFDT_OVERLAY=y
1.2 V3s添加电容屏
参考:https://whycan.com/t_5487.html
注释NS2009(电阻屏触摸芯片)相关的设备树代码
目录:arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
/*&i2c0 {
status = "okay";
ns2009: ns2009@48 {
compatible = "nsiway,ns2009";
reg = <0x48>;
};
};*/
添加电容屏设备树
目录:arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts
&i2c0 {
status = "okay";
gt911: touchscreen@14 {
compatible = "goodix,gt911";
reg = <0x14>;
interrupt-parent = <&pio>;
interrupts = <1 1 IRQ_TYPE_EDGE_FALLING>; /* (PB1) */
pinctrl-names = "default";
irq-gpios = <&pio 1 1 GPIO_ACTIVE_HIGH>; /* (PB1) */
reset-gpios = <&pio 1 0 GPIO_ACTIVE_HIGH>; /* RST (PB0) */
/* touchscreen-swapped-x-y */
};
};
内核配置
make ARCH=arm menuconfig
Device Drivers > Input device support > Touchscreens 出了点问题!
[ 0.951811] i2c /dev entries driver
[ 0.956638] Goodix-TS 0-005d: 0-005d supply AVDD28 not found, using dummy regulator
[ 0.964570] Goodix-TS 0-005d: 0-005d supply VDDIO not found, using dummy regulator
[ 1.090309] Goodix-TS 0-005d: ID 911, version: 1060
[ 1.096034] Goodix-TS 0-005d: Direct firmware load for goodix_911_cfg.bin failed with error -2
没有固件,好像也没有影响,使用tslib进行测试都是可以打印数据的!就是Qt无法调用!
其实是可以用的!搞定啦。
1.2 LRADC这里使用了7个按键
需要修改Kernel的设备树
|