xref: /openbmc/linux/drivers/net/wwan/Kconfig (revision 035e3bef)
19a44c1ccSLoic Poulain# SPDX-License-Identifier: GPL-2.0-only
29a44c1ccSLoic Poulain#
39a44c1ccSLoic Poulain# Wireless WAN device configuration
49a44c1ccSLoic Poulain#
59a44c1ccSLoic Poulain
689212e16SLoic Poulainmenu "Wireless WAN"
79a44c1ccSLoic Poulain
889212e16SLoic Poulainconfig WWAN
99a44c1ccSLoic Poulain	tristate "WWAN Driver Core"
109a44c1ccSLoic Poulain	help
119a44c1ccSLoic Poulain	  Say Y here if you want to use the WWAN driver core. This driver
129a44c1ccSLoic Poulain	  provides a common framework for WWAN drivers.
139a44c1ccSLoic Poulain
149a44c1ccSLoic Poulain	  To compile this driver as a module, choose M here: the module will be
159a44c1ccSLoic Poulain	  called wwan.
169a44c1ccSLoic Poulain
1789212e16SLoic Poulainif WWAN
1889212e16SLoic Poulain
19283e6f5aSSergey Ryazanovconfig WWAN_DEBUGFS
20283e6f5aSSergey Ryazanov	bool "WWAN devices debugfs interface" if EXPERT
21283e6f5aSSergey Ryazanov	depends on DEBUG_FS
22283e6f5aSSergey Ryazanov	default y
23283e6f5aSSergey Ryazanov	help
24283e6f5aSSergey Ryazanov	  Enables debugfs infrastructure for the WWAN core and device drivers.
25283e6f5aSSergey Ryazanov
26283e6f5aSSergey Ryazanov	  If this option is selected, then you can find the debug interface
27283e6f5aSSergey Ryazanov	  elements for each WWAN device in a directory that is corresponding to
28283e6f5aSSergey Ryazanov	  the device name: debugfs/wwan/wwanX.
29283e6f5aSSergey Ryazanov
30f36a111aSSergey Ryazanovconfig WWAN_HWSIM
31f36a111aSSergey Ryazanov	tristate "Simulated WWAN device"
32f36a111aSSergey Ryazanov	help
33f36a111aSSergey Ryazanov	  This driver is a developer testing tool that can be used to test WWAN
34f36a111aSSergey Ryazanov	  framework.
35f36a111aSSergey Ryazanov
36f36a111aSSergey Ryazanov	  To compile this driver as a module, choose M here: the module will be
37f36a111aSSergey Ryazanov	  called wwan_hwsim.  If unsure, say N.
38f36a111aSSergey Ryazanov
39fa588ebaSLoic Poulainconfig MHI_WWAN_CTRL
40fa588ebaSLoic Poulain	tristate "MHI WWAN control driver for QCOM-based PCIe modems"
41fa588ebaSLoic Poulain	depends on MHI_BUS
42fa588ebaSLoic Poulain	help
43fa588ebaSLoic Poulain	  MHI WWAN CTRL allows QCOM-based PCIe modems to expose different modem
44fa588ebaSLoic Poulain	  control protocols/ports to userspace, including AT, MBIM, QMI, DIAG
45fa588ebaSLoic Poulain	  and FIREHOSE. These protocols can be accessed directly from userspace
46fa588ebaSLoic Poulain	  (e.g. AT commands) or via libraries/tools (e.g. libmbim, libqmi,
47fa588ebaSLoic Poulain	  libqcdm...).
48fa588ebaSLoic Poulain
49fa588ebaSLoic Poulain	  To compile this driver as a module, choose M here: the module will be
50fa588ebaSLoic Poulain	  called mhi_wwan_ctrl.
51fa588ebaSLoic Poulain
52aa730a99SLoic Poulainconfig MHI_WWAN_MBIM
53aa730a99SLoic Poulain        tristate "MHI WWAN MBIM network driver for QCOM-based PCIe modems"
54aa730a99SLoic Poulain        depends on MHI_BUS
55aa730a99SLoic Poulain        help
56aa730a99SLoic Poulain          MHI WWAN MBIM is a WWAN network driver for QCOM-based PCIe modems.
57aa730a99SLoic Poulain          It implements MBIM over MHI, for IP data aggregation and muxing.
58aa730a99SLoic Poulain          A default wwan0 network interface is created for MBIM data session
59aa730a99SLoic Poulain          ID 0. Additional links can be created via wwan rtnetlink type.
60aa730a99SLoic Poulain
61aa730a99SLoic Poulain          To compile this driver as a module, choose M here: the module will be
62aa730a99SLoic Poulain          called mhi_wwan_mbim.
63aa730a99SLoic Poulain
6421a0ffd9SStephan Gerholdconfig QCOM_BAM_DMUX
6521a0ffd9SStephan Gerhold	tristate "Qualcomm BAM-DMUX WWAN network driver"
6621a0ffd9SStephan Gerhold	depends on (DMA_ENGINE && PM && QCOM_SMEM_STATE) || COMPILE_TEST
6721a0ffd9SStephan Gerhold	help
6821a0ffd9SStephan Gerhold	  The BAM Data Multiplexer provides access to the network data channels
6921a0ffd9SStephan Gerhold	  of modems integrated into many older Qualcomm SoCs, e.g. Qualcomm
7021a0ffd9SStephan Gerhold	  MSM8916 or MSM8974. The connection can be established via QMI/AT from
7121a0ffd9SStephan Gerhold	  userspace with control ports available through the WWAN subsystem
7221a0ffd9SStephan Gerhold	  (CONFIG_RPMSG_WWAN_CTRL) or QRTR network sockets (CONFIG_QRTR).
7321a0ffd9SStephan Gerhold
7421a0ffd9SStephan Gerhold	  To compile this driver as a module, choose M here: the module will be
7521a0ffd9SStephan Gerhold	  called qcom_bam_dmux.
7621a0ffd9SStephan Gerhold
775e90abf4SStephan Gerholdconfig RPMSG_WWAN_CTRL
785e90abf4SStephan Gerhold	tristate "RPMSG WWAN control driver"
795e90abf4SStephan Gerhold	depends on RPMSG
805e90abf4SStephan Gerhold	help
815e90abf4SStephan Gerhold	  RPMSG WWAN CTRL allows modems available via RPMSG channels to expose
825e90abf4SStephan Gerhold	  different modem protocols/ports to userspace, including AT and QMI.
835e90abf4SStephan Gerhold	  These protocols can be accessed directly from userspace
845e90abf4SStephan Gerhold	  (e.g. AT commands) or via libraries/tools (e.g. libqmi, libqcdm...).
855e90abf4SStephan Gerhold
865e90abf4SStephan Gerhold	  This is mainly used for modems integrated into many Qualcomm SoCs,
875e90abf4SStephan Gerhold	  e.g. for AT and QMI on Qualcomm MSM8916 or MSM8974. Note that many
885e90abf4SStephan Gerhold	  newer Qualcomm SoCs (e.g. SDM845) still provide an AT port through
895e90abf4SStephan Gerhold	  this driver but the QMI messages can only be sent through
905e90abf4SStephan Gerhold	  QRTR network sockets (CONFIG_QRTR).
915e90abf4SStephan Gerhold
925e90abf4SStephan Gerhold	  To compile this driver as a module, choose M here: the module will be
935e90abf4SStephan Gerhold	  called rpmsg_wwan_ctrl.
945e90abf4SStephan Gerhold
95f7af616cSM Chetan Kumarconfig IOSM
96f7af616cSM Chetan Kumar	tristate "IOSM Driver for Intel M.2 WWAN Device"
97*035e3befSM Chetan Kumar	depends on PCI
98607d574aSM Chetan Kumar	select NET_DEVLINK
99283e6f5aSSergey Ryazanov	select RELAY if WWAN_DEBUGFS
100f7af616cSM Chetan Kumar	help
101f7af616cSM Chetan Kumar	  This driver enables Intel M.2 WWAN Device communication.
102f7af616cSM Chetan Kumar
103f7af616cSM Chetan Kumar	  If you have one of those Intel M.2 WWAN Modules and wish to use it in
104f7af616cSM Chetan Kumar	  Linux say Y/M here.
105f7af616cSM Chetan Kumar
106f7af616cSM Chetan Kumar	  If unsure, say N.
107f7af616cSM Chetan Kumar
10813e920d9SHaijun Liuconfig MTK_T7XX
10913e920d9SHaijun Liu	tristate "MediaTek PCIe 5G WWAN modem T7xx device"
11013e920d9SHaijun Liu	depends on PCI
11113e920d9SHaijun Liu	select RELAY if WWAN_DEBUGFS
11213e920d9SHaijun Liu	help
11313e920d9SHaijun Liu	  Enables MediaTek PCIe based 5G WWAN modem (T7xx series) device.
11413e920d9SHaijun Liu	  Adapts WWAN framework and provides network interface like wwan0
11513e920d9SHaijun Liu	  and tty interfaces like wwan0at0 (AT protocol), wwan0mbim0
11613e920d9SHaijun Liu	  (MBIM protocol), etc.
11713e920d9SHaijun Liu
11813e920d9SHaijun Liu	  To compile this driver as a module, choose M here: the module will be
11913e920d9SHaijun Liu	  called mtk_t7xx.
12013e920d9SHaijun Liu
12113e920d9SHaijun Liu	  If unsure, say N.
1229a44c1ccSLoic Poulain
12389212e16SLoic Poulainendif # WWAN
12489212e16SLoic Poulain
125endmenu
126