Commit graph

136,983 commits

Author SHA1 Message Date
Chris Friedt
de62eb23eb net: compat: remove conflicting declaration of ARPHRD_ETHER
Without removing this line, I would get a warning (promoted to error) that
the symbol was being redefined in either `net_ip.h` or
`posix/net/if_arp.h`. Actually, `posix/net/if_arp.h` probably should not
exist, but that is part of a separate PR.

Signed-off-by: Chris Friedt <chris@fr4.co>
2026-01-07 10:22:34 +01:00
Chris Friedt
31e54732f5 tests: net: use zsock APIs instead of POSIX APIs
Use zsock APIs rather than POSIX APIs in net subsys tests.

The primary last remaining API call was `fcntl()` and related
constants, strings, etc.

It's convention to use native zephyr APIs in the testsuites and
POSIX APIs in samples.

Signed-off-by: Chris Friedt <chris@fr4.co>
2026-01-07 10:22:34 +01:00
Yangbo Lu
58116ac9b5 samples: net: mdns_responder: support mimxrt1180_evk_mimxrt1189_cm33 board
Added mimxrt1180_evk_mimxrt1189_cm33 board support for mdns_responder.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2026-01-07 10:22:02 +01:00
Yangbo Lu
0773074474 net: dsa_port: disable IPv4/IPv6 for CPU port
DSA CPU port is only used for DSA management. Let's
disable IPv4/IPv6 for it.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2026-01-07 10:22:02 +01:00
Yangbo Lu
e7c8ab3324 net: mdns_responder: avoid running for IP not enabled iface
For iface which doesn't support IPv4/IPv6, mdns_responder should not be
run.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2026-01-07 10:22:02 +01:00
Yangbo Lu
11dbf5ae7a net: mdns_responder: do not add IPv4 multicast address to iface repeatly
After iface was link up, the IPv4 multicast address was added to iface
repeatly. This patch is to fix this.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2026-01-07 10:22:02 +01:00
Fabio Baltieri
dadcad5495 regulator: tps55287: implement current limit support
Implement current limit get/set support, this requires setting the shunt
resitor value.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-01-07 10:21:41 +01:00
Fabio Baltieri
40efe8af92 regulator: tps55287: add cdc setting support
Add a property for setting the CDC register.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-01-07 10:21:41 +01:00
Fabio Baltieri
5d72677eb6 regulator: tps55287: add output-discharge support
Implement the output discharge control regulator API.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-01-07 10:21:41 +01:00
Fabio Baltieri
070ff7b9ac regulator: tps55287: add enable pin handling
Add support for handling a gpio connectd to the device enable pin, this
has to be driven high to enable the device, and can be pulsed low to
reset the registers to the default configuration.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-01-07 10:21:41 +01:00
Fabio Baltieri
99b5ac1c58 regulator: tps55287: drop redundant initializers
Drop a couple of redundant initializers, these arrays are fully set/get
in the code.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-01-07 10:21:41 +01:00
Josuah Demangeon
bdc71fc0f7 tests: drivers: build_all: add tests for bflb,irx
Add build test for Bouffalo Lab IR receiver input driver.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2026-01-07 10:21:20 +01:00
Camille BAUD
1936dc6cc4 drivers: input: Introduce bflb IR RX driver
Introduces a driver for the IR receiver on BFLB socs

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-01-07 10:21:20 +01:00
Camille BAUD
53c7c4b959 drivers: clock_control: Add IRX clock elements
Enable the gates for IRX

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-01-07 10:21:20 +01:00
Camille BAUD
52f87abea8 west.yml: Update hal_bouffalab version
Update HAL version to latests for IRX regs

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-01-07 10:21:20 +01:00
Camille BAUD
bfd180e484 dts: bflb: Add IR RX nodes
Add binding and nodes for bflb,irx

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-01-07 10:21:20 +01:00
Chen Xingyu
3bf53bde02 doc: migration-guide-4.4: Update ESP32-S3 LCD_CAM restructuring notes
Add migration guidance for the ESP32-S3 LCD_CAM changes.

