From fea5bcf6cea53b584050439d5b58be96c5a4e1db Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Wed, 2 Oct 2024 16:43:07 +0100 Subject: mb/starlabs/starlite_adl: Reconfigure the touchscreen The existing GPIO configuration was IRQ heavy; tweak this to reduce the number of interrupts. Change-Id: I6d23bea5ec12e86a3606186edb29636540283fa3 Signed-off-by: Sean Rhodes Reviewed-on: https://review.coreboot.org/c/coreboot/+/84639 Reviewed-by: Maxim Tested-by: build bot (Jenkins) --- src/mainboard/starlabs/starlite_adl/variants/mk_v/devicetree.cb | 4 +++- src/mainboard/starlabs/starlite_adl/variants/mk_v/gpio.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src/mainboard/starlabs') diff --git a/src/mainboard/starlabs/starlite_adl/variants/mk_v/devicetree.cb b/src/mainboard/starlabs/starlite_adl/variants/mk_v/devicetree.cb index 5a6424ec14..505a577f35 100644 --- a/src/mainboard/starlabs/starlite_adl/variants/mk_v/devicetree.cb +++ b/src/mainboard/starlabs/starlite_adl/variants/mk_v/devicetree.cb @@ -141,8 +141,10 @@ chip soc/intel/alderlake register "generic.hid" = ""GXTP7386"" register "generic.cid" = ""GXTP7386"" register "generic.desc" = ""Touchscreen"" - register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_F18)" + register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_F18_IRQ)" register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_F17)" + register "generic.reset_delay_ms" = "10" + register "generic.has_power_resource" = "1" register "hid_desc_reg_offset" = "0x01" device i2c 5d on end end diff --git a/src/mainboard/starlabs/starlite_adl/variants/mk_v/gpio.c b/src/mainboard/starlabs/starlite_adl/variants/mk_v/gpio.c index 1d02f38494..9b8bdf2ecc 100644 --- a/src/mainboard/starlabs/starlite_adl/variants/mk_v/gpio.c +++ b/src/mainboard/starlabs/starlite_adl/variants/mk_v/gpio.c @@ -323,9 +323,9 @@ const struct pad_config gpio_table[] = { /* F16: Not Connected */ PAD_NC(GPP_F16, NONE), /* F17: Touch Panel Reset */ - PAD_CFG_GPO(GPP_F17, 1, PLTRST), + PAD_CFG_GPO(GPP_F17, 1, DEEP), /* F18: Touch Panel Interrupt */ - PAD_CFG_GPI_GPIO_DRIVER(GPP_F18, NONE, DEEP), + PAD_CFG_GPI_APIC(GPP_F18, NONE, PLTRST, LEVEL, INVERT), /* F19: Not Connected */ PAD_NC(GPP_F19, NONE), /* F20: Not Connected */ -- cgit v1.2.3