Commit graph

17,121 commits

Author SHA1 Message Date
Zhaoxiang Jin
16db983408 drivers: sim: Enable vref clock through sim driver
Enable vref clock through sim driver

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-09-25 09:21:18 +02:00
Zhaoxiang Jin
bf12516cb4 drivers: adc16: Enhance ADC16 driver.
1. Add new 'has-differential-mode' property to indicate
whether the ADC16 instance supports differential mode.
2. Enabled ADC16 differential mode.
3. Enabled ADC16 reference voltage selection.
4. Enabled ADC16 acquisition time configuration.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-09-25 09:21:18 +02:00
Benjamin Cabé
453cba7f13 include: drivers: sensor: improve docs for veml6031
complete doxygen docs for this sensor

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-25 01:30:46 +02:00
Declan Snyder
88c61d3668 include: hooks.h: Add mocks
Add mocks of platform hooks so that #ifdef are not needed around calls
to these functions.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-09-24 19:21:07 -04:00
Gerard Marull-Paretas
01ecd1ade5 dt-bindings: pinctrl: sf32lb52x: add all pinmux combinations
Information extracted from UM5201‐SF32LB52x‐EN, Table 5.1 and Table 5.5.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-24 19:19:26 -04:00
Thomas Schmid
bab5484ed8 sensor: mcp9600: extend driver functionality
Add support for runtime and devicetree configuration of themocouple
type, ADC resolution, filter coefficient and cold junction temperature
resolution. Extend device specific sensor channels to include cold
junction temperature, delta tempereature, hot junction temperature and
raw ADC values while still maintaining backwards compability with the
existing SENSOR_CHAN_AMBIENT_TEMP channel.

Signed-off-by: Thomas Schmid <tom@lfence.de>
2025-09-24 19:18:43 -04:00
Zhaoxiang Jin
26334d691b drivers: Add opamp API
Add opamp API header.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-09-24 19:18:11 -04:00
Zhaoxiang Jin
b47fbbb434 drivers: clock: Add opamp clock to syscon
Add opamp clock to syscon

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-09-24 19:18:11 -04:00
James Roy
270c67d7f3 fs: Add a FSTAB_ENTRY_DT_*_MOUNT_POINT macros
These macros provide a way to get the `mount-point` value from
an fstab entry:
- FSTAB_ENTRY_DT_MOUNT_POINT
- FSTAB_ENTRY_DT_INST_MOUNT_POINT

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-09-24 15:49:36 +01:00
Vladislav Pejic
1d02d57413 driver: adc: Added stream APIs for ADC
Introduce a streaming APIs for ADC devices.
Two new APIs are added to the adc_driver_api: submit and get_decoder.
Added decoder following APIs: get_frame_count, get_size_info, decode,
has_trigger.

Supported triggers are:
- ADC_TRIG_DATA_READY
- ADC_TRIG_FIFO_WATERMARK
- ADC_TRIG_FIFO_FULL
Supported operations to be done on trigger:
- include - whatever data is associated with the trigger
- nop - do nothing with data associated with the trigger
- drop - clear data associated with the trigger

Some changes to the linker scripts were needed to add decoder APIs.

Signed-off-by: Vladislav Pejic <vladislav.pejic@orioninc.com>
2025-09-23 17:50:25 -04:00
Erwan Gouriou
d3d7a65863 include: net: lldp.h: Include required headers
net_if.h and net_pkt.h are 2 headers required by lldp.h
as it needs to know net_if and net_pkt structs.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-09-23 12:10:30 -04:00
Bjarki Arge Andreasen
1767f131aa pm: refactor PM_S2RAM_CUSTOM_MARKING option to be promptless
The config PM_S2RAM_CUSTOM_MARKING is not an optional config for a
user to select, it is required by some soc implementations of S2RAM,
in which case it must be selected by the soc.

Refactor the configuration to be HAS_PM_S2RAM_CUSTOM_MARKING, and
make the currently only soc which needs it select it. Then update
samples which previously had to select this option for this soc.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-09-23 12:07:59 -04:00
Jordan Yates
cd41477c2f modem: modem_cellular: registration status callback
Add a new callback event for registration status changes.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-09-23 12:07:40 -04:00
Benjamin Cabé
e29c173251 driver: timer: ti_dmtimer: TI DM Timer header should not be public
ti_dmtimer.h contains mask definitions only used internally by the
driver. Make it a private header.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-23 12:07:29 -04:00
Chekhov Ma
f1056fc045 drivers: gpio: pca_series: add drive_strength config
Enables pca_series driver to set drive strength for part no with
PCA_HAS_LATCH capability.