Signed-off-by: Chen Xingyu <hi@xingrz.me>

# Conflicts:
#	doc/releases/migration-guide-4.4.rst
2026-01-07 10:20:54 +01:00
Chen Xingyu
5a2cd978a1 boards: alientek: dnesp32s3b: Enable LCD support
This enables LCD support on the DNESP32S3B board using the ESP32 MIPI-DBI
driver in I8080 mode.

Signed-off-by: Chen Xingyu <hi@xingrz.me>
2026-01-07 10:20:54 +01:00
Chen Xingyu
cc3f7f2f45 drivers: mipi_dbi: Add ESP32 LCD_CAM backend
The LCD_CAM peripheral is a parallel I/O controller integrated in the ESP32
series. It consists of an LCD output module and a DVP camera input module.
The camera side is already supported in Zephyr as a video driver.

This commit adds support for the LCD module by implementing it as a
MIPI-DBI backend. The LCD_CAM supports multiple output formats, and the
initial implementation provides I8080 mode.

Signed-off-by: Chen Xingyu <hi@xingrz.me>
2026-01-07 10:20:54 +01:00
Chen Xingyu
e30dc74588 boards: seeed: xiao_esp32s3: Update for LCD_CAM restructuring
The former `&lcd_cam` node has been split into an `&lcd_cam` controller
and an `&lcd_cam_dvp` subdevice. Update the board DTS accordingly.

Signed-off-by: Chen Xingyu <hi@xingrz.me>
2026-01-07 10:20:54 +01:00
Chen Xingyu
b0ac2a376b boards: espressif: esp32s3_eye: Update for LCD_CAM restructuring
The former `&lcd_cam` node has been split into an `&lcd_cam` controller
and an `&lcd_cam_dvp` subdevice. Update the board DTS accordingly.

Signed-off-by: Chen Xingyu <hi@xingrz.me>
2026-01-07 10:20:54 +01:00
Chen Xingyu
bd9d8ba000 soc: espressif: Introduce common LCD_CAM support
Move the shared pinctrl and clock initialization for the LCD_CAM peripheral
from the ESP32 DVP driver into a new SoC-level implementation.

Update the ESP32-S3 DTS to reflect the new structure by introducing an
`lcd_cam_dvp` child node under the common `lcd_cam` parent node.

Signed-off-by: Chen Xingyu <hi@xingrz.me>
2026-01-07 10:20:54 +01:00
Chen Xingyu
21eac8f32b drivers: video: esp32: Rename to lcd-cam-dvp
Rename the ESP32 LCD_CAM DVP driver and its DT binding from
`espressif,esp32-lcd-cam` to `espressif,esp32-lcd-cam-dvp` to clearly
identify it as the DVP (camera) input block of the LCD_CAM peripheral.

Signed-off-by: Chen Xingyu <hi@xingrz.me>
2026-01-07 10:20:54 +01:00
Hau Ho
99710e418b tests: drivers: i2c: Add overlay and config file for FPB-RX261 board
Add overlay and config file for FPB-RX261 board

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-01-07 10:20:41 +01:00
Hau Ho
42dd3bae3a tests: drivers: i2c: Add overlay and config file for EK-RX261 board
Add overlay and config file for EK-RX261 board

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-01-07 10:20:41 +01:00
Hau Ho
0d4f1db3d4 boards: renesas: Add I2C support for FPB-RX261 board
Add I2C support for FPB-RX261 board

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-01-07 10:20:41 +01:00
Hau Ho
5e0c5e80a9 boards: renesas: Add I2C support for EK-RX261 board
Add I2C support for EK-RX261 board

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-01-07 10:20:41 +01:00
Hau Ho
73520eab9b dts: renesas: rx: Add dts property node for I2C support on RX261
Add dts property node for I2C support on RX261

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-01-07 10:20:41 +01:00
Quy Tran
f98465eaed manifest: hal_renesas: Update commit revision to support i2c on RX261
Update commit revision of hal_renesas for I2C supporting on RX261

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2026-01-07 10:20:41 +01:00
Samuel Coleman
3332a97295 lib: cbprintf: perform length calculation dry-run.
C99 § 7.19.6.5 defines `snprintf`. According to ¶ 2:

