drivers: modem_cellular: Add autostart support for BG95 #93066
+9
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In PR #92794 we made
mdm-power-gpios
optional, as the BG95-M3 Mini-PCIe module boots automatically via its on-module “Automatic Power-On Circuit”. In the currentmodem_cellular
driver we have theautostart
property for BG95 hardcoded tofalse
, but that depends on the form factor.This patch adds a simple
autostart
boolean to the quectel,bg95 binding and a one-line change to the driver:If the board declares autostart; the driver skips the power-pulse routine; if the property is absent we fall back to the original hard-coded value so existing designs stay exactly as they are.
It might look convenient to assume “no
mdm-power-gpios
⇒ autostart”, but in reality we can havemdm-power-gpios
routed viaPERST#
pin of BG95-M3 to use as a reset, but still have the autostart functionality enabled.Tested on a custom board with BG95-M3, with both
autostart
enabled and disabled. When enabled the driver switches from idle to await power on state immediately.