duos 8inch 800x1280 display add TP driver
modify in loadsystemko.sh when you need to install the gt9xx TP driver
This commit is contained in:
@ -21,6 +21,18 @@
|
|||||||
status = "okay";
|
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 {
|
&spi3 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
|
|||||||
@ -16,9 +16,9 @@ int cvi_board_init(void)
|
|||||||
// LED
|
// LED
|
||||||
PINMUX_CONFIG(IIC0_SDA, XGPIOA_29);
|
PINMUX_CONFIG(IIC0_SDA, XGPIOA_29);
|
||||||
|
|
||||||
// I2C4
|
// I2C4 for TP
|
||||||
//PINMUX_CONFIG(VIVO_D1, IIC4_SCL);
|
PINMUX_CONFIG(VIVO_D1, IIC4_SCL);
|
||||||
//PINMUX_CONFIG(VIVO_D0, IIC4_SDA);
|
PINMUX_CONFIG(VIVO_D0, IIC4_SDA);
|
||||||
|
|
||||||
// SPI3
|
// SPI3
|
||||||
PINMUX_CONFIG(VIVO_D8, SPI3_SDO);
|
PINMUX_CONFIG(VIVO_D8, SPI3_SDO);
|
||||||
|
|||||||
@ -21,6 +21,18 @@
|
|||||||
status = "okay";
|
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 {
|
&spi3 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
|
|||||||
@ -16,9 +16,9 @@ int cvi_board_init(void)
|
|||||||
// LED
|
// LED
|
||||||
PINMUX_CONFIG(IIC0_SDA, XGPIOA_29);
|
PINMUX_CONFIG(IIC0_SDA, XGPIOA_29);
|
||||||
|
|
||||||
// I2C4
|
// I2C4 for TP
|
||||||
//PINMUX_CONFIG(VIVO_D1, IIC4_SCL);
|
PINMUX_CONFIG(VIVO_D1, IIC4_SCL);
|
||||||
//PINMUX_CONFIG(VIVO_D0, IIC4_SDA);
|
PINMUX_CONFIG(VIVO_D0, IIC4_SDA);
|
||||||
|
|
||||||
// SPI3
|
// SPI3
|
||||||
PINMUX_CONFIG(VIVO_D8, SPI3_SDO);
|
PINMUX_CONFIG(VIVO_D8, SPI3_SDO);
|
||||||
|
|||||||
@ -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_rtc.ko
|
||||||
insmod /mnt/system/ko/cv181x_ive.ko
|
insmod /mnt/system/ko/cv181x_ive.ko
|
||||||
|
|
||||||
|
#insmod /mnt/system/ko/3rd/gt9xx.ko
|
||||||
|
|
||||||
echo 3 > /proc/sys/vm/drop_caches
|
echo 3 > /proc/sys/vm/drop_caches
|
||||||
dmesg -n 4
|
dmesg -n 4
|
||||||
|
|
||||||
|
|||||||
@ -40,19 +40,22 @@
|
|||||||
#ifdef CONFIG_OF
|
#ifdef CONFIG_OF
|
||||||
#include <linux/of_gpio.h>
|
#include <linux/of_gpio.h>
|
||||||
#include <linux/regulator/consumer.h>
|
#include <linux/regulator/consumer.h>
|
||||||
|
#define GTP_CONFIG_OF
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_FB
|
#ifdef CONFIG_FB
|
||||||
#include <linux/notifier.h>
|
#include <linux/notifier.h>
|
||||||
#include <linux/fb.h>
|
#include <linux/fb.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_HAS_EARLYSUSPEND
|
#ifdef CONFIG_HAS_EARLYSUSPEND
|
||||||
#include <linux/earlysuspend.h>
|
#include <linux/earlysuspend.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//***************************PART1:ON/OFF define*******************************
|
//***************************PART1:ON/OFF define*******************************
|
||||||
#define GTP_CUSTOM_CFG 1
|
#define GTP_CUSTOM_CFG 0
|
||||||
#define GTP_CHANGE_X2Y 0 //swap x y
|
#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_HAVE_TOUCH_KEY 0
|
||||||
#define GTP_POWER_CTRL_SLEEP 0 //power off when suspend
|
#define GTP_POWER_CTRL_SLEEP 0 //power off when suspend
|
||||||
#define GTP_ICS_SLOT_REPORT 0 // slot protocol
|
#define GTP_ICS_SLOT_REPORT 0 // slot protocol
|
||||||
|
|||||||
Reference in New Issue
Block a user