Description
Describe the bug
Attempting to enable MODEM_CELLULAR with the quectel,bg9x
driver does not work because the config is implicitly set to 'n'
during build.
warning: MODEM_CELLULAR (defined at drivers/modem/Kconfig.cellular:4) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (DT_HAS_QUECTEL_BG95_ENABLED ||
DT_HAS_SIMCOM_SIM7080_ENABLED || DT_HAS_U_BLOX_SARA_R4_ENABLED || DT_HAS_U_BLOX_SARA_R5_ENABLED ||
DT_HAS_SWIR_HL7800_ENABLED || DT_HAS_TELIT_ME910G1_ENABLED || DT_HAS_QUECTEL_EG25_G_ENABLED ||
DT_HAS_NORDIC_NRF91_SLM_ENABLED || DT_HAS_SQN_GM02S_ENABLED) (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MODEM_CELLULAR and/or look up
MODEM_CELLULAR in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.
This happens because of a missing dependence to DT_HAS_QUECTEL_BG9X_ENABLED
.
Regression
- This is a regression.
Steps to reproduce
- Add a
modem
child node to a UART, e.g.:
&usart1 {
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
pinctrl-names = "default";
status = "okay";
dma-names = "tx", "rx";
dmas = <&dma1 4 2 (STM32_DMA_PERIPH_TX | STM32_DMA_PRIORITY_HIGH | STM32_DMA_MEMORY_TO_PERIPH)>,
<&dma2 7 2 (STM32_DMA_PERIPH_RX | STM32_DMA_PRIORITY_HIGH)>;
};
- Set
CONFIG_MODEM_CELLULAR=y
- Build
Relevant log output
Impact
Functional Limitation – Some features not working as expected, but system usable.
Environment
- Ubuntu
- Zephyr SDK 0.17.0
- v3.7.1
Additional Context
No response