EricR Lai has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/59234 )
Change subject: mb/google/brya/var/felwinter: Enable garage pen detection ......................................................................
mb/google/brya/var/felwinter: Enable garage pen detection
Enable garage pen detection.
BUG=b:197912223 TEST=Check evtest can trigger event when toggling the switch.
Signed-off-by: Eric Lai ericr_lai@compal.corp-partner.google.com Change-Id: Ib5929c876d1a0da34dadd7997a61ab8e75acbbb6 --- M src/mainboard/google/brya/Kconfig.name M src/mainboard/google/brya/variants/felwinter/overridetree.cb 2 files changed, 13 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/34/59234/1
diff --git a/src/mainboard/google/brya/Kconfig.name b/src/mainboard/google/brya/Kconfig.name index 8d58fa5..8282489 100644 --- a/src/mainboard/google/brya/Kconfig.name +++ b/src/mainboard/google/brya/Kconfig.name @@ -60,6 +60,7 @@ config BOARD_GOOGLE_FELWINTER bool "-> Felwinter" select BOARD_GOOGLE_BASEBOARD_BRYA + select DRIVERS_GENERIC_GPIO_KEYS
config BOARD_GOOGLE_ANAHERA bool "-> Anahera" diff --git a/src/mainboard/google/brya/variants/felwinter/overridetree.cb b/src/mainboard/google/brya/variants/felwinter/overridetree.cb index 4647551..8420452 100644 --- a/src/mainboard/google/brya/variants/felwinter/overridetree.cb +++ b/src/mainboard/google/brya/variants/felwinter/overridetree.cb @@ -101,6 +101,18 @@ register "hid_desc_reg_offset" = "0x01" device i2c 10 on end end + chip drivers/generic/gpio_keys + register "name" = ""PENH"" + register "gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A7)" + register "key.wake_gpe" = "GPE0_DW0_08" + register "key.wakeup_route" = "WAKEUP_ROUTE_SCI" + register "key.wakeup_event_action" = "EV_ACT_DEASSERTED" + 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 i2c3 on end device ref i2c5 on