Signed-off-by: Chekhov Ma <chekhov.ma@nxp.com>
2025-09-23 12:04:12 -04:00
Benjamin Cabé
8b56476e22 include: drivers: sensor: lis2dh: add missing docs
Add full doxygen for this newly introduced header.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-23 09:42:04 +01:00
Anthony Williams
ced81f6fe9 sensors: Add missing const to sensor rtio API's
Add missing const on `struct rtio_iodev *iodev`
sensor_reconfigure_read_iodev(), sensor_stream(),
and sensor_read(), all pass iodev to functions
which accepts struct rtio_iodev as const.
These functions should also be marked const.

Signed-off-by: Anthony Williams <anthony289478@gmail.com>
2025-09-23 09:40:43 +01:00
Chris Friedt
f071df29a7 posix: net: move gethostname() from static inline to normal function
Convert `gethostname()` from a static inline wrapper to a normal function
with regular linkage.

This change was prompted mainly as housekeeping for #95811, but a
secondary reason was to make this a linkable symbol so that the API works
at a binary level as well (which could be provided by the toolchain as
well).

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-09-23 09:39:24 +01:00
Chris Friedt
3ac279f3e3 net: hostname: include sys/util and toolchain headers
Include `<zephyr/toolchain.h>` to get access to `ARG_UNUSED()` and include
`<zephyr/sys/util.h>` to get access to `MAX()`.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-09-23 09:39:24 +01:00
Yurii Lozynskyi
c15920613d drivers: counter: add PSC3M5 counter driver
- Add a new counter driver implementation based on the PDL for
  Infineon CAT1B devices. This enables support for hardware
  counters on the PSC3M5 platform.
- Add IFX_TCPWM_Counter_DeInit and IFX_TCPWM_Counter_Init
  macros to include/zephyr/drivers/timer/ifx_tcpwm.h
  and sort all of the macros in that file

Signed-off-by: Yurii Lozynskyi <yurii.lozynskyi@infineon.com>
2025-09-22 17:50:00 -04:00
Dong Wang
64cbfb90f7 soc: intel_ish: Simplify ISH AON linker script
- Remove per-object AON macros and replace with explicit KEEP entries
  referencing libish_aontask.a for .text/.rodata/.data/.bss.
- Introduce __ish_aon_start / __ish_aon_end linker symbols.
- Rename GROUP from AON to ISH_AON for clarity.
It's not good to specify source file names in linker script.

Signed-off-by: Dong Wang <dong.d.wang@intel.com>
2025-09-22 13:30:55 -04:00
Benjamin Cabé
7be280cee6 bluetooth: mesh: access: doxygen improvements
A few straightforward cleanups to existing documentation to improve
coverage and properly hide internal macros.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-22 13:30:13 -04:00
Sai Santhosh Malae
a0b0173b2f drivers: dma: siwx91x: GPDMA clock initialization for siwx91x
Clock driver changes required for initializing the GPDMA clock
for the siwx91x driver

Signed-off-by: Sai Santhosh Malae <Santhosh.Malae@silabs.com>
2025-09-22 13:26:52 -04:00
Christophe Dufaza
dca154df3e Bluetooth: Host: Amend disconnected() callback documentation
The API documentation for the disconnected() callback warns that
the listener can't assume that the corresponding connection object
has been freed and may me available to the application.

The recommendations given to still start a new connection
or connectable advertiser are outdated or misleading:
- "start connectable advertising": the options that "will attempt
  to resume the advertiser under some conditions" are deprecated
  since Zephyr 4.0 (BT_LE_ADV_OPT_CONNECTABLE and related)
- "using k_work_submit()": assuming everything will be fine
  when the work is actually processed is not reliable
- "increase CONFIG_BT_MAX_CONN": setting BT_MAX_CONN to N+1
  when planning N simultaneous connections is a work-around
  that users may have gotten used to (despite its footprint),
  but there is no longer any reason to advise it

Stop documenting creating new connections or restarting advertising
from the disconnected() callback and instead recommend relying
on recycled() for these use cases.

