1# Simcom sim7080 driver options 2 3# Copyright (C) 2021 metraTec GmbH 4# SPDX-License-Identifier: Apache-2.0 5 6config MODEM_SIM7080 7 bool "Sim7080 Driver" 8 select MODEM_CONTEXT 9 select MODEM_CMD_HANDLER 10 select MODEM_IFACE_UART 11 select MODEM_SOCKET 12 select NET_OFFLOAD 13 select NET_SOCKETS_OFFLOAD 14 imply GPIO 15 help 16 Enables the driver for the Sim7080 modem. 17 18if MODEM_SIM7080 19 20config MODEM_SIMCOM_SIM7080_RX_STACK_SIZE 21 int "Stack size for the simcom sim7080 modem driver rx thread" 22 default 1028 23 help 24 This stack is used by the simcom SIM7080 RX thread. 25 26config MODEM_SIMCOM_SIM7080_RX_WORKQ_STACK_SIZE 27 int "Stack size for the simcom sim7080 modem driver work queue" 28 default 2048 29 help 30 This stack is used by the work queue. 31 32config MODEM_SIMCOM_SIM7080_INIT_PRIORITY 33 int "simcom sim7080 driver init priority" 34 default 80 35 help 36 simcom sim7080 driver initialization priority. 37 38config MODEM_SIMCOM_SIM7080_LTE_BANDS 39 string "LTE bands the driver can use" 40 default "8,20,28" 41 help 42 Comma separated list of usable lte bands. 43 44config MODEM_SIMCOM_SIM7080_APN 45 string "APN for establishing a network connection" 46 default "internet" 47 help 48 This setting is used to set the APN name for the network connection 49 context. This value is specific to the network provider and may 50 need to be changed. 51 52config MODEM_SIMCOM_SIM7080_BAUDRATE 53 int "Baudrate for modem UART" 54 default 115200 55 help 56 Set this to the baudrate the uart is using. On first startup 57 the modem is configured to use autobaud. The driver will then 58 configure the modem to use a fixed baudrate for faster startups. 59 60config MODEM_SIMCOM_SIM7080_DNS_DEFAULT_RECOUNT 61 int "Retry count for a DNS query" 62 range 0 10 63 default 10 64 help 65 The number of retries for a DNS lookup 66 67config MODEM_SIMCOM_SIM7080_DNS_DEFAULT_TIMEOUT 68 int "Timeout for a DNS query" 69 range 0 60000 70 default 20000 71 help 72 The timeout for DNS queries in milliseconds 73 74choice MODEM_SIMCOM_SIM7080_RAT 75 bool "Radio Access Technology Mode" 76 default MODEM_SIMCOM_SIM7080_RAT_NB1 77 78config MODEM_SIMCOM_SIM7080_RAT_NB1 79 bool "NB-IoT" 80 help 81 Enable LTE NB-IoT mode. 82 83config MODEM_SIMCOM_SIM7080_RAT_M1 84 bool "Cat-M1" 85 help 86 Enable Cat-M1 mode. 87 88config MODEM_SIMCOM_SIM7080_RAT_GSM 89 bool "GSM" 90 help 91 Enable GSM mode. 92 93endchoice 94 95choice 96 bool "Modem Boot Type" 97 default MODEM_SIMCOM_SIM7080_BOOT_TYPE_NORMAL 98 99config MODEM_SIMCOM_SIM7080_BOOT_TYPE_NORMAL 100 bool "Normal boot" 101 help 102 Boot the modem and attach to network 103 104config MODEM_SIMCOM_SIM7080_BOOT_TYPE_CONSTRAINED 105 bool "Constrained boot" 106 help 107 Check if the modem is operational and then power off 108 109endchoice 110 111endif # MODEM_SIM7080 112