summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Lai <ericr_lai@compal.corp-partner.google.com>2019-09-10 11:32:03 +0800
committerPatrick Georgi <pgeorgi@google.com>2019-09-11 14:44:35 +0000
commit3f19e1d97ff1a8410cf1973989cbb6573610388a (patch)
tree67f131481a2071c07b3173bfa9ad669309d49d64
parent5403a8e86141e6392705d6a7f5efdee4b8fe08f7 (diff)
mb/google/drallion: enable Elan and Melfas touch panel
Drallion uses the same touch panel as Sarien. Copy the deivce from Sarien. BUG=b:140415892,b:138082886 BRANCH=N/A TEST=N/A Signed-off-by: Eric Lai <ericr_lai@compal.corp-partner.google.com> Change-Id: I8e6d2dcf4bd2ed2325137a05811af03692d40342 Reviewed-on: https://review.coreboot.org/c/coreboot/+/35305 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/mainboard/google/drallion/variants/drallion/devicetree.cb31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/mainboard/google/drallion/variants/drallion/devicetree.cb b/src/mainboard/google/drallion/variants/drallion/devicetree.cb
index e96f9d739d..d8ef7a9d2f 100644
--- a/src/mainboard/google/drallion/variants/drallion/devicetree.cb
+++ b/src/mainboard/google/drallion/variants/drallion/devicetree.cb
@@ -332,6 +332,37 @@ chip soc/intel/cannonlake
register "hid_desc_reg_offset" = "0x1"
device i2c 0A on end
end
+ chip drivers/i2c/hid
+ register "generic.hid" = ""ELAN900C""
+ register "generic.desc" = ""ELAN Touchscreen""
+ register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_C23_IRQ)"
+ register "generic.probed" = "1"
+ register "generic.reset_gpio" =
+ "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E7)"
+ register "generic.reset_delay_ms" = "10"
+ register "generic.enable_gpio" =
+ "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B21)"
+ register "generic.enable_delay_ms" = "55"
+ register "generic.has_power_resource" = "1"
+ register "hid_desc_reg_offset" = "0x01"
+ register "generic.device_present_gpio" = "GPP_B4"
+ register "generic.device_present_gpio_invert" = "1"
+ device i2c 10 on end
+ end
+ chip drivers/i2c/generic
+ register "hid" = ""MLFS0000""
+ register "desc" = ""Melfas Touchscreen""
+ register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_C23_IRQ)"
+ register "probed" = "1"
+ register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E7)"
+ register "reset_delay_ms" = "10"
+ register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B21)"
+ register "enable_delay_ms" = "55"
+ register "has_power_resource" = "1"
+ register "device_present_gpio" = "GPP_B4"
+ register "device_present_gpio_invert" = "1"
+ device i2c 34 on end
+ end
end # I2C #0
device pci 15.1 on
chip drivers/i2c/generic