Commit Graph

102752 Commits

Author SHA1 Message Date
Francois Ramu ff34d575bc drivers: flash: stm32 qspi flash driver with unprotect command
Add the write_unprotect command to the stm32 qspi flash driver
to un protect flash before any write operation to the external quad-NOR

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2024-10-01 09:52:34 +02:00
Francois Ramu 76740ae1d1 drivers: flash: qspi stm32 driver supporting requires_ulbpr
Add the support of the requires_ulbpr property when a Microchip
quad-spi flash is mounted.
Set the CONFIG_USE_MICROCHIP_QSPI_FLASH_WITH_STM32=y flag to access
the command

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2024-10-01 09:52:34 +02:00
Francois Ramu 72370b23ce dts: bindings: flash_controller stm32 qspi has requires-ulbpr property
Add the <requires-ulbpr> property from the "jedec,spi-nor-common.yaml"
to the existing st,stm32-qspi-nor.yaml. So that external quad-NOR with
unlock the Global Block Protection (BPR) (opcode 0x98) is accepted.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2024-10-01 09:52:34 +02:00
Lucas Tamborrino 9ae3105f79 samples: drivers: video: capture: Add ESP32S3-EYE support
Add support for esp32s3-eye board.

Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2024-10-01 09:51:46 +02:00
Lucas Tamborrino 3f405ea92f boards: espressif: esp32s3 eye: add video feature
Add video as supported feature.

Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2024-10-01 09:51:46 +02:00
Lucas Tamborrino 6c99888bfe drivers: video: esp32: Fix unused variables
Fix build warning for unused variables.

Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2024-10-01 09:51:46 +02:00
Lucas Tamborrino 61644977d4 samples: drivers: video: capture: Add format config
Add video format Kconfig for proper sample configuration.

Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2024-10-01 09:51:46 +02:00
Keith Packard d5b6539614 picolibc: Update module to version 1.8.8
Switch to released version with all of the Zephyr build fixes

Signed-off-by: Keith Packard <keithp@keithp.com>
2024-10-01 09:47:27 +02:00
Florian Grandel 6733efdc84 arch: x86: ia32: linker.ld: add missing DT sections macro
Generating sections via DT memory attributes did not work for the
platform as only the memory region was created so far.

This change adds the DT_LINKER_SECTION() macro to the linker script so
that the appropriate sections will be generated, too.

Fixes #79085

Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
2024-10-01 09:47:15 +02:00
Jamie McCrae 18b20058a0 dfu: Add missing depends on for progressive erase
Adds a depends on that requires the underlying driver support
explicit erase

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-10-01 09:46:18 +02:00
Emilio Benavente a6ed05e765 tests: drivers: uart_async_api: fix userspace fault
Updated overlay files to test using nocache.
and run outside of usersapce mode to avoid
inaccessible memory regions when using nocache on RT parts.
Also updated testcase file to reflect nocache testing.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2024-09-30 17:00:17 -05:00
Ayush Singh 57f0894b8f boards: beagle: beagleconnect_freedom: doc: Update capabilities
- Add PWM, ADC, FLASH and Radio to docs

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2024-09-30 16:58:49 -05:00
Ayush Singh b68a823586 boards: beagle: beagleconnect_freedom: Enable adc, pwm tests
- Enable testing for ADC and PWM.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2024-09-30 16:58:49 -05:00
Ayush Singh 2c19cf65b4 boards: beagle: beagleconnect_freedom: Disable 2.4g ieee802154
- A lot of zephyr networking samples (zperf, http_server, etc) will
  complain if both 2.4g and subg ieee802154 are enabled simultaneously.
- This leads to a lot of new people getting confused with the network code
  not working without any clear errors.
- As we already set the alias `zephyr,ieee802154 = &ieee802154g`, I think
  it would be best to enable only subg by default.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2024-09-30 16:58:49 -05:00
Ayush Singh 1b81489ec5 tests: drivers: adc: adc_api: Add beagleconnect_freedom overlay
- Enabling adc testing for beagleconnect_freedom

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2024-09-30 16:58:49 -05:00
Ayush Singh c96de52107 samples: drivers: adc: Remove ADC node from overlay
- Since ADC node is now enabled in the base dt, this is no longer
  required

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2024-09-30 16:58:49 -05:00
Ayush Singh 3bcd0a658e boards: beagle: beagleconnect_freedom: Add ADC
- Enable ADC node to the base board.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2024-09-30 16:58:49 -05:00
Ayush Singh fc034ea54b samples: blinky_pwm: Remove enabling pwm in overlay
- Since PWM config has been moved to base devicetree, it can be safely
  removed from the sample.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2024-09-30 16:58:49 -05:00
