From 6c06602c75b074012700640b46e960b628577d52 Mon Sep 17 00:00:00 2001 From: John Su Date: Tue, 9 Sep 2025 16:04:46 +0800 Subject: [PATCH] mb/google/brya/var/uldrenite: Add fw_config probe for touchpad Because the touchpad includes two touch chips with the same I2C slave address, the firmware configuration is used to differentiate them. BUG=b:437025836 TEST=emerge-nissa coreboot Change-Id: If1e414594a2866bdc122d48d5f3e2f36066cd3d5 Signed-off-by: John Su Reviewed-on: https://review.coreboot.org/c/coreboot/+/89106 Reviewed-by: Dtrain Hsu Tested-by: build bot (Jenkins) --- .../brya/variants/uldrenite/overridetree.cb | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/mainboard/google/brya/variants/uldrenite/overridetree.cb b/src/mainboard/google/brya/variants/uldrenite/overridetree.cb index 8b9f69ab10..be87bc8bb4 100644 --- a/src/mainboard/google/brya/variants/uldrenite/overridetree.cb +++ b/src/mainboard/google/brya/variants/uldrenite/overridetree.cb @@ -19,6 +19,10 @@ fw_config option ISH_DISABLE 0 option ISH_ENABLE 1 end + field SERIES 9 9 + option SERIES_ULDRENITE 0 + option SERIES_ULDRINO 1 + end field STORAGE 30 31 option STORAGE_EMMC 0 option STORAGE_NVME 1 @@ -357,7 +361,20 @@ chip soc/intel/alderlake register "generic.detect" = "1" register "generic.wake" = "GPE0_DW1_03" register "hid_desc_reg_offset" = "0x20" - device i2c 2c on end + device i2c 2c on + probe SERIES SERIES_ULDRENITE + end + end + chip drivers/i2c/hid + register "generic.hid" = ""GDIX0000"" + register "generic.desc" = ""Goodix Touchpad"" + register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_B3_IRQ)" + register "generic.detect" = "1" + register "generic.wake" = "GPE0_DW1_03" + register "hid_desc_reg_offset" = "0x20" + device i2c 2c on + probe SERIES SERIES_ULDRINO + end end end # I2C1 device ref i2c5 on