shields: introduce shield-based WNC-M14A2A modem setup
This shield uses a non-standard UART exposed via Arduino-R3 compatible header pins. It has configurations for FRDM_K64F and nRF52840_PCA10056. Signed-off-by: Michael Scott <mike@foundries.io>
This commit is contained in:
parent
421b426281
commit
c0d9e7fcb5
1
boards/shields/wnc_m14a2a/boards/frdm_k64f.conf
Normal file
1
boards/shields/wnc_m14a2a/boards/frdm_k64f.conf
Normal file
|
@ -0,0 +1 @@
|
|||
CONFIG_UART_MCUX_2=y
|
26
boards/shields/wnc_m14a2a/boards/frdm_k64f.overlay
Normal file
26
boards/shields/wnc_m14a2a/boards/frdm_k64f.overlay
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* Copyright (c) 2019 Foundries.io
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/*
|
||||
* WNC-M14A2A shield uses an odd UART available on *some* Arduino-R3-compatible
|
||||
* headers. It needs to be defined individually.
|
||||
*/
|
||||
&uart2 {
|
||||
current-speed = <115200>;
|
||||
hw-flow-control;
|
||||
status = "ok";
|
||||
|
||||
wnc_m14a2a: wncm14a2a {
|
||||
status = "ok";
|
||||
compatible = "wnc,m14a2a";
|
||||
label = "wnc-m14a2a";
|
||||
mdm-boot-mode-sel-gpios = <&arduino_header 7 0>; /* D1 */
|
||||
mdm-power-gpios = <&arduino_header 8 0>; /* D2 */
|
||||
mdm-keep-awake-gpios = <&arduino_header 12 0>; /* D6 */
|
||||
mdm-reset-gpios = <&arduino_header 14 0>; /* D8 */
|
||||
mdm-shld-trans-ena-gpios = <&arduino_header 15 0>; /* D9 */
|
||||
};
|
||||
};
|
3
boards/shields/wnc_m14a2a/boards/nrf52840_pca10056.conf
Normal file
3
boards/shields/wnc_m14a2a/boards/nrf52840_pca10056.conf
Normal file
|
@ -0,0 +1,3 @@
|
|||
CONFIG_GPIO_NRF_P1=y
|
||||
CONFIG_UART_1_NRF_UARTE=y
|
||||
CONFIG_UART_1_NRF_FLOW_CONTROL=y
|
31
boards/shields/wnc_m14a2a/boards/nrf52840_pca10056.overlay
Normal file
31
boards/shields/wnc_m14a2a/boards/nrf52840_pca10056.overlay
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* Copyright (c) 2019 Foundries.io
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/*
|
||||
* WNC-M14A2A shield uses an odd UART available on *some* Arduino-R3-compatible
|
||||
* headers. It needs to be defined individually.
|
||||
*/
|
||||
&uart1 {
|
||||
current-speed = <115200>;
|
||||
hw-flow-control;
|
||||
status = "ok";
|
||||
|
||||
tx-pin = <46>;
|
||||
rx-pin = <45>;
|
||||
rts-pin = <44>;
|
||||
cts-pin = <47>;
|
||||
|
||||
wnc_m14a2a: wncm14a2a {
|
||||
status = "ok";
|
||||
compatible = "wnc,m14a2a";
|
||||
label = "wnc-m14a2a";
|
||||
mdm-boot-mode-sel-gpios = <&arduino_header 7 0>; /* D1 */
|
||||
mdm-power-gpios = <&arduino_header 8 0>; /* D2 */
|
||||
mdm-keep-awake-gpios = <&arduino_header 12 0>; /* D6 */
|
||||
mdm-reset-gpios = <&arduino_header 14 0>; /* D8 */
|
||||
mdm-shld-trans-ena-gpios = <&arduino_header 15 0>; /* D9 */
|
||||
};
|
||||
};
|
12
boards/shields/wnc_m14a2a/wnc_m14a2a.conf
Normal file
12
boards/shields/wnc_m14a2a/wnc_m14a2a.conf
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Enable WNC-M14A2A LTE-M Modem
|
||||
CONFIG_MODEM=y
|
||||
CONFIG_MODEM_SHELL=y
|
||||
CONFIG_MODEM_WNCM14A2A=y
|
||||
CONFIG_UART_INTERRUPT_DRIVEN=y
|
||||
|
||||
# extend retry timing to 20 seconds for LTE/LTE-M
|
||||
CONFIG_COAP_INIT_ACK_TIMEOUT_MS=20000
|
||||
|
||||
# Hack: disable IPv6 for now
|
||||
CONFIG_NET_IPV6=n
|
||||
CONFIG_NET_CONFIG_NEED_IPV6=n
|
7
boards/shields/wnc_m14a2a/wnc_m14a2a.overlay
Normal file
7
boards/shields/wnc_m14a2a/wnc_m14a2a.overlay
Normal file
|
@ -0,0 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 2019 Foundries.io
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/* File meant to be empty */
|
Loading…
Reference in a new issue