Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/81610?usp=email )
Change subject: mb/google/nissa/var/gothrax: Add touchscreen driver for ILI2901A-A210 ......................................................................
mb/google/nissa/var/gothrax: Add touchscreen driver for ILI2901A-A210
I2C slave addresses 0x41.
BUG=b:332458912 BRANCH=None TEST=emerge-nissa coreboot & working correctly in DUT
Change-Id: I2d26bfd4f415aa128b6256f83bc58987b15a557a Signed-off-by: Yunlong Jia yunlong.jia@ecs.corp-partner.google.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/81610 Reviewed-by: Eric Lai ericllai@google.com Reviewed-by: Varshit Pandya pandyavarshit@gmail.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/mainboard/google/brya/variants/gothrax/overridetree.cb 1 file changed, 18 insertions(+), 0 deletions(-)
Approvals: Varshit Pandya: Looks good to me, but someone else must approve Yunlong Jia: Looks good to me, but someone else must approve build bot (Jenkins): Verified Eric Lai: Looks good to me, approved
diff --git a/src/mainboard/google/brya/variants/gothrax/overridetree.cb b/src/mainboard/google/brya/variants/gothrax/overridetree.cb index 77be31c..49078fe 100644 --- a/src/mainboard/google/brya/variants/gothrax/overridetree.cb +++ b/src/mainboard/google/brya/variants/gothrax/overridetree.cb @@ -234,6 +234,24 @@ probe TOUCH_PANEL TOUCH_PANEL_ENABLE end end + chip drivers/i2c/hid + register "generic.hid" = ""ILI2901"" + register "generic.desc" = ""ILI 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" = "200" + 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.has_power_resource" = "1" + register "hid_desc_reg_offset" = "0x01" + device i2c 0x41 on + probe TOUCH_PANEL TOUCH_PANEL_ENABLE + end + end end device ref i2c2 on chip drivers/i2c/sx9324