Ayush Singh 9313fb60da boards: beagle: beagleconnect_freedom: Add PWM
- Add PWM support to base devicetree

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2024-09-30 16:58:49 -05:00
Raffael Rostagno 565005c27a drivers: wifi: esp32: Check blobs dependency
Checks blobs presence as dependency to allow driver build.
Goal is to avoid building in environment where blobs won't
be present (e.g GitHub CI environment).

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2024-09-30 16:57:50 -05:00
Raffael Rostagno 4409573e72 tests: wifi: esp32: Functional tests for CI
Functional wifi tests for ESP32 devices

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2024-09-30 16:57:50 -05:00
WenBin Zhang 48eb944e4d input: gpio_keys: fix gpio_pin_get_dt error handling
When gpio_pin_get_dt returns an error, the report event should not
be generated

Signed-off-by: WenBin Zhang <freey7955@gmail.com>
2024-09-30 16:57:06 -05:00
Ryan McClelland 996512d589 Revert "Revert "tests: drivers: i3c: add build of i3c_shell.c""
This reverts commit 50720f835b.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2024-09-30 16:56:04 -05:00
Ryan McClelland 22571f32bf drivers: i3c: shell: add shell cmd for ccc setbuscon
Add a i3c shell command for the i3c ccc setbuscon.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2024-09-30 16:56:04 -05:00
Ryan McClelland 901044f1e7 drivers: i3c: add ccc setbuscon
Add helpers and defines for the i3c ccc setbuscon.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2024-09-30 16:56:04 -05:00
Ryan McClelland 507e8170fa drivers: i3c: shell: fixup rstact
Both #78823 and #78807 merged at around the same time. This made it so
the shell didn't compile when #78823 was stacked on top as it did not run
with the test build. This fixes the compile issues.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2024-09-30 16:56:04 -05:00
Ryan McClelland 7e21f2e1ce drivers: i3c: shell: add parse args func for rstact
Add the parse args function for the rstact

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2024-09-30 16:56:04 -05:00
Helmut Lord aac15846fa west_commands: build: add extra file arguments
Adds an argument to include additional .conf or .overlay files

Example use:

```
west build -b nrf52840dk/nrf52840 -p --extra-conf foo.conf
```

```
west build -b nrf52840dk/nrf52840 -p --extra-dtc-overlay foo.overlay
```

Or:

```
west build -b nrf52840dk/nrf52840 -p --extra-conf foo.conf
--extra-conf bar.conf
```

```
west build -b nrf52840dk/nrf52840 -p --extra-dtc-overlay foo.overlay
--extra-dtc-overlay bar.overlay
```

Signed-off-by: Helmut Lord <kellyhlord@gmail.com>
2024-09-30 16:55:26 -05:00
Emilio Benavente 7f40866168 boards: nxp: mimxrt1060_evk: Updated Active state for user_led
The User LED for the mimxrt1060_evkb is inverted from the
mimxrt1060_evk, this commit updates the ACTIVE_STATE to be
HIGH rather than LOW.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2024-09-30 16:54:06 -05:00
Fabio Baltieri 5e2203a6cd stepper: shell: fix uninitialized variable compiler warning
Fixes:

/__w/zephyr/zephyr/include/zephyr/drivers/stepper.h:429:16: error:
'direction' may be used uninitialized [-Werror=maybe-uninitialized]

found with:

west build -p -b esp32s3_touch_lcd_1_28/esp32s3/appcpu -T
tests/drivers/stepper/shell/drivers.stepper.shell

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-09-30 17:13:07 +01:00
Lars-Ove Karlsson 8fceb6421f libc: minimal: math: Removed undefined behavior in sqrt routines
Fixed a clang config warning.

Signed-off-by: Lars-Ove Karlsson <lars-ove.karlsson@iar.com>
2024-09-30 17:12:43 +01:00
Lars-Ove Karlsson 0a8e1ad972 libc: minimal: math: Removed undefined behavior in sqrt routines
The previous code used casts of address of int to float pointer.
This is undefined behavior in C and may cause a compiler to
optimize code incorrectly.

I have replaced it with a union of int and float types,
eliminating the cast problem.

Signed-off-by: Lars-Ove Karlsson <lars-ove.karlsson@iar.com>
2024-09-30 17:12:43 +01:00
alperen sener 9ae8ebfade Tests: Bluetooth: Tester: Increase the number of max mesh tx segments
Increasing the number of max tx segments to be able to fit composition
page 0 into composition data status message.

After the subnet bridge config client and server are added to the
tester, the size needed to report composition data page 0 increased.
Current behaviour of the tester is correct, dropping the element when
there is not enough space in data field, however the PTS application
does not handle the composition data status message without element.

Signed-off-by: alperen sener <alperen.sener@nordicsemi.no>
2024-09-30 17:12:34 +01:00
Torsten Rasmussen d128a078f6 cmake: change test message overwrite to macro
Fixes: #79052

The yaml CMake tests overwrites `message()` in order to verify correct
error handling. This was original done in a function and then using
a return call when an expected error has been raised.
Using a function() means the `return()` only returns the `message()`
and thus wrongly continue processing rest of the yaml file.

Change `message()` to macro so the return call correctly returns from
the calling yaml functions.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-09-30 17:12:23 +01:00
Jukka Rissanen 759f3a0c7c tests/samples: net: Fix the max number of file descriptors
Make sure that CONFIG_ZVFS_OPEN_MAX in the tests and samples is at
least the same value as CONFIG_NET_SOCKETS_POLL_MAX so that we
cannot have more polled sockets than there are available file
descriptors.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-09-30 17:12:15 +01:00
Jukka Rissanen 2ff26674a2 net: dns: Check that dispatcher table is not overflowing
Add CHECKIF() checks that verify that dispatcher table is
not overflowing.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-09-30 17:12:15 +01:00
Jukka Rissanen 077dd8f142 net: dns: Increase the size of dispatcher table
The dispatcher table needs to be large enough to have support
for all file descriptor values.

Fixes #79042

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-09-30 17:12:15 +01:00
Gerard Marull-Paretas de70ebd66f boards: nordic: do not enable DMA_RAM21 region by default
This region is only required if certain fast peripherals make use of such
region for DMAing. It was now enabled on all builds, often resulting in:

```
[134/134] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       24372 B       248 KB      9.60%
             RAM:        4448 B       256 KB      1.70%
       DMA_RAM21:          0 GB        16 KB      0.00% <~~ Not used!
   DMA_RAM3x_APP:          40 B         4 KB      0.98%
        IDT_LIST:          0 GB        32 KB      0.00%
```

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-09-30 17:12:07 +01:00
Aksel Skauge Mellbye d82acdc4e4 drivers: spi: gecko: Use clock control on Series 2
Use clock control driver to configure peripheral clock on
Series 2 devices.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2024-09-30 17:12:01 +01:00
Aksel Skauge Mellbye 00270d0d12 drivers: serial: gecko: Use clock control on Series 2
Use clock control driver to configure peripheral clock on
Series 2 devices.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2024-09-30 17:12:01 +01:00
Aksel Skauge Mellbye bda8ae8c3f drivers: clock_control: silabs: Add clock control driver
Add clock control driver for Silicon Labs Series 2 and newer.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2024-09-30 17:12:01 +01:00
Aksel Skauge Mellbye 46367ff15a sys: util: Make FIELD_* available from device tree
Move FIELD_* macros from zephyr/sys/util.h to zephyr/sys/util_macro.h,
as zephyr/sys/util.h cannot be used from device tree.

Device tree uses zephyr/dt-bindings/dt-util.h, which includes
zephyr/sys/util_macro.h.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2024-09-30 17:12:01 +01:00
Aksel Skauge Mellbye 1299dc74df MAINTAINERS: Update patterns for Silabs platforms
Update glob patterns to include files using "silabs" naming
in addition to "gecko".

Also include the oddly named BT HCI driver.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2024-09-30 17:12:01 +01:00
Krystof Sadlik 44180a7dfc boards: NXP: mimxrt1040: added counter as supported
Mimxrt1040_ebk board was missing counter in the .yml file, also added GPT
to documentation

Signed-off-by: Krystof Sadlik <krystof.sadlik@nxp.com>
2024-09-30 17:11:45 +01:00
Gerard Marull-Paretas 9f0ebb64a6 drivers: i2c: nrfx_twim: simplify PM by using pm_device_driver_init
- Driver always initializes the device in the suspended state
- If CONFIG_PM_DEVICE_RUNTIME=n, device PM callback will be called with
  RESUME action, thus setting up pins to default state and enabling the
  peripheral

NOTE: when CONFIG_PM_DEVICE=n, the pinctrl sleep state will not be
available (-ENOENT) and so never applied, thus avoiding a pin
suspended->active transition.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-09-30 17:11:20 +01:00
Gerard Marull-Paretas 740eba1341 pm: device: allow optional support of TURN_ON action
Some devices, e.g. SoC level devices like I2C peripheral, can never be
powerd off as they are always energized. Such devices can only go from an
active state or to a low power state (suspended). Allow them to simply
return -ENOTSUP when called with TURN_ON (or TURN_OFF).

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-09-30 17:11:20 +01:00
Abderrahmane Jarmouni f8bac1ac1b doc: develop: flash_debug: host-tools: fix typo
Fix registred trademark typo

Signed-off-by: Abderrahmane Jarmouni <git@jarmouni.me>
2024-09-30 17:11:04 +01:00
Abderrahmane Jarmouni 77f025dd19 boards: st: update doc
Update forgotten boards following PR 75284

Signed-off-by: Abderrahmane Jarmouni <git@jarmouni.me>
2024-09-30 17:11:04 +01:00
Abderrahmane Jarmouni a4169e6141 boards: st: update board.cmake
Update forgotten boards following PR 75284

Signed-off-by: Abderrahmane Jarmouni <git@jarmouni.me>
2024-09-30 17:11:04 +01:00
Maciej Sobkowski 9f0b96d77c samples: fs: Add stm32f746g_disco with DMA enabled to fs_sample
Adds custom overlay and config allowing the fs_sample to run on
the stm32f746g_disco with DMA enabled.

Signed-off-by: Maciej Sobkowski <msobkowski@antmicro.com>
2024-09-30 17:10:56 +01:00