From de30b4b3f6caa4d0d552ef18f169672a56ab8121 Mon Sep 17 00:00:00 2001 From: Ren Kuo Date: Wed, 27 Dec 2023 20:18:30 +0800 Subject: [PATCH] mb/google/nissa/var/craask: Add ILTK touchscreen Add touchscreen ILTK for craaskwell. Refer to ILI2901A-A200 Data Sheet_V1.1_20231026. BUG=b:308873706 TEST=build and check touchscreen function on craask Change-Id: I6a68855b1659ff0c9cd33a0ec9acbd289f525a3d Signed-off-by: Ren Kuo Reviewed-on: https://review.coreboot.org/c/coreboot/+/79735 Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) Reviewed-by: Tyler Wang --- .../brya/variants/craask/overridetree.cb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/mainboard/google/brya/variants/craask/overridetree.cb b/src/mainboard/google/brya/variants/craask/overridetree.cb index 9fff00f118..afc35193e4 100644 --- a/src/mainboard/google/brya/variants/craask/overridetree.cb +++ b/src/mainboard/google/brya/variants/craask/overridetree.cb @@ -37,6 +37,7 @@ fw_config field TS_SOURCE 38 41 option TS_UNPROVISIONED 0 option TS_GTCH7503 1 + option TS_ILTK0001 2 end end @@ -390,6 +391,23 @@ chip soc/intel/alderlake probe TS_SOURCE TS_UNPROVISIONED end end + chip drivers/i2c/hid + register "generic.hid" = ""ILTK0001"" + register "generic.desc" = ""ILITEK Touchscreen"" + register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" + register "generic.detect" = "1" + register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" + register "generic.reset_delay_ms" = "200" + register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" + register "generic.enable_delay_ms" = "12" + register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)" + register "generic.stop_off_delay_ms" = "200" + register "generic.has_power_resource" = "1" + register "hid_desc_reg_offset" = "0x01" + device i2c 41 on + probe TS_SOURCE TS_ILTK0001 + end + end end device ref i2c2 on chip drivers/intel/mipi_camera