Skip to content

Cannot enable MODEM_CELLULAR with 'quectel,bg9x' compatible #93115

@guildeol-stra

Description

@guildeol-stra

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

  1. 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)>;
};
  1. Set CONFIG_MODEM_CELLULAR=y
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions