[coreboot-gerrit] Change in coreboot[master]: mb/google/poppy/variants/nautilus: Add gpio-keys ACPI node for PENH

Furquan Shaikh (Code Review) gerrit at coreboot.org
Fri Jan 12 05:33:03 CET 2018


Furquan Shaikh has uploaded this change for review. ( https://review.coreboot.org/23238


Change subject: mb/google/poppy/variants/nautilus: Add gpio-keys ACPI node for PENH
......................................................................

mb/google/poppy/variants/nautilus: Add gpio-keys ACPI node for PENH

This change uses gpio_keys driver to add ACPI node for pen eject event.

Change-Id: Ib293c2ca532c8ed9e2587143b1a69300cd9fa4e9
Signed-off-by: Furquan Shaikh <furquan at chromium.org>
---
M src/mainboard/google/poppy/Kconfig
M src/mainboard/google/poppy/variants/nautilus/devicetree.cb
2 files changed, 10 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/38/23238/1

diff --git a/src/mainboard/google/poppy/Kconfig b/src/mainboard/google/poppy/Kconfig
index 9315d96..db1ac11 100644
--- a/src/mainboard/google/poppy/Kconfig
+++ b/src/mainboard/google/poppy/Kconfig
@@ -2,6 +2,7 @@
 config BOARD_GOOGLE_BASEBOARD_POPPY
 	def_bool n
 	select BOARD_ROMSIZE_KB_16384
+	select DRIVERS_GENERIC_GPIO_KEYS
 	select DRIVERS_I2C_GENERIC
 	select DRIVERS_I2C_HID
 	select EC_GOOGLE_CHROMEEC
diff --git a/src/mainboard/google/poppy/variants/nautilus/devicetree.cb b/src/mainboard/google/poppy/variants/nautilus/devicetree.cb
index d74588d..6760556 100644
--- a/src/mainboard/google/poppy/variants/nautilus/devicetree.cb
+++ b/src/mainboard/google/poppy/variants/nautilus/devicetree.cb
@@ -321,6 +321,15 @@
 				register "hid_desc_reg_offset" = "0x1"
 				device i2c 0x9 on end
 			end
+			chip drivers/generic/gpio_keys
+				register "name" = ""PENH""
+				register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_B12)"
+				register "key.dev_name" = ""EJCT""
+				register "key.linux_code" = "0xf"
+				register "key.linux_input_type" = "0x5"
+				register "key.label" = ""pen_eject""
+				device generic 0 on end
+			end
 		end # I2C #3
 		device pci 16.0 on  end # Management Engine Interface 1
 		device pci 16.1 off end # Management Engine Interface 2

-- 
To view, visit https://review.coreboot.org/23238
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib293c2ca532c8ed9e2587143b1a69300cd9fa4e9
Gerrit-Change-Number: 23238
Gerrit-PatchSet: 1
Gerrit-Owner: Furquan Shaikh <furquan at google.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180112/286a7f86/attachment.html>


More information about the coreboot-gerrit mailing list