Rehan Ghori has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/62591 )
Change subject: scout: i2c HID driver for Ilitek touchscreen ......................................................................
scout: i2c HID driver for Ilitek touchscreen
Add HID driver for i2c-1 for Ilitek touchscreen.
BRANCH=None BUG=b:187289163 TEST=Build and flash coreboot; confirm an entry for hidraw for I2C-1 for Ilitek touchscreen.
Change-Id: I9e42c36a35654cf3e2b41f78b209f4b89e8b05bd Signed-off-by: Rehan Ghori rehang@google.com --- M src/mainboard/google/hatch/variants/scout/gpio.c M src/mainboard/google/hatch/variants/scout/overridetree.cb 2 files changed, 21 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/91/62591/1
diff --git a/src/mainboard/google/hatch/variants/scout/gpio.c b/src/mainboard/google/hatch/variants/scout/gpio.c index 218d3db..260acc8 100644 --- a/src/mainboard/google/hatch/variants/scout/gpio.c +++ b/src/mainboard/google/hatch/variants/scout/gpio.c @@ -1,8 +1,12 @@ /* SPDX-License-Identifier: GPL-2.0-only */
+#include <gpio.h> #include <baseboard/gpio.h> #include <baseboard/variants.h> #include <commonlib/helpers.h> +#include <types.h> +#include <soc/gpio.h> +#include <vendorcode/google/chromeos/chromeos.h>
static const struct pad_config gpio_table[] = { /* A16 : SD_OC_ODL */ @@ -66,6 +70,8 @@ PAD_CFG_GPI_APIC(GPP_D14, NONE, PLTRST, LEVEL, INVERT), /* D15 : USI_RST_L */ PAD_CFG_GPO(GPP_D15, 1, DEEP), + /* D16 TOUCH_INT */ + PAD_CFG_GPI_IRQ_WAKE(GPP_D16, NONE, PLTRST, LEVEL, INVERT),
/* E2 : Not connected */ PAD_NC(GPP_E2, NONE), diff --git a/src/mainboard/google/hatch/variants/scout/overridetree.cb b/src/mainboard/google/hatch/variants/scout/overridetree.cb index 1312966..cc07e2f 100644 --- a/src/mainboard/google/hatch/variants/scout/overridetree.cb +++ b/src/mainboard/google/hatch/variants/scout/overridetree.cb @@ -381,7 +381,21 @@ device pci 15.0 off # RFU - Reserved for Future Use. end # I2C #0 - device pci 15.1 on end # I2C #1, USI (Touch screen) + device pci 15.1 on # I2C #1, USI (Touch screen) + chip drivers/i2c/hid + register "generic.hid" = ""ILTK0001"" + register "generic.desc" = ""ILITEK Touchscreen"" + register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_D16_IRQ)" + register "generic.probed" = "1" + register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" + register "generic.reset_delay_ms" = "600" + register "generic.wake" = "GPE0_DW0_16" + register "generic.has_power_resource" = "1" + register "generic.disable_gpio_export_in_crs" = "1" + register "hid_desc_reg_offset" = "0x01" + device i2c 41 on end + end + end device pci 15.2 on end # I2C #2, SCALER device pci 15.3 on end # I2C #3, TPU device pci 16.0 on end # Management Engine Interface 1