Skip to content

Commit

Permalink
driver: gpio: mcp23xxx: increase reset pin pulse duration
Browse files Browse the repository at this point in the history
The reset pulse is currently fixed at 1 µs, the minimum required for
the chip. However, a long reset pin trace can increases rise time, making
1 µs potentially insufficient for reliable detection of a reset signal.
Increase the pulse duration to 2 µs

Signed-off-by: Igor Knippenberg <[email protected]>
  • Loading branch information
skullbox305 authored and kartben committed Jan 17, 2025
1 parent 2c89ed5 commit a35fee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_mcp23xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(gpio_mcp23xxx);

#define MCP23XXX_RESET_TIME_US 1
#define MCP23XXX_RESET_TIME_US 2

/**
* @brief Reads given register from mcp23xxx.
Expand Down

0 comments on commit a35fee8

Please sign in to comment.