Skip to content

Commit

Permalink
drivers/modem/alt1250: Temporary fix for ALT1250 power on sequence
Browse files Browse the repository at this point in the history
The shutdown pin may chatter in some cases, preventing
the ALT1250 from powering on properly.
This fix is a temporary set the shutdown pin to LOW before
power on for avoiding the power-on does fail.
  • Loading branch information
SPRESENSE committed May 12, 2022
1 parent 132b918 commit fa307a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions boards/arm/cxd56xx/spresense/src/cxd56_alt1250_power.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <errno.h>

#include <nuttx/board.h>
#include <nuttx/signal.h>
#include <nuttx/spi/spi.h>
#include <nuttx/modem/alt1250.h>
#include <nuttx/wdog.h>
Expand All @@ -43,6 +44,7 @@
****************************************************************************/

#define RESET_INTERVAL_TIMEOUT MSEC2TICK(1)
#define POWERON_DELAY_USEC 10 * 1000

/****************************************************************************
* Private Data
Expand Down Expand Up @@ -71,6 +73,12 @@ void board_alt1250_poweron(void)
cxd56_gpio_write(ALT1250_LTE_POWER_BUTTON, false);

cxd56_gpio_config(ALT1250_SHUTDOWN, false);

/* Workaround: Shutdown pin set to low before power on */

cxd56_gpio_write(ALT1250_SHUTDOWN, false);
nxsig_usleep(POWERON_DELAY_USEC);

cxd56_gpio_write(ALT1250_SHUTDOWN, true);

board_power_control(POWER_LTE, true);
Expand Down

0 comments on commit fa307a7

Please sign in to comment.