From a7a517ddc5e2224f730c951bea9d93ca80ea0d7f Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Wed, 25 Jan 2017 19:15:49 -0800 Subject: [PATCH] mainboard/google/pryo: Update touchscreen device ACPI nodes 1. For ELAN, export reset GPIO as well as PowerResource 2. For WCOM, export PowerResource BUG=chrome-os-partner:62311, chrome-os-partner:60194, chrome-os-partner:62371 BRANCH=reef TEST=Verified that touchscreen works on pyro with WCOM device on power-on as well as after suspend/resume. Change-Id: I0306e24e19bf821cd3e08fdacc0d78b494c9a92f Signed-off-by: Furquan Shaikh Reviewed-on: https://review.coreboot.org/18239 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- .../google/reef/variants/pyro/devicetree.cb | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/mainboard/google/reef/variants/pyro/devicetree.cb b/src/mainboard/google/reef/variants/pyro/devicetree.cb index 41086f024e..72ad57c567 100644 --- a/src/mainboard/google/reef/variants/pyro/devicetree.cb +++ b/src/mainboard/google/reef/variants/pyro/devicetree.cb @@ -187,6 +187,12 @@ chip soc/intel/apollolake .cid = PNP0C50_CID, .desc = WCOM_TS_DESC, .irq = IRQ_LEVEL_LOW(GPIO_21_IRQ), + .reset_gpio = ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_36), + .reset_delay_ms = 20, + .enable_gpio = ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_152), + .enable_delay_ms = 1, + .has_power_resource = 1, + .disable_gpio_export_in_crs = 1, }" register "hid_desc_reg_offset" = "0x1" device i2c 0xA on end @@ -196,14 +202,11 @@ chip soc/intel/apollolake register "desc" = ""ELAN Touchscreen"" register "irq" = "IRQ_EDGE_LOW(GPIO_21_IRQ)" register "probed" = "1" - - chip drivers/generic/gpio_regulator - register "name" = ""vcc33"" - register "gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_152)" - register "enabled_on_boot" = "1" - device generic 0 on end - end - + register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_36)" + register "reset_delay_ms" = "20" + register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_152)" + register "enable_delay_ms" = "1" + register "has_power_resource" = "1" device i2c 10 on end end end # - I2C 3