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 <fabiobaltieri@google.com>
This commit is contained in:
Fabio Baltieri 2023-12-19 11:02:16 +00:00 committed by Fabio Baltieri
parent a7dccc4475
commit c0e6629b7b

View file

@ -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);
}