summaryrefslogtreecommitdiff
path: root/src/mainboard/google/brya/variants/yaviks
diff options
context:
space:
mode:
authorWisley Chen <wisley.chen@quanta.corp-partner.google.com>2023-08-02 13:00:25 +0600
committerMartin L Roth <gaumless@gmail.com>2023-08-16 15:15:14 +0000
commit725cb543d288b10192217d6f368af73b4d5deeeb (patch)
tree3bc25a9949b661a41c6a4200417a28c205f30d9d /src/mainboard/google/brya/variants/yaviks
parent0d1ea1d8b586c622b3517cb6a5f7ca2e91280c4e (diff)
mb/google/nissa/var/yaviks: Add elan i2c touchscreen
Implement support for elan i2c touchscreen and use fw_config to pick between i2c or HID-over-i2c touchscreen. BUG=b:294456574 BRANCH=firmware-nissa-15217.B TEST=build and verified touchscreen work Change-Id: I32ba97f5e5f6d280d1ae47da22360fde421a26c0 Signed-off-by: Wisley Chen <wisley.chen@quanta.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/77104 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src/mainboard/google/brya/variants/yaviks')
-rw-r--r--src/mainboard/google/brya/variants/yaviks/overridetree.cb26
1 files changed, 24 insertions, 2 deletions
diff --git a/src/mainboard/google/brya/variants/yaviks/overridetree.cb b/src/mainboard/google/brya/variants/yaviks/overridetree.cb
index 04b769be8f..e6460cdab5 100644
--- a/src/mainboard/google/brya/variants/yaviks/overridetree.cb
+++ b/src/mainboard/google/brya/variants/yaviks/overridetree.cb
@@ -28,6 +28,10 @@ fw_config
option MB_1C 0
option MB_1C_2A 1
end
+ field TOUCH_PANEL 40 41
+ option TOUCH_HID_I2C 0
+ option TOUCH_I2C 1
+ end
end
chip soc/intel/alderlake
@@ -225,11 +229,27 @@ chip soc/intel/alderlake
probe WFC WFC_MIPI_OVTI8856
end
device ref i2c1 on
+ chip drivers/i2c/generic
+ register "hid" = ""ELAN0001""
+ register "desc" = ""ELAN Touchscreen""
+ register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)"
+ register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)"
+ register "reset_delay_ms" = "20"
+ register "reset_off_delay_ms" = "2"
+ register "stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)"
+ register "stop_delay_ms" = "20"
+ register "stop_off_delay_ms" = "2"
+ register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)"
+ register "enable_delay_ms" = "5"
+ register "has_power_resource" = "1"
+ device i2c 10 on
+ probe TOUCH_PANEL TOUCH_I2C
+ end
+ end
chip drivers/i2c/hid
register "generic.hid" = ""ELAN2513""
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"
@@ -240,7 +260,9 @@ chip soc/intel/alderlake
register "generic.enable_delay_ms" = "1"
register "generic.has_power_resource" = "1"
register "hid_desc_reg_offset" = "0x01"
- device i2c 10 on end
+ device i2c 10 on
+ probe TOUCH_PANEL TOUCH_HID_I2C
+ end
end
chip drivers/i2c/hid
register "generic.hid" = ""ELAN900C""