summaryrefslogtreecommitdiff
path: root/src/mainboard/google/rex/variants/rex0/overridetree.cb
diff options
context:
space:
mode:
authorDinesh Gehlot <digehlot@google.com>2023-01-11 06:50:37 +0000
committerJakub Czapiga <jacz@semihalf.com>2023-05-19 10:45:41 +0000
commit6930b9580ea032c70a5409ccba3b3cfd1634abe6 (patch)
tree4f403bdf3f616b28d24cb6423dd20d5c2cf2a70f /src/mainboard/google/rex/variants/rex0/overridetree.cb
parent141d0dfafb211185f97460cf5d5e5f3e81f06c3d (diff)
mb/google/rex: Enable stylus support
This patch enables stylus support by configuring the "GPP_D08" irqs for rex SoC. This allows the SoC to detect a stylus device, when in use. However stylus is not a wake up source for the rex. BUG=b:282256460 Test=Stylus is detected on proto1 device. Signed-off-by: Dinesh Gehlot <digehlot@google.com> Change-Id: I84a71aa664698e105b738f8680d0a4751ca1fc72 Reviewed-on: https://review.coreboot.org/c/coreboot/+/71820 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kapil Porwal <kapilporwal@google.com> Reviewed-by: Subrata Banik <subratabanik@google.com>
Diffstat (limited to 'src/mainboard/google/rex/variants/rex0/overridetree.cb')
-rw-r--r--src/mainboard/google/rex/variants/rex0/overridetree.cb10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mainboard/google/rex/variants/rex0/overridetree.cb b/src/mainboard/google/rex/variants/rex0/overridetree.cb
index 59147c7ba4..84a0b6a4df 100644
--- a/src/mainboard/google/rex/variants/rex0/overridetree.cb
+++ b/src/mainboard/google/rex/variants/rex0/overridetree.cb
@@ -533,6 +533,16 @@ chip soc/intel/meteorlake
register "hid_desc_reg_offset" = "0x01"
device i2c 10 on end
end
+ chip drivers/generic/gpio_keys
+ register "name" = ""PENH""
+ # GPP_E04 is the IRQ source
+ register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_E04)"
+ register "key.dev_name" = ""EJCT""
+ register "key.linux_code" = "SW_PEN_INSERTED"
+ register "key.linux_input_type" = "EV_SW"
+ register "key.label" = ""pen_eject""
+ device generic 0 on end
+ end
end
device ref i2c2 on end
device ref i2c3 on