summaryrefslogtreecommitdiff
path: root/src/mainboard/starlabs/starlite_adl/variants
diff options
context:
space:
mode:
authorSean Rhodes <sean@starlabs.systems>2024-10-02 16:43:07 +0100
committerSean Rhodes <sean@starlabs.systems>2024-10-10 16:00:36 +0000
commitfea5bcf6cea53b584050439d5b58be96c5a4e1db (patch)
tree5bd72ee42e5b2294ecf98d30a4d8f0f01a05db83 /src/mainboard/starlabs/starlite_adl/variants
parent2943a74335f739b07058c0a454685dec7f5a180b (diff)
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 <sean@starlabs.systems> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84639 Reviewed-by: Maxim <max.senia.poliak@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/starlabs/starlite_adl/variants')
-rw-r--r--src/mainboard/starlabs/starlite_adl/variants/mk_v/devicetree.cb4
-rw-r--r--src/mainboard/starlabs/starlite_adl/variants/mk_v/gpio.c4
2 files changed, 5 insertions, 3 deletions
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 */