Skip to content

Commit

Permalink
input: npcx_kbd: setup the interrupt to falling edge only
Browse files Browse the repository at this point in the history
The driver works on active low signals only, change the interrupt
configuration to trigger on falling edges only.

Signed-off-by: Fabio Baltieri <[email protected]>
  • Loading branch information
fabiobaltieri committed Dec 20, 2023
1 parent a7dccc4 commit c0e6629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/input_npcx_kbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit c0e6629

Please sign in to comment.