Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions snippets/nrf93m1dk-modem-bypass/nrf93m1dk_modem_bypas.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#
# Copyright (c) 2026 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

CONFIG_REGULATOR_FIXED_INIT_PRIORITY=95
73 changes: 73 additions & 0 deletions snippets/nrf93m1dk-modem-bypass/nrf93m1dk_modem_bypas.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/*
* Copyright (c) 2026 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/

/*
* This overlay is used to enable the nRF93M1DK in a modem-bypass mode where
* modem is powered on a boot and UART switch is controlled to route the
* modem's main UART to the VCOM1 port on the on-board debugger.
*/


/*

Check failure on line 14 in snippets/nrf93m1dk-modem-bypass/nrf93m1dk_modem_bypas.overlay

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

snippets/nrf93m1dk-modem-bypass/nrf93m1dk_modem_bypas.overlay:11 Remove unnecessary new lines. Expecting 1. See https://docs.zephyrproject.org/latest/contribute/style/devicetree.html for more details.
* UART routing switch:
* control IO have a pull-down resistor that defaults to bypass mode, so delete the control GPIO
*/
/delete-node/ &modem_uart_switch;

/*
* Enable the modem, so the power-domain is enabled
*/
&modem {
status = "okay";
};


/*

Check failure on line 28 in snippets/nrf93m1dk-modem-bypass/nrf93m1dk_modem_bypas.overlay

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

snippets/nrf93m1dk-modem-bypass/nrf93m1dk_modem_bypas.overlay:25 Remove unnecessary new lines. Expecting 2. See https://docs.zephyrproject.org/latest/contribute/style/devicetree.html for more details.
* Activate POWERKEY:
* Driver powerkey on boot, so the modem boots when DC power is enabled
*/
&gpio1 {
/* Remove the default powerkey config so I can redefine it */
/delete-node/ modem-powerkey;

modem_powerkey_on {
gpio-hog;
gpios = <13 GPIO_ACTIVE_HIGH>;
output-high;
};
};


/*

Check failure on line 44 in snippets/nrf93m1dk-modem-bypass/nrf93m1dk_modem_bypas.overlay

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

snippets/nrf93m1dk-modem-bypass/nrf93m1dk_modem_bypas.overlay:41 Remove unnecessary new lines. Expecting 2. See https://docs.zephyrproject.org/latest/contribute/style/devicetree.html for more details.
* Modem DCDC control:
* When board boots, wait 500ms before enabling the power for modem.
* Then wait another 500ms while the powerkey is active to trigger modem boot up.
*/
&modem_dcdc {
off-on-delay-us = <500000>;
startup-delay-us = <500000>;
};


/*

Check failure on line 55 in snippets/nrf93m1dk-modem-bypass/nrf93m1dk_modem_bypas.overlay

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

snippets/nrf93m1dk-modem-bypass/nrf93m1dk_modem_bypas.overlay:52 Remove unnecessary new lines. Expecting 2. See https://docs.zephyrproject.org/latest/contribute/style/devicetree.html for more details.
* Release powerkey:
* After modem is booted up, release the powerkey.
*/
/ {
/* Dummy regulator that switch powerkey off,
* This runs after gpio-hog switched the powerkey-on and power-domain enabled the DC power.
* The powerdomain driver have startup-delay that is enough for the powerkey.
* This depends on CONFIG_REGULATOR_FIXED_INIT_PRIORITY being higher than
* CONFIG_POWER_DOMAIN_GPIO_INIT_PRIORITY.
*/
modem_powerkey_off: modem_powerkey_off {
compatible = "regulator-fixed";
status = "okay";
regulator-name = "modem_powerkey";
enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
regulator-boot-off;
};
};
7 changes: 7 additions & 0 deletions snippets/nrf93m1dk-modem-bypass/snippet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: nrf93m1dk-modem-bypass

boards:
/nrf93m1dk.*/nrf54l15/cpuapp.*/:
append:
EXTRA_DTC_OVERLAY_FILE: nrf93m1dk_modem_bypas.overlay
EXTRA_CONF_FILE: nrf93m1dk_modem_bypas.conf
Loading