1# u-blox SARA R4 driver options 2 3# Copyright (c) 2019 Foundries.io 4# SPDX-License-Identifier: Apache-2.0 5 6config MODEM_UBLOX_SARA 7 bool "Enable u-blox SARA modem 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 help 15 Choose this setting to enable u-blox SARA-R4 LTE-CatM1/NB-IoT modem 16 driver. 17 18if MODEM_UBLOX_SARA 19 20choice MODEM_UBLOX_SARA_VARIANT 21 bool "u-blox SARA variant selection" 22 default MODEM_UBLOX_SARA_R4 23 24config MODEM_UBLOX_SARA_R4 25 bool "u-blox SARA-R4" 26 help 27 Enable support for SARA-R4 modem 28 29config MODEM_UBLOX_SARA_U2 30 bool "u-blox SARA-U2" 31 help 32 Enable support for SARA-U2 modem 33 34config MODEM_UBLOX_SARA_AUTODETECT_VARIANT 35 bool "detect automatically" 36 help 37 Enable automatic detection of modem variant (SARA-R4 or SARA-U2) 38 39endchoice 40 41config MODEM_UBLOX_SARA_R4_RX_STACK_SIZE 42 int "Stack size for the u-blox SARA-R4 modem driver RX thread" 43 default 1028 44 help 45 This stack is used by the u-blox SARA-R4 RX thread. 46 47config MODEM_UBLOX_SARA_R4_RX_WORKQ_STACK_SIZE 48 int "Stack size for the u-blox SARA-R4 modem driver work queue" 49 default 2048 50 help 51 This stack is used by the work queue to pass off net_pkt data 52 to the rest of the network stack, letting the rx thread continue 53 processing data. 54 55config MODEM_UBLOX_SARA_R4_APN 56 string "APN for establishing network connection" 57 default "hologram" 58 help 59 This setting is used in the AT+CGDCONT command to set the APN name 60 for the network connection context. This value is specific to 61 the network provider and may need to be changed. 62 63config MODEM_UBLOX_SARA_AUTODETECT_APN 64 bool "detect APN automatically" 65 help 66 Enable automatic detection of the APN, based on the IMSI 67 If the detection fails, the configured APN will be used 68 69config MODEM_UBLOX_SARA_AUTODETECT_APN_PROFILES 70 string "list of profiles to search when autodetecting APN" 71 default "hologram=23450, wm=20601 29505 29509 23450 53703 90143" 72 help 73 Set a comma separated list of profiles, each containing of: 74 <apn>=<IMSI_1> ... <IMSI_n> 75 76config MODEM_UBLOX_SARA_R4_MANUAL_MCCMNO 77 string "MCC/MNOfor establishing network connection" 78 help 79 This setting is used in the AT+COPS command to set the MCC/MNO 80 for the network connection context. This value is specific to 81 the network provider and may need to be changed if auto is not 82 selected. 83 84config MODEM_UBLOX_SARA_R4_INIT_PRIORITY 85 int "u-blox SARA-R4 driver init priority" 86 default 80 87 help 88 u-blox SARA-R4 device driver initialization priority. 89 Do not mess with it unless you know what you are doing. 90 Note that the priority needs to be lower than the net stack 91 so that it can start before the networking sub-system. 92 93config MODEM_UBLOX_SARA_R4_NET_STATUS 94 bool "Enable support for network status indication" 95 help 96 Choose this setting to use a modem GPIO pin as network indication. 97 98if MODEM_UBLOX_SARA_R4_NET_STATUS 99 100config MODEM_UBLOX_SARA_R4_NET_STATUS_PIN 101 int "Network status indication GPIO ID" 102 default 16 103 help 104 This setting is used to configure one of the modem's GPIO pins 105 as a network status indication. See the manual for the gpio ids 106 and how they map to pin numbers. 107 108endif # MODEM_UBLOX_SARA_R4_NET_STATUS 109 110config MODEM_UBLOX_SARA_RSSI_WORK 111 bool "Enable RSSI polling work" 112 default y 113 help 114 u-blox SARA-R4 device is configured to poll for RSSI 115 116config MODEM_UBLOX_SARA_RSSI_WORK_PERIOD 117 int "Configure RSSI WORK polling frequency" 118 depends on MODEM_UBLOX_SARA_RSSI_WORK 119 default 30 120 help 121 This settings is used to configure the period of RSSI polling 122 123endif # MODEM_UBLOX_SARA 124