diff --git a/build/boards/cv181x/cv1813h_milkv_duos_emmc/dts_riscv/cv1813h_milkv_duos_emmc.dts b/build/boards/cv181x/cv1813h_milkv_duos_emmc/dts_riscv/cv1813h_milkv_duos_emmc.dts index 7cd3c2b34d..caac267aa2 100644 --- a/build/boards/cv181x/cv1813h_milkv_duos_emmc/dts_riscv/cv1813h_milkv_duos_emmc.dts +++ b/build/boards/cv181x/cv1813h_milkv_duos_emmc/dts_riscv/cv1813h_milkv_duos_emmc.dts @@ -21,6 +21,18 @@ status = "okay"; }; +&i2c4 { + status = "okay"; + + gt9xx: gt9xx@14 { + compatible = "goodix,gt9xx"; + reg = <0x14>; + goodix,irq-gpio = <&porta 18 0>; + goodix,rst-gpio = <&porta 19 GPIO_ACTIVE_HIGH>; + status = "okay"; + }; +}; + &spi3 { status = "okay"; diff --git a/build/boards/cv181x/cv1813h_milkv_duos_emmc/u-boot/cvi_board_init.c b/build/boards/cv181x/cv1813h_milkv_duos_emmc/u-boot/cvi_board_init.c index e5806e8264..1eb79fcd3b 100644 --- a/build/boards/cv181x/cv1813h_milkv_duos_emmc/u-boot/cvi_board_init.c +++ b/build/boards/cv181x/cv1813h_milkv_duos_emmc/u-boot/cvi_board_init.c @@ -16,9 +16,9 @@ int cvi_board_init(void) // LED PINMUX_CONFIG(IIC0_SDA, XGPIOA_29); - // I2C4 - //PINMUX_CONFIG(VIVO_D1, IIC4_SCL); - //PINMUX_CONFIG(VIVO_D0, IIC4_SDA); + // I2C4 for TP + PINMUX_CONFIG(VIVO_D1, IIC4_SCL); + PINMUX_CONFIG(VIVO_D0, IIC4_SDA); // SPI3 PINMUX_CONFIG(VIVO_D8, SPI3_SDO); diff --git a/build/boards/cv181x/cv1813h_milkv_duos_sd/dts_riscv/cv1813h_milkv_duos_sd.dts b/build/boards/cv181x/cv1813h_milkv_duos_sd/dts_riscv/cv1813h_milkv_duos_sd.dts index ac5db6a9aa..6cfcf0e43b 100644 --- a/build/boards/cv181x/cv1813h_milkv_duos_sd/dts_riscv/cv1813h_milkv_duos_sd.dts +++ b/build/boards/cv181x/cv1813h_milkv_duos_sd/dts_riscv/cv1813h_milkv_duos_sd.dts @@ -21,6 +21,18 @@ status = "okay"; }; +&i2c4 { + status = "okay"; + + gt9xx: gt9xx@14 { + compatible = "goodix,gt9xx"; + reg = <0x14>; + goodix,irq-gpio = <&porta 18 0>; + goodix,rst-gpio = <&porta 19 GPIO_ACTIVE_HIGH>; + status = "okay"; + }; +}; + &spi3 { status = "okay"; diff --git a/build/boards/cv181x/cv1813h_milkv_duos_sd/u-boot/cvi_board_init.c b/build/boards/cv181x/cv1813h_milkv_duos_sd/u-boot/cvi_board_init.c index e5806e8264..1eb79fcd3b 100644 --- a/build/boards/cv181x/cv1813h_milkv_duos_sd/u-boot/cvi_board_init.c +++ b/build/boards/cv181x/cv1813h_milkv_duos_sd/u-boot/cvi_board_init.c @@ -16,9 +16,9 @@ int cvi_board_init(void) // LED PINMUX_CONFIG(IIC0_SDA, XGPIOA_29); - // I2C4 - //PINMUX_CONFIG(VIVO_D1, IIC4_SCL); - //PINMUX_CONFIG(VIVO_D0, IIC4_SDA); + // I2C4 for TP + PINMUX_CONFIG(VIVO_D1, IIC4_SCL); + PINMUX_CONFIG(VIVO_D0, IIC4_SDA); // SPI3 PINMUX_CONFIG(VIVO_D8, SPI3_SDO); diff --git a/device/milkv-duos-sd/overlay/mnt/system/ko/loadsystemko.sh b/device/milkv-duos-sd/overlay/mnt/system/ko/loadsystemko.sh index 6c3bdf5d68..7d44cc6175 100644 --- a/device/milkv-duos-sd/overlay/mnt/system/ko/loadsystemko.sh +++ b/device/milkv-duos-sd/overlay/mnt/system/ko/loadsystemko.sh @@ -26,6 +26,8 @@ insmod /mnt/system/ko/cvi_vc_driver.ko MaxVencChnNum=9 MaxVdecChnNum=9 #insmod /mnt/system/ko/cv181x_rtc.ko insmod /mnt/system/ko/cv181x_ive.ko +#insmod /mnt/system/ko/3rd/gt9xx.ko + echo 3 > /proc/sys/vm/drop_caches dmesg -n 4 diff --git a/osdrv/extdrv/tp/ts_gt9xx/gt9xx.h b/osdrv/extdrv/tp/ts_gt9xx/gt9xx.h index 09a42e4167..2f21a7065c 100644 --- a/osdrv/extdrv/tp/ts_gt9xx/gt9xx.h +++ b/osdrv/extdrv/tp/ts_gt9xx/gt9xx.h @@ -40,19 +40,22 @@ #ifdef CONFIG_OF #include #include +#define GTP_CONFIG_OF #endif + #ifdef CONFIG_FB #include #include #endif + #ifdef CONFIG_HAS_EARLYSUSPEND #include #endif //***************************PART1:ON/OFF define******************************* -#define GTP_CUSTOM_CFG 1 +#define GTP_CUSTOM_CFG 0 #define GTP_CHANGE_X2Y 0 //swap x y -#define GTP_DRIVER_SEND_CFG 1 //driver send config +#define GTP_DRIVER_SEND_CFG 0 //driver send config #define GTP_HAVE_TOUCH_KEY 0 #define GTP_POWER_CTRL_SLEEP 0 //power off when suspend #define GTP_ICS_SLOT_REPORT 0 // slot protocol