> If `n` is zero, nothing is written, and `s` may be a null pointer.

And according to § 7.19.6.12 ¶ 2:

> The `vsnprintf` function is equivalent to `snprintf` (...)

However, prior to this change, `vsnprintfcb` (and indirectly, `snprintfcb`)
unconditionally null-terminates the output buffer.

This fixes #48394, which was auto-closed without actually being fixed.

Co-authored-by: Adrien Lessard <adrien.lessard@rbr-global.com>
Signed-off-by: Samuel Coleman <samuel.coleman@rbr-global.com>
2026-01-07 10:20:22 +01:00
Scott Worley
c86c748ff0 soc: microchip: mec: Remove MECH172x the HAL based version of MEC172x
The goal is to slowly convert all Microchip MEC to in-tree drivers
and support code (no HAL). We had partial HAL support for MEC172x
as the mech172x folder. We are removing HAL based mech172x since HAL
will be deprecated in the future and it has no board support.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2026-01-07 07:51:22 +01:00
Scott Worley
ea3d277e4e tests: drivers: pinctrl: microchip: Add MEC parts to test
In-progress add Microchip MEC to PINCTRL test.
Note: This test only checks the pinmux value created by
device tree.  It does not check the pin configuration.
We enhanced the tests by checking GPIO control register field(s)
match the device tree properities.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2026-01-07 07:50:18 +01:00
Scott Worley
dc8b4d911b boards: microchip: mec_assy6941: Use new, in-tree PINCTRL files
We modified board level DTS to include new PINCTRL files from the
SoC DTS layer.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2026-01-07 07:50:18 +01:00
Scott Worley
4e017a7929 dts: arm: microchip: mec: Add PINCTRL DTSI files for MEC5 parts
As part of the long term HAL deprecation goal, we add PINCTRL
files for MEC174x, MEC175x, and MEC1653B.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2026-01-07 07:50:18 +01:00
Scott Worley
99ce899c22 drivers: pinctrl: microchip: mec: One PINCTRL driver for all MEC parts
GPIO hardware in Microchip MEC parts is the same except for the MUX
field (number of alternate functions). We modify the old XEC PINCTRL
driver to work on all MEC parts and also be independent of HAL and
CMSIS register structures. During development we found a DT issue
with DT_ENUM_IDX_OR always inserting the default value. Worked around
by converting slew rate and drive strength to YAML integer type and
created defines for the values in the dt-bindings header.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2026-01-07 07:50:18 +01:00
Zhaoxiang Jin
7ed9c743c0 tests: adc_api: enable adc_api test for frdm_mcxe31b
enable adc_api test for frdm_mcxe31b

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-01-07 07:49:49 +01:00
Zhaoxiang Jin
8e92b5b851 drivers: adc: nxp_sar_adc: implement async read function
Enabled async read function for NXP SAR ADC driver by implementing
nxp_sar_adc_read_async() and modifying nxp_sar_adc_read() to call it
with a NULL signal for synchronous operation.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-01-07 07:49:49 +01:00
Zhaoxiang Jin
2013e049f2 tests: drivers: enable adc dma test scenario for frdm_mcxa156
improve test coverage for nxp lpadc driver by adding dma test
scenario.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-01-07 07:49:16 +01:00
Zhaoxiang Jin
8de2b82e85 samples: adc: enable adc_sequence test for frdm_mcxa156
1. enable adc_sequence test for frdm_mcxa156
2. use DMA to transfer ADC conversion data in this sample

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-01-07 07:49:16 +01:00
Zhaoxiang Jin
52b8243fab dts: nxp: Add dma properties for nxp mcxa156 lpadc node
Add dmas properties for lpadc node in nxp_mcxa156.dtsi

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-01-07 07:49:16 +01:00
Zhaoxiang Jin
096dbbf8d2 drivers: adc: Adding DMA transfer capability to LPADC
Adding DMA transfer capability to LPADC

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-01-07 07:49:16 +01:00
Holt Sun
639f9bbab2 drivers: counter: mcux_lptmr: fire alarm immediately when ticks=0
Allow alarm_cfg->ticks to be 0 for immediate callback execution.
When ticks equals 0, set the interrupt pending instead of returning
-EINVAL, causing the ISR to fire immediately.