Signed-off-by: Christophe Dufaza <chris@openmarl.org>
2025-09-22 13:25:11 -04:00
Christophe Dufaza
60797818d5 Bluetooth: Host: Amend recycled() callback documentation
The API documentation for the recycled() callback predates [1],
and still warns users to "treat this callback as an ISR",
although it now runs on the system workqueue thread,
as does disconnected().
"Making Bluetooth API calls" to "re-start connectable advertising or
scanning" should no longer be "strongly discouraged".

On the contrary, we can emphasize that this is the right event
to listen for to initiate operations that will try to re-allocate
a freed connection object.

Mention that BT_MAX_CONN configures the size of the connection pool.

Refs:
- [1] efb5d83: Bluetooth: Host: Defer `conn.recycled()` to the syswq

Signed-off-by: Christophe Dufaza <chris@openmarl.org>
2025-09-22 13:25:11 -04:00
Jordan Yates
c0a2928f46 modem: at_shell: extract user pipe handling
Extract the user pipe setup and claim/release logic so that it can be
re-used by other software modules, if the AT shell is not used. Ideally
the chat instance would live within the `modem_at_user_pipe.c` and be
handed out by `modem_at_user_pipe_claim`, but the current chat API
doesn't make this possible.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-09-22 09:53:00 +02:00
Zhaoxiang Jin
711a88726d drivers: sim: Enable cmp clock through sim driver
Enable cmp clock through sim driver

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-09-19 17:47:58 -04:00
Gerard Marull-Paretas
3e49ad425f dt-bindings: pinctrl: add pin definitions boilerplate for SF32LB52x
Add valid pin configurations boilerplate for SF32LB52x. All valid
configurations will be added in a follow-up commit.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-19 16:34:15 +02:00
Gerard Marull-Paretas
445efe2969 dts: bindings: pinctrl: add sifli,sf32lb52x-pinmux
Add bindings for the SF32LB52X SoCs PINMUX peripheral. Note that
SF32LB56X SoCs contain a compatible IP (not others, where HPSYS_CFG is
not required), so if SF32LB56X support is added, binding could be
adjusted to reflect 52x/56x support.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-19 16:34:15 +02:00
Gerard Marull-Paretas
b083e2c864 drivers: clock_control: sf32lb: add initial driver
Initial driver for SF32LB SoCs. This driver is incomplete, but allows
to configure the system for a minimal boot.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-19 16:34:15 +02:00
Gerard Marull-Paretas
b82dccce20 dt-bindings: clock: add definitions for SF32LB52X clocks
So they can easily be referenced in devicetree.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-19 16:34:15 +02:00
Gerard Marull-Paretas
21813831e1 dts: bindings: clock: add sifli,sf32lb-rcc-clk
Add binding for SF32LB RCC (clock part).

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-19 16:34:15 +02:00
Bjarki Arge Andreasen
5438462a6a pm: device: runtime: Only select EVENTS if PM_DEVICE_RUNTIME_ASYNC
The k_event event is only used if CONFIG_PM_DEVICE_RUNTIME_ASYNC is
selected, but EVENTS is selected, and the k_event included in the
struct pm_device if CONFIG_PM_DEVICE_RUNTIME is selected.

Correct to only include event and EVENTS if
CONFIG_PM_DEVICE_RUNTIME_ASYNC is selected. This saves us 1
struct event per PM DEVICE.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-09-19 16:33:06 +02:00
Ren Chen
de93d4f41c soc: ite: it82xx2: add it82000.bw variant support
as title.

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2025-09-19 08:35:10 -04:00
Ren Chen
20c8f6b5f7 drivers: pinctrl: it8xxx2: add support for alternate function 5
This commit introduces alternate function 5 setting for it8xxx2 SoC.

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2025-09-19 08:35:10 -04:00
Cristian Bulacu
cdf5811791 net: dns: DNS resolver packet forwarding
This aims to implement a packet forwarding mechanism between
DNS resolver and applications that install a callback, letting
DNS resolver know that received UDP packet is also required by an
application.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-09-19 08:34:06 -04:00
Alain Volmat
9cc26d64e3 drivers: memc: stm32: removal of sdram1/sdram2/psram sections handling
SDRAM1 / SDRAM2 / PSRAM sections were being referenced in order to make
them accessible for the framebuffer. This is now addressed via the
mechanism provided by Zephyr hence this is no more necessary.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-09-19 08:28:22 -04:00
Mark Wang
a5edd6ae92 libsbc: fix hiding headers to doxygen
remove CONFIG_LIBSBC_ENCODER and CONFIG_LIBSBC_DECODER from sbc.h, then
include the required heders files path defaultly to fix building errors.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2025-09-19 08:28:12 -04:00
Mark Wang
11862613c3 libsbc: update header file comments as doxygen style
update sbc.h comments as doxygen style.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2025-09-19 08:28:12 -04:00
Romain Pelletant
732823e0c6 posix: options: replace kconfig for rw lock
- Update Kconfig from CONFIG_POSIX_READER_WRITER_LOCKS to POSIX_RW_LOCKS

