summaryrefslogtreecommitdiffstats
path: root/src/mainboard/system76/cml-u
diff options
context:
space:
mode:
authorTim Crawford <tcrawford@system76.com>2022-01-24 09:04:26 -0700
committerFelix Held <felix-coreboot@felixheld.de>2022-05-02 14:06:42 +0000
commitaa8b1f8b38bf1abcb6dd8c6f5f510c3006d0eec6 (patch)
treee8cc2ca03c5b2339da07298e0e803f9d693150bf /src/mainboard/system76/cml-u
parentfe99cbb378c58453ca8fd985f584b8cabe71dc85 (diff)
downloadcoreboot-aa8b1f8b38bf1abcb6dd8c6f5f510c3006d0eec6.tar.gz
coreboot-aa8b1f8b38bf1abcb6dd8c6f5f510c3006d0eec6.tar.bz2
coreboot-aa8b1f8b38bf1abcb6dd8c6f5f510c3006d0eec6.zip
mb/system76: Configure I2C HID IRQs as level triggered
Per Microsoft's spec for HID over I2C [1], interrupts must be level triggered. Switch GPIOs and the devicetree config to conform to this. Touchpad and multitouch gestures were already working, so no behavior changes are observed in normal use. [1]: http://download.microsoft.com/download/7/d/d/7dd44bb7-2a7a-4505-ac1c-7227d3d96d5b/hid-over-i2c-protocol-spec-v1-0.docx Change-Id: I485e616ae00e10bc3620ff3fa1fc1e903653c5cc Signed-off-by: Tim Crawford <tcrawford@system76.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/61343 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'src/mainboard/system76/cml-u')
-rw-r--r--src/mainboard/system76/cml-u/gpio.c2
-rw-r--r--src/mainboard/system76/cml-u/variants/darp6/overridetree.cb2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/system76/cml-u/gpio.c b/src/mainboard/system76/cml-u/gpio.c
index e3e4f540a631..03683ae7b95c 100644
--- a/src/mainboard/system76/cml-u/gpio.c
+++ b/src/mainboard/system76/cml-u/gpio.c
@@ -95,7 +95,7 @@ static const struct pad_config gpio_table[] = {
PAD_CFG_NF(GPP_C20, NONE, DEEP, NF1), // UART2_RXD
PAD_CFG_NF(GPP_C21, NONE, DEEP, NF1), // UART2_TXD
PAD_NC(GPP_C22, NONE),
- PAD_CFG_GPI_APIC_EDGE_LOW(GPP_C23, NONE, PLTRST), // NC on galp4, TP_ATTN# on darp6
+ PAD_CFG_GPI_APIC_LOW(GPP_C23, NONE, PLTRST), // NC on galp4, TP_ATTN# on darp6
/* ------- GPIO Group D ------- */
PAD_NC(GPP_D0, NONE),
diff --git a/src/mainboard/system76/cml-u/variants/darp6/overridetree.cb b/src/mainboard/system76/cml-u/variants/darp6/overridetree.cb
index 1723cea480c8..ff2cdc790c5a 100644
--- a/src/mainboard/system76/cml-u/variants/darp6/overridetree.cb
+++ b/src/mainboard/system76/cml-u/variants/darp6/overridetree.cb
@@ -5,7 +5,7 @@ chip soc/intel/cannonlake
chip drivers/i2c/hid
register "generic.hid" = ""PNP0C50""
register "generic.desc" = ""Synaptics Touchpad""
- register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_C23_IRQ)"
+ register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C23_IRQ)"
register "generic.probed" = "1"
register "hid_desc_reg_offset" = "0x20"
device i2c 2c on end