From 24e3d67004cd59f1c6e5bbff9661ddfdab88727a Mon Sep 17 00:00:00 2001 From: Bernardo Perez Priego Date: Wed, 22 Sep 2021 16:55:09 -0700 Subject: [PATCH] mb/intel/adlrvp_m: Enable touchpad These changes include ELAN touchpad to ACPI tables and configure GPIO's. BUG=None Test=Boot board, touchpad should be functional Signed-off-by: Bernardo Perez Priego Change-Id: I78e5e133f7d3af47395819a79638a90fee4fd19e Reviewed-on: https://review.coreboot.org/c/coreboot/+/57863 Tested-by: build bot (Jenkins) Reviewed-by: Bora Guvendik --- src/mainboard/intel/adlrvp/devicetree_m.cb | 10 ++++++++++ src/mainboard/intel/adlrvp/gpio_m.c | 8 +++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/mainboard/intel/adlrvp/devicetree_m.cb b/src/mainboard/intel/adlrvp/devicetree_m.cb index 1a8c641ae3..b73ded1e10 100644 --- a/src/mainboard/intel/adlrvp/devicetree_m.cb +++ b/src/mainboard/intel/adlrvp/devicetree_m.cb @@ -275,6 +275,16 @@ chip soc/intel/alderlake register "hid_desc_reg_offset" = "0x01" device i2c 0a on end end + chip drivers/i2c/hid + register "generic.hid" = ""ELAN0000"" + register "generic.desc" = ""ELAN Touchpad"" + register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_D11_IRQ)" + register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H1)" + register "generic.wake" = "GPE0_DW1_11" + register "generic.probed" = "1" + register "generic.has_power_resource" = "1" + device i2c 15 on end + end end device ref i2c1 on chip drivers/intel/mipi_camera diff --git a/src/mainboard/intel/adlrvp/gpio_m.c b/src/mainboard/intel/adlrvp/gpio_m.c index 915b549e03..6eb670b7af 100644 --- a/src/mainboard/intel/adlrvp/gpio_m.c +++ b/src/mainboard/intel/adlrvp/gpio_m.c @@ -172,7 +172,13 @@ static const struct pad_config gpio_table[] = { PAD_CFG_GPI_APIC(GPP_E3, NONE, PLTRST, LEVEL, INVERT), /* E4 : SATA_DEVSLP0 ==> USB4_BB_RT_FORCE_PWR */ - PAD_CFG_GPO(GPP_E4, 0, DEEP) + PAD_CFG_GPO(GPP_E4, 0, DEEP), + + /* H1 : GPPC_H1_TCH_PAD_TCH_PNL2_LS_EN */ + PAD_CFG_GPO(GPP_H1, 0, PLTRST), + + /* D11 : TCH_PAD_INT_N */ + PAD_CFG_GPI_APIC(GPP_D11, NONE, PLTRST, LEVEL, INVERT) }; void variant_configure_gpio_pads(void)