Signed-off-by: Romain Pelletant <romainp@kickmaker.net>
2025-09-19 08:27:49 -04:00
Arthur Gay
acf7657c45 drivers: sensor: lis2dh: Add self-test attribute
Add support for enabling and configuring the self-test mode of the
LIS2DH accelerometer through a dedicated sensor attribute.

Signed-off-by: Arthur Gay <arthur.gay@marshmallow.kids>
2025-09-18 19:08:32 -04:00
Yongxu Wang
8767cec875 pm: states: add enum-string conversion helpers
Add two helper functions to convert power management states between
enum and string:

- pm_state_to_string()
- pm_state_from_string()

Signed-off-by: Yongxu Wang <yongxu.wang@nxp.com>
2025-09-18 13:48:30 -04:00
Qiang Zhao
b4f043d182 drivers: clock_control_mcux_ccm_rev2: add SAR_ADC clock support
Added SAR_ADC clock support for clock_control_mcux_ccm_rev2

Signed-off-by: Qiang Zhao <qiang.zhao@nxp.com>
2025-09-18 13:48:15 -04:00
Cristian Bulacu
42b7d63212 net: ipv6: Add function to get multicast address scope.
Added helper function to get scope of an IPv6 address. Also added raw
variant which uses plain uint8_t buffer.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-09-18 15:42:30 +01:00
Alain Volmat
63367b5cb4 drivers: clock: stm32: add PLLSAI handling (common/F4/F7)
Add code handling the pllsai. It is similar to the pllsai1
pllsai2 which can be found on some other socs, except, depending
on the socs the fact that pllsai source can be or not common with
other plls and moreover it can also have additional DIV_DIVQ
and DIV_DIVR additional dividers.
Choice is made to add PLLSAI instead of add further support to
PLLSAI1, in order to stick to the proper naming of the PLLs.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-09-18 15:41:02 +01:00
Quy Tran
a4bdcc4c97 include: clock_control: Add define configurations for RX26T MCU
RX26T MCU uses a clock source marcos with different value
compared to the previous, this commit add new one

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-09-18 15:40:34 +01:00
Hau Ho
861f453bce dts: renesas: rx: Initial support dts SoC layer on RX26T.
This commit to initial support dts SoC layer on RX26T

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2025-09-18 15:40:34 +01:00
Pieter De Gendt
58b28eec83 include: zephyr: net: coap: Fix doxygen for coap_packet.user_data
Fix the expansion guard for __DOXYGEN__ and improve the Kconfig dependency
reference.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-09-17 19:10:20 -04:00
Firas Sammoura
a1a47e21d9 util: Add MAX_FROM_LIST macro to find the maximum of variable arguments
This change introduces a set of C preprocessor macros to determine the
maximum value from a list of 1 to 10 arguments.

The main macro `MAX_FROM_LIST(...)` dispatches to specialized `MAX_N`
macros (where N is from 1 to 10) based on the number of arguments
provided. This is achieved using a common variadic macro technique
involving a helper macro `GET_MAX_MACRO` to count the arguments and
select the appropriate implementation.

The `MAX_N` macros are defined recursively using the ternary operator
`?:` to perform comparisons.

This provides a compile-time mechanism to find the maximum value within
a small set of numbers.

Signed-off-by: Firas Sammoura <fsammoura@google.com>
2025-09-17 19:01:03 +02:00
Benjamin Cabé
6221251254 include: mgmt: mcumgr: fix few incorrect doxygen comments in os_mgmt.h
A few documentation comments in os_mgmt.h were not using the proper
"javadoc-style" comments.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-17 16:37:57 +02:00