Implementation:
- Add irq_set_pending()/irq_is_pending() helpers for NVIC and GIC
- Store IRQ number in device config for pending operations
- Refactor timer state handling to eliminate duplication
- Update get_pending_int() to check both HW flags and NVIC/GIC state

This supports idle timer use cases where sleep duration may be zero
and eliminates the need for special-case handling in application code.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-01-07 07:47:56 +01:00
Holt Sun
385f343e5d drivers: counter: mcux_lptmr: add device tree support for freerunning mode
Add device tree property to configure LPTMR free-running mode instead
of hardcoding it to disabled.

The freerunning property controls counter reset behavior:
- If false (default): Counter resets after compare match
- If true: Counter resets only on overflow, continues after compare

This allows per-instance configuration of the LPTMR timer mode based
on application requirements without code changes.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-01-07 07:47:56 +01:00
Ian Morris
36e8ffb75c boards: renesas: ek_ra4l1: added mikrobus node labels
Added mikrobus_serial and mikrobus_header node labels to EK-RA4L1
device tree board definition, allowing compatible shield boards to
be used.

Signed-off-by: Ian Morris <ian.d.morris@outlook.com>
2026-01-07 07:46:27 +01:00
Fabian Blatz
66f1f75880 boards: teensy41: Add sdhc0 alias
Add a sdhc0 alias to the board so tests/subsys/sd/sdmmc can be build.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2026-01-07 07:46:09 +01:00
Jonas Berg
199aa44fc0 boards: shields: Add support for Adafruit INA3221 shield
Product photo from https://learn.adafruit.com/assets/133208
with the license CC BY-SA 3.0

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2026-01-07 07:45:51 +01:00
Jordan Yates
06cfd76dd2 net: lib: dhcpv4: disable IF_UP handling for HostAP
Disable the automatic handling of the `NET_EVENT_IF_UP` event when the
WPA supplicant is enabled, as the supplicant already explicitly calls
`net_dhcpv4_restart` when the interface is ready for use. This fixes
the DHCP binding process being restarted before the interface is ready
(after `NET_EVENT_IF_UP`, before authorization), which always fails.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-01-07 07:45:32 +01:00
Gaetan Perrot
4bec0387c8 drivers: adc: adc_stm32: make set_sequencer void
set_sequencer() never reports errors and always returns 0.
The error check at the call site is therefore dead code.

Make the function void and drop the unused error handling.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-01-07 07:45:01 +01:00
Guðni Már Gilbert
465150d796 twister: avoid scanning subcases for unselected test suites
Optimize testsuite discovery by skipping subcase scans for filtered suites

Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
2026-01-07 07:44:44 +01:00
Afonso Oliveira
81e28ca12f arch: riscv: avoid GNU statement-expr CSR write macros
csr_write(), csr_set(), and csr_clear() use GNU C statement expressions,
which triggers SonarQube/clang warnings like:

  use of GNU statement expression extension from macro expansion

Rewrite these write-only macros as do { ... } while (0) statement macros.
No functional change expected.

Signed-off-by: Afonso Oliveira <afonsoo@synopsys.com>
2026-01-07 07:44:13 +01:00