Chen Wisley has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/36125 )
Change subject: mb/google/hatch/var/dratini: Add ElAN touchscreen support ......................................................................
mb/google/hatch/var/dratini: Add ElAN touchscreen support
Add ELAN EKTH6915 USI touchsreen support.
BUG=b:139392144 TEST=check touchscreen work, and confirmed power sequence with vendor.
Change-Id: I8ebc067bbb407498de00ea0b6c23b0848023cffe Signed-off-by: Wisley Chen wisley.chen@quantatw.com --- M src/mainboard/google/hatch/variants/dratini/overridetree.cb 1 file changed, 16 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/25/36125/1
diff --git a/src/mainboard/google/hatch/variants/dratini/overridetree.cb b/src/mainboard/google/hatch/variants/dratini/overridetree.cb index 8fc33ef..28b18b8 100644 --- a/src/mainboard/google/hatch/variants/dratini/overridetree.cb +++ b/src/mainboard/google/hatch/variants/dratini/overridetree.cb @@ -109,6 +109,22 @@ register "hid_desc_reg_offset" = "0x01" device i2c 5d on end end + chip drivers/i2c/hid + register "generic.hid" = ""ELAN2513"" + register "generic.desc" = ""ELAN Touchscreen"" + register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_D16_IRQ)" + register "generic.probed" = "1" + register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" + register "generic.reset_delay_ms" = "20" + register "generic.reset_off_delay_ms" = "2" + register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" + register "generic.enable_delay_ms" = "10" + register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C4)" + register "generic.stop_delay_ms" = "130" + register "generic.has_power_resource" = "1" + register "hid_desc_reg_offset" = "0x01" + device i2c 15 on end + end end # I2C #1 device pci 15.2 off end # I2C #2 device pci 15.3 off end # I2C #3
Hello Paul Fagerburg, Philip Chen, Tim Wawrzynczak, build bot (Jenkins), Furquan Shaikh,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/36125
to look at the new patch set (#2).
Change subject: mb/google/hatch/var/dratini: Add ELAN touchscreen support ......................................................................
mb/google/hatch/var/dratini: Add ELAN touchscreen support
Add ELAN EKTH6915 USI touchsreen support.
BUG=b:139392144 TEST=check touchscreen work, and confirmed power sequence with vendor.
Change-Id: I8ebc067bbb407498de00ea0b6c23b0848023cffe Signed-off-by: Wisley Chen wisley.chen@quantatw.com --- M src/mainboard/google/hatch/variants/dratini/overridetree.cb 1 file changed, 16 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/25/36125/2
Paul Fagerburg has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36125 )
Change subject: mb/google/hatch/var/dratini: Add ELAN touchscreen support ......................................................................
Patch Set 2: Code-Review+1
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36125 )
Change subject: mb/google/hatch/var/dratini: Add ELAN touchscreen support ......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/c/coreboot/+/36125/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/dratini/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/36125/2/src/mainboard/google/hatch/... PS2, Line 113: ELAN2513 What driver does this bind to? I don't see ELAN2513 in drivers/input/mouse/elan_i2c_core.c
Wisley Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36125 )
Change subject: mb/google/hatch/var/dratini: Add ELAN touchscreen support ......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/c/coreboot/+/36125/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/dratini/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/36125/2/src/mainboard/google/hatch/... PS2, Line 113: ELAN2513
What driver does this bind to? I don't see ELAN2513 in drivers/input/mouse/elan_i2c_core. […]
It's use common hid-i2c driver, and doesn't bind to specific driver
Wisley Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36125 )
Change subject: mb/google/hatch/var/dratini: Add ELAN touchscreen support ......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/c/coreboot/+/36125/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/dratini/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/36125/2/src/mainboard/google/hatch/... PS2, Line 113: ELAN2513
It's use common hid-i2c driver, and doesn't bind to specific driver
Ack
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36125 )
Change subject: mb/google/hatch/var/dratini: Add ELAN touchscreen support ......................................................................
Patch Set 2: Code-Review+2
(1 comment)
https://review.coreboot.org/c/coreboot/+/36125/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/dratini/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/36125/2/src/mainboard/google/hatch/... PS2, Line 113: ELAN2513
Ack
Thanks for the info!
Shelley Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36125 )
Change subject: mb/google/hatch/var/dratini: Add ELAN touchscreen support ......................................................................
Patch Set 2: Code-Review+2
Wisley Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36125 )
Change subject: mb/google/hatch/var/dratini: Add ELAN touchscreen support ......................................................................
Patch Set 2:
Hi Shelley/Tim,
Please help to merge it and cherry-pick to chromium TOT.
Thanks
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36125 )
Change subject: mb/google/hatch/var/dratini: Add ELAN touchscreen support ......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/c/coreboot/+/36125/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/dratini/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/36125/2/src/mainboard/google/hatch/... PS2, Line 123: 130 What is this delay? I don't see it in the datasheet.
Wisley Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36125 )
Change subject: mb/google/hatch/var/dratini: Add ELAN touchscreen support ......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/c/coreboot/+/36125/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/dratini/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/36125/2/src/mainboard/google/hatch/... PS2, Line 123: 130
What is this delay? I don't see it in the datasheet.
in datasheet, from reset to i2c activity need to 300ms. I feel 300 ms is too long. So, I add stop pin delay to 130 ms and make sure the sequence can meet elan's FW requirement with elan fw engineer.
Wisley Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36125 )
Change subject: mb/google/hatch/var/dratini: Add ELAN touchscreen support ......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/c/coreboot/+/36125/2/src/mainboard/google/hatch/... File src/mainboard/google/hatch/variants/dratini/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/36125/2/src/mainboard/google/hatch/... PS2, Line 123: 130
in datasheet, from reset to i2c activity need to 300ms. […]
Ack
Patrick Georgi has submitted this change. ( https://review.coreboot.org/c/coreboot/+/36125 )
Change subject: mb/google/hatch/var/dratini: Add ELAN touchscreen support ......................................................................
mb/google/hatch/var/dratini: Add ELAN touchscreen support
Add ELAN EKTH6915 USI touchsreen support.
BUG=b:139392144 TEST=check touchscreen work, and confirmed power sequence with vendor.
Change-Id: I8ebc067bbb407498de00ea0b6c23b0848023cffe Signed-off-by: Wisley Chen wisley.chen@quantatw.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/36125 Reviewed-by: Paul Fagerburg pfagerburg@chromium.org Reviewed-by: Tim Wawrzynczak twawrzynczak@chromium.org Reviewed-by: Shelley Chen shchen@google.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/mainboard/google/hatch/variants/dratini/overridetree.cb 1 file changed, 16 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Shelley Chen: Looks good to me, approved Tim Wawrzynczak: Looks good to me, approved Paul Fagerburg: Looks good to me, but someone else must approve
diff --git a/src/mainboard/google/hatch/variants/dratini/overridetree.cb b/src/mainboard/google/hatch/variants/dratini/overridetree.cb index 8fc33ef..28b18b8 100644 --- a/src/mainboard/google/hatch/variants/dratini/overridetree.cb +++ b/src/mainboard/google/hatch/variants/dratini/overridetree.cb @@ -109,6 +109,22 @@ register "hid_desc_reg_offset" = "0x01" device i2c 5d on end end + chip drivers/i2c/hid + register "generic.hid" = ""ELAN2513"" + register "generic.desc" = ""ELAN Touchscreen"" + register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_D16_IRQ)" + register "generic.probed" = "1" + register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" + register "generic.reset_delay_ms" = "20" + register "generic.reset_off_delay_ms" = "2" + register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" + register "generic.enable_delay_ms" = "10" + register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C4)" + register "generic.stop_delay_ms" = "130" + register "generic.has_power_resource" = "1" + register "hid_desc_reg_offset" = "0x01" + device i2c 15 on end + end end # I2C #1 device pci 15.2 off end # I2C #2 device pci 15.3 off end # I2C #3
Wisley Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36125 )
Change subject: mb/google/hatch/var/dratini: Add ELAN touchscreen support ......................................................................
Patch Set 3:
Please help to cherry-pick to chromuim chromeos-2016.05 . Thanks