tests: drivers: build_all: Rework modem test to be more generic

Add support to build all current modem drivers (WNCM14A2A, GSM PPP, and
ublox-sara).  We need a unique config for ublox-sara to be built since
the networking params conflict with other modem drivers.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-10-15 03:23:06 -05:00 committed by Maureen Helm
commit dc0466f8a1
5 changed files with 66 additions and 1 deletions

View file

@ -107,6 +107,15 @@
#include "spi.dtsi"
};
test_uart: uart@55556666 {
compatible = "vnd,serial";
reg = <0x55556666 0x1000>;
label = "TEST_UART_CTLR";
status = "okay";
#include "uart.dtsi"
};
dht22 {
compatible = "aosong,dht";
status = "okay";

View file

@ -1,10 +1,16 @@
CONFIG_TEST=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_TEST_USERSPACE=y
CONFIG_NETWORKING=y
CONFIG_NET_IPV4=y
CONFIG_NET_PPP=y
CONFIG_NET_L2_PPP=y
CONFIG_MODEM=y
CONFIG_MODEM_HL7800=y
CONFIG_MODEM_HL7800_FW_UPDATE=y
CONFIG_MODEM_HL7800_SET_APN_NAME_ON_STARTUP=y
CONFIG_MODEM_HL7800_APN_NAME="internet"
CONFIG_MODEM_HL7800_RAT_M1=y
CONFIG_MODEM_WNCM14A2A=y
CONFIG_MODEM_GSM_PPP=y
CONFIG_MODEM_GSM_UART_NAME="TEST_UART_CTLR"

View file

@ -0,0 +1,6 @@
CONFIG_TEST=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_NETWORKING=y
CONFIG_NET_SOCKETS=y
CONFIG_MODEM=y
CONFIG_MODEM_UBLOX_SARA=y

View file

@ -87,5 +87,10 @@ tests:
drivers.modem.build:
build_only: true
extra_args: CONF_FILE=modem.conf
platform_allow: pinnacle_100_dvk
platform_exclude: serpente particle_boron
tags: drivers
drivers.modem.ublox_sara.build:
build_only: true
extra_args: CONF_FILE=modem_ublox_sara.conf
platform_exclude: serpente pinnacle_100_dvk
tags: drivers

View file

@ -0,0 +1,39 @@
/*
* Copyright (c) 2020, Linaro Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*
* Application overlay for uart devices
*/
test_hl7800: hl7800 {
compatible = "swir,hl7800";
label = "hl7800";
mdm-reset-gpios = <&test_gpio 0 0>;
mdm-wake-gpios = <&test_gpio 0 0>;
mdm-pwr-on-gpios = <&test_gpio 0 0>;
mdm-fast-shutd-gpios = <&test_gpio 0 0>;
mdm-uart-dtr-gpios = <&test_gpio 0 0>;
mdm-uart-dsr-gpios = <&test_gpio 0 0>;
mdm-uart-cts-gpios = <&test_gpio 0 0>;
mdm-gpio6-gpios = <&test_gpio 0 0>;
mdm-vgpio-gpios = <&test_gpio 0 0>;
};
test_wnc_m14a2a: wncm14a2a {
compatible = "wnc,m14a2a";
label = "wnc-m14a2a";
mdm-boot-mode-sel-gpios = <&test_gpio 0 0>;
mdm-power-gpios = <&test_gpio 0 0>;
mdm-keep-awake-gpios = <&test_gpio 0 0>;
mdm-reset-gpios = <&test_gpio 0 0>;
mdm-shld-trans-ena-gpios = <&test_gpio 0 0>;
};
test_sara_r4: sara_r4 {
compatible = "ublox,sara-r4";
label = "ublox-sara-r4";
mdm-power-gpios = <&test_gpio 0 0>;
mdm-reset-gpios = <&test_gpio 0 0>;
};