Skip to content

Commit 3bb62b7

Browse files
committed
drivers: modem_cellular: Add autostart support for BG95
Add optional autostart boolean to the quectel,bg95 binding and make MODEM_CELLULAR_DEFINE_INSTANCE() use it through DT_PROP_OR(). Boards that carry a BG95-M3 Mini-PCIe card—or any other variant that boots at VCC can now declare the property and skip the PWRKEY pulse, while existing designs continue to behave unchanged. Signed-off-by: Van Petrosyan <van.petrosyan@sensirion.com>
1 parent 322da1d commit 3bb62b7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

drivers/modem/modem_cellular.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2635,7 +2635,7 @@ MODEM_CHAT_SCRIPT_DEFINE(sqn_gm02s_periodic_chat_script,
26352635
.reset_pulse_duration_ms = (reset_ms), \
26362636
.startup_time_ms = (startup_ms), \
26372637
.shutdown_time_ms = (shutdown_ms), \
2638-
.autostarts = (start), \
2638+
.autostarts = DT_PROP_OR(DT_DRV_INST(inst), autostart, (start)), \
26392639
.set_baudrate_chat_script = (set_baudrate_script), \
26402640
.init_chat_script = (init_script), \
26412641
.dial_chat_script = (dial_script), \

dts/bindings/modem/quectel,bg95.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,11 @@ include: uart-device.yaml
1010
properties:
1111
mdm-power-gpios:
1212
type: phandle-array
13+
14+
autostart:
15+
type: boolean
16+
description: |
17+
Set for modem variants or carrier boards that start the module
18+
automatically when supply voltage is applied—that is, the modem
19+
asserts PWRKEY internally and does not require an external PWRKEY
20+
pulse.

0 commit comments

Comments
 (0)