Skip to content

apply gridpoint patches atop Zephyr 4.4.0 - #5

Open
emilyingalls wants to merge 9 commits into
gridpoint-com:gridpoint-4.4.0from
emilyingalls:gridpoint-4.4.0
Open

emilyingalls wants to merge 9 commits into
gridpoint-com:gridpoint-4.4.0from
emilyingalls:gridpoint-4.4.0

Conversation

@emilyingalls

Copy link
Copy Markdown

No description provided.

Jon Ringle and others added 9 commits August 26, 2026 00:57
Add a new Kconfig option SHELL_BACKEND_SERIAL_OLF_CRLF that allows
configuring the line ending format used by the shell UART backend.
When enabled (default), the shell will use CR+LF (\r\n) line endings
for output text. When disabled, it will use the system default
(typically just LF, \n).

This replaces the hardcoded SHELL_FLAG_OLF_CRLF setting with a
conditional expression that selects the appropriate flag based on
the new configuration option. This gives users more control over
terminal output formatting when needed for specific applications
or terminal emulators.
Add noise floor measurement functionality to the SX12xx LoRa driver.
This includes:
- New lora_rssi.h header with noise floor API
- sx12xx_lora_get_noise_floor() implementation
- RSSI callback registration in Radio struct
- Extension API for driver-specific noise floor implementations
Add optional low-power sequencing for SX126x (GPIO and SUBGHZ radio
control) so the host can turn the radio off between operations.
Remove debug helpers dump_gpio() and dump_rf_ctrl().
Drop gridpoint_stm32wl_subghz_radio compat; use st,stm32wl-subghz-radio
only.

Signed-off-by: Jon Ringle <jringle@gridpoint.com>
Add support for RTC_ALARM_TIME_MASK_NSEC on STM32 series that implement the
RTC_ALRMASSR/RTC_ALRMBSSR subsecond alarm registers.

Infer whether NSEC matching was requested from the programmed MASKSS field
in the alarm subsecond register to avoid storing additional alarm state.

Signed-off-by: Jon Ringle <jringle@gridpoint.com>
Wrap alloc_node struct, k_free, z_thread_malloc calls, and
k_queue_alloc_append/prepend APIs with #ifdef CONFIG_KERNEL_MEM_POOL.

This allows building with CONFIG_KERNEL_MEM_POOL=n without requiring
stub implementations for heap functions. The alloc-based queue APIs
are only meaningful when heap is available.

Signed-off-by: GridPoint <engineering@gridpoint.com>
When lora_recv_async() is called with cb=NULL to cancel ongoing
reception, modem_release() is called but async_rx_cb is left pointing
to the previous callback. If a stale DIO1 work item fires after the
radio has been reconfigured for TX, sx12xx_ev_rx_done() checks
async_rx_cb (still set), calls Radio.Rx(0) during an active TX, and
fires the stale callback. This corrupts the radio state and leaks
packet buffers allocated by the callback.

Clear async_rx_cb before calling modem_release() so that any stale
DIO1 work item that fires after cancellation takes the synchronous
path in sx12xx_ev_rx_done(), which properly checks modem_usage and
bails out.

Signed-off-by: Jon Ringle <jringle@gridpoint.com>
Add Kconfig choice to control the IWDG_STDBY option byte, allowing
users to configure whether the independent watchdog runs or is frozen
during standby mode. Uses the public flash_ex_op API to read/write
option bytes at APPLICATION init level (flash device must be ready).

Three options:
- No change (default): leave option byte as-is, no extra code
- Freeze: clear IWDG_STDBY so IWDG is frozen in standby
- Active: set IWDG_STDBY so IWDG continues running in standby

The write triggers OBL_LAUNCH (system reset) only when the option byte
differs from the desired value. On subsequent boots, no write occurs.

Signed-off-by: Jon Ringle <jringle@gridpoint.com>
    Make dts field power-amplifier-output optional. If defined,
    the radio will remain bound to the power mode defined. Otherwise,
    the radio will be free to dynamically switch between high and low
    power modes based off the power level input.

Signed-off-by: Stevan Bowles <sbowles@gridpoint.com>
changes in zephyr 4.4.0 moved sa_family_t under a namespace.

my reading of the documentation implies that sa_family_t should
be made available to code including <sys/socket.h> or
<zephyr/posix/sys/socket.h> but this does not appear to be the
case. as such, code including arpa/inet.h fails to build due to
the undefined symbol.

this fixes the build issue by using the new symbol in that header.
@emilyingalls
emilyingalls requested review from a team and abelino October 23, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants