From c0e6629b7bac4c7f4bd429d175b7671933fbdbf2 Mon Sep 17 00:00:00 2001 From: Fabio Baltieri Date: Tue, 19 Dec 2023 11:02:16 +0000 Subject: [PATCH] input: npcx_kbd: setup the interrupt to falling edge only The driver works on active low signals only, change the interrupt configuration to trigger on falling edges only. Signed-off-by: Fabio Baltieri --- drivers/input/input_npcx_kbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/input_npcx_kbd.c b/drivers/input/input_npcx_kbd.c index ba6dc398d1..7b2469d1d5 100644 --- a/drivers/input/input_npcx_kbd.c +++ b/drivers/input/input_npcx_kbd.c @@ -132,7 +132,7 @@ static void npcx_kbd_init_ksi_wui_callback(const struct device *dev, npcx_miwu_manage_callback(callback, 1); /* Configure MIWU setting and enable its interrupt */ - npcx_miwu_interrupt_configure(wui, NPCX_MIWU_MODE_EDGE, NPCX_MIWU_TRIG_BOTH); + npcx_miwu_interrupt_configure(wui, NPCX_MIWU_MODE_EDGE, NPCX_MIWU_TRIG_LOW); npcx_miwu_irq_enable(wui); }