summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Peng <Daniel_Peng@pegatron.corp-partner.google.com>2024-10-22 17:07:35 +0800
committerEric Lai <ericllai@google.com>2024-10-24 01:08:41 +0000
commit144cd4223be992177bef203a31db20fba7d7ad80 (patch)
tree82b1bba7143a4413ca03aa01d69b574dfd74b747
parent5a73fa16971356f1809e6a55fa5b5aeebbc6a041 (diff)
mb/google/nissa/var/glassway: Add touch screen ELAN9004 support
1. 2nd touch panel: INX N140HCN-EA1 C5 2. Set TOUCHSCREEN_ELAN9004 to value "3" BUG=b:374899470 BRANCH=firmware-nissa-15217.B TEST=1. emerge-nissa coreboot chromeos-bootimage 2. Confirm command evtest and touchscreen function is workable. Change-Id: Ic25bd46c7cb7948e920de4fd44edb87f20cf01c4 Signed-off-by: Daniel Peng <Daniel_Peng@pegatron.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84834 Reviewed-by: Eric Lai <ericllai@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jayvik Desai <jayvik@google.com>
-rw-r--r--src/mainboard/google/brya/variants/glassway/overridetree.cb26
1 files changed, 23 insertions, 3 deletions
diff --git a/src/mainboard/google/brya/variants/glassway/overridetree.cb b/src/mainboard/google/brya/variants/glassway/overridetree.cb
index 6c4d15e93f..3e2e2f1c52 100644
--- a/src/mainboard/google/brya/variants/glassway/overridetree.cb
+++ b/src/mainboard/google/brya/variants/glassway/overridetree.cb
@@ -32,9 +32,10 @@ fw_config
option WFC_PRESENT 1
end
field TOUCHSCREEN_SOURCE 32 33
- option TOUCHSCREEN_UNPROVISIONED 0
- option TOUCHSCREEN_ELAN0001 1
- option TOUCHSCREEN_GTCH7503 2
+ option TOUCHSCREEN_UNPROVISIONED 0
+ option TOUCHSCREEN_ELAN0001 1
+ option TOUCHSCREEN_GTCH7503 2
+ option TOUCHSCREEN_ELAN9004 3
end
end
@@ -374,6 +375,25 @@ chip soc/intel/alderlake
probe TOUCHSCREEN_SOURCE TOUCHSCREEN_GTCH7503
end
end
+ chip drivers/i2c/hid
+ register "generic.hid" = ""ELAN9004""
+ register "generic.desc" = ""ELAN Touchscreen""
+ register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)"
+ register "generic.detect" = "1"
+ register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)"
+ register "generic.reset_delay_ms" = "20"
+ register "generic.reset_off_delay_ms" = "2"
+ register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)"
+ register "generic.enable_delay_ms" = "6"
+ register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)"
+ register "generic.stop_delay_ms" = "150"
+ register "generic.stop_off_delay_ms" = "2"
+ register "generic.has_power_resource" = "1"
+ register "hid_desc_reg_offset" = "0x01"
+ device i2c 10 on
+ probe TOUCHSCREEN_SOURCE TOUCHSCREEN_ELAN9004
+ end
+ end
chip drivers/generic/gpio_keys
register "name" = ""PENH""
register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_F13)"