From 66bd887005a5836c34228a763ce19893e644cae3 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Mon, 23 Dec 2019 15:07:57 -0600 Subject: [PATCH] mb/google/peppy: add _DSD to touchscreen ACPI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Recent changes to the Atmel touchscreen driver in the mainline kernel broke functionality with devices running upstream coreboot, due relying on another driver (chromeos_laptop) which makes the assumption that the i2c devices are be in PCI mode (as with the stock Google firmware) rather than in ACPI mode as they are in upstream coreboot. Mitigate this by adding the required devicetree property so the Atmel toushcreen driver will correctly attach without the use of chromeos_laptop. Test: build/boot peppy on 4.18+ kernel, verify touchscreen working Change-Id: I05df8367886eef55b409590f75a68d98d4e5fbdf Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/37915 Tested-by: build bot (Jenkins) Reviewed-by: Nicolò Reviewed-by: Angel Pons --- .../variants/peppy/include/variant/acpi/mainboard.asl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mainboard/google/slippy/variants/peppy/include/variant/acpi/mainboard.asl b/src/mainboard/google/slippy/variants/peppy/include/variant/acpi/mainboard.asl index cc3e063f19..4c930de9ca 100644 --- a/src/mainboard/google/slippy/variants/peppy/include/variant/acpi/mainboard.asl +++ b/src/mainboard/google/slippy/variants/peppy/include/variant/acpi/mainboard.asl @@ -140,6 +140,13 @@ Scope (\_SB.PCI0.I2C1) } } + Name (_DSD, Package () { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package () {"compatible", "atmel,maxtouch"}, + } + }) + Method (_STA) { If (LEqual (\S2EN, 1)) {