diff --git a/drivers/gpu/drm/panel/panel-raspits-tc358762.c b/drivers/gpu/drm/panel/panel-raspits-tc358762.c index 6cd4d304a0ce6c..0a2539b58e50d3 100644 --- a/drivers/gpu/drm/panel/panel-raspits-tc358762.c +++ b/drivers/gpu/drm/panel/panel-raspits-tc358762.c @@ -481,7 +481,7 @@ static const struct drm_display_mode raspits_tc358762_mode = { .hdisplay = 800, .hsync_start = 800 + 1, .hsync_end = 800 + 1 + 2, - .htotal = 800 + 1 + 2 + 48, + .htotal = 800 + 1 + 2 + 37, .vdisplay = 480, .vsync_start = 480 + 7, .vsync_end = 480 + 7 + 2, diff --git a/drivers/input/touchscreen/gt9xx/CJ080258_GT9271_Config_20230608_112016.cfg b/drivers/input/touchscreen/gt9xx/CJ080258_GT9271_Config_20230608_112016.cfg new file mode 100644 index 00000000000000..dd24607c1047ac --- /dev/null +++ b/drivers/input/touchscreen/gt9xx/CJ080258_GT9271_Config_20230608_112016.cfg @@ -0,0 +1 @@ +0x41,0xB0,0x04,0x80,0x07,0x05,0x35,0x30,0x01,0x08,0x19,0x05,0x50,0x32,0x03,0x05,0x00,0x00,0x00,0x00,0x33,0x33,0x00,0x1A,0x18,0x1E,0x14,0x90,0x30,0xAA,0x2A,0x28,0x12,0x0C,0x00,0x00,0x00,0x9B,0x03,0x2D,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1E,0x50,0x94,0xC5,0x02,0x08,0x00,0x00,0x04,0x86,0x21,0x00,0x71,0x28,0x00,0x5F,0x31,0x00,0x51,0x3B,0x00,0x45,0x48,0x00,0x45,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x19,0x18,0x17,0x16,0x15,0x14,0x11,0x10,0x0F,0x0E,0x0D,0x0C,0x09,0x08,0x07,0x06,0x05,0x04,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2A,0x29,0x28,0x27,0x26,0x25,0x24,0x23,0x22,0x21,0x20,0x1F,0x1E,0x1C,0x1B,0x19,0x00,0x02,0x04,0x06,0x07,0x08,0x0A,0x0C,0x0D,0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x01 \ No newline at end of file diff --git a/drivers/input/touchscreen/gt9xx/gt9xx.c b/drivers/input/touchscreen/gt9xx/gt9xx.c index b89fd2ff21bca1..c011f98d1faed1 100644 --- a/drivers/input/touchscreen/gt9xx/gt9xx.c +++ b/drivers/input/touchscreen/gt9xx/gt9xx.c @@ -61,6 +61,7 @@ static u8 bgt911 = FALSE; static u8 bgt9110 = FALSE; static u8 bgt9111 = FALSE; static u8 bgt9112 = FALSE; +static u8 bgt9271 = FALSE; static u8 bgt970 = FALSE; static u8 bgt910 = FALSE; static u8 gtp_change_x2y = TRUE; @@ -1467,6 +1468,11 @@ static s32 gtp_init_panel(struct goodix_ts_data *ts) cfg_info_len[0] = CFG_GROUP_LEN(gtp_dat_gt9112); } + if (bgt9271) { + send_cfg_buf[0] = gtp_dat_gt9271; + cfg_info_len[0] = CFG_GROUP_LEN(gtp_dat_gt9271); + } + if (bgt970) { send_cfg_buf[0] = gtp_dat_9_7; cfg_info_len[0] = CFG_GROUP_LEN(gtp_dat_9_7); @@ -2690,6 +2696,12 @@ static int goodix_ts_probe(struct i2c_client *client, const struct i2c_device_id gtp_change_x2y = FALSE; gtp_x_reverse = FALSE; gtp_y_reverse = FALSE; + } else if (val == 9271) { + m89or101 = FALSE; + bgt9271 = TRUE; + gtp_change_x2y = FALSE; + gtp_x_reverse = FALSE; + gtp_y_reverse = FALSE; } else if (val == 970) { m89or101 = FALSE; bgt911 = FALSE; diff --git a/drivers/input/touchscreen/gt9xx/gt9xx_cfg.h b/drivers/input/touchscreen/gt9xx/gt9xx_cfg.h index 5ce93df16b2803..e94d3cb8bf1ee3 100644 --- a/drivers/input/touchscreen/gt9xx/gt9xx_cfg.h +++ b/drivers/input/touchscreen/gt9xx/gt9xx_cfg.h @@ -38,6 +38,11 @@ u8 gtp_dat_gt9112[] = { #include "CJ080258_GT911_Config_20221117_085548.cfg" }; +u8 gtp_dat_gt9271[] = { + /* <1200, 1920> */ + #include "CJ080258_GT9271_Config_20230608_112016.cfg" +}; + u8 gtp_dat_8_9[] = { /* TODO:Puts your update firmware data here! */ /* <1920, 1200> 8.9 */