boards: arm: nordic: Add BG96 to RAK5010 board
Add BG96 in board description Add W Disable Pin in BG96 descriptor Signed-off-by: Guillaume Paquet <guillaume.paquet@smile.fr>
This commit is contained in:
parent
935ebc0134
commit
143a776657
5 changed files with 46 additions and 13 deletions
|
@ -907,6 +907,12 @@ static void pin_init(void)
|
|||
{
|
||||
LOG_INF("Setting Modem Pins");
|
||||
|
||||
#if DT_INST_NODE_HAS_PROP(0, mdm_wdisable_gpios)
|
||||
LOG_INF("Deactivate W Disable");
|
||||
modem_pin_write(&mctx, MDM_WDISABLE, 0);
|
||||
k_sleep(K_MSEC(250));
|
||||
#endif
|
||||
|
||||
/* NOTE: Per the BG95 document, the Reset pin is internally connected to the
|
||||
* Power key pin.
|
||||
*/
|
||||
|
|
|
@ -65,6 +65,9 @@ enum mdm_control_pins {
|
|||
#if DT_INST_NODE_HAS_PROP(0, mdm_dtr_gpios)
|
||||
MDM_DTR,
|
||||
#endif
|
||||
#if DT_INST_NODE_HAS_PROP(0, mdm_wdisable_gpios)
|
||||
MDM_WDISABLE,
|
||||
#endif
|
||||
};
|
||||
|
||||
/* driver data */
|
||||
|
@ -135,6 +138,12 @@ static struct modem_pin modem_pins[] = {
|
|||
DT_INST_GPIO_PIN(0, mdm_dtr_gpios),
|
||||
DT_INST_GPIO_FLAGS(0, mdm_dtr_gpios) | GPIO_OUTPUT_LOW),
|
||||
#endif
|
||||
#if DT_INST_NODE_HAS_PROP(0, mdm_wdisable_gpios)
|
||||
/* MDM_WDISABLE */
|
||||
MODEM_PIN(DT_INST_GPIO_LABEL(0, mdm_wdisable_gpios),
|
||||
DT_INST_GPIO_PIN(0, mdm_wdisable_gpios),
|
||||
DT_INST_GPIO_FLAGS(0, mdm_wdisable_gpios) | GPIO_OUTPUT_LOW),
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif /* #ifndef QUECTEL_BG9X_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue