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:
Michael Scott 2019-05-17 10:09:00 -07:00 committed by Anas Nashif
parent 421b426281
commit c0d9e7fcb5
6 changed files with 80 additions and 0 deletions

View file

@ -0,0 +1 @@
CONFIG_UART_MCUX_2=y

View 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 */
};
};

View file

@ -0,0 +1,3 @@
CONFIG_GPIO_NRF_P1=y
CONFIG_UART_1_NRF_UARTE=y
CONFIG_UART_1_NRF_FLOW_CONTROL=y

View 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 */
};
};

View 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

View file

@ -0,0 +1,7 @@
/*
* Copyright (c) 2019 Foundries.io
*
* SPDX-License-Identifier: Apache-2.0
*/
/* File meant to be empty */