Commit Graph

104317 Commits

Author SHA1 Message Date
Vinayak Kariappa Chettimada ba1def1a34 Bluetooth: Controller: Add radio timer ISR usage support
Add radio timer ISR usage support.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2024-10-24 13:15:20 +01:00
Vinayak Kariappa Chettimada d9f890bfdf Bluetooth: Controller: Defines for radio timer capture/compare indices
Add defines for radio timer capture and compare indices used
in the nRF Radio HAL implementation.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2024-10-24 13:15:20 +01:00
Vinayak Kariappa Chettimada 7db7edae3c Bluetooth: Controller: Minor updates to code comments
Minor updates and correction to code comments.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2024-10-24 13:15:20 +01:00
Adam Kondraciuk 245aee4a8b tests: drivers: timer: nrf_grtc: run GRTC tests on nRF54L20
Run GRTC tests for nRF54L20 platform.

Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
2024-10-24 13:15:11 +01:00
Ricardo Rivera-Matos b64c69f84b regulator: cp9314: Drops B0 silicon support
Removes support for B0 revision silicon. The B0 revision is no longer
recommended for use in host-controlled applications and there are no
users of this driver implementing B0 silicon in their final design.

Signed-off-by: Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
2024-10-24 14:08:36 +02:00
Ricardo Rivera-Matos 2b3ed7016f regulator: cp9314: Adds support for HW I2C Lock feature
Adds support for the control port write-lock feature introduced in
revision B1. The write-lock feature minimizes the risk of spurious
I2C writes flipping sensitive bits during device operation by blocking
writes to some or all of the register map.

If desired, the write-lock must be set in hardware by biasing PGPIO2
appropriately and setting the cirrus,hw-i2c-lock flag in the devicetree
entry.

Signed-off-by: Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
2024-10-24 14:08:36 +02:00
Ricardo Rivera-Matos a684c36e77 dts: bindings: cp9314: Adds cirrus,hw-i2c-lock property
Documents cirrus,hw-i2c-lock property in the devicetree bindings. This
flag indicates that the control port write-lock was enabled in hardware
via the PGPIO2 pin.

Signed-off-by: Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
2024-10-24 14:08:36 +02:00
Ricardo Rivera-Matos 6843faaf69 regulator: cp9314: Adds support for B1 CHIP_REV
Adds support for revision B1 silicon when checking CHIP_REV. This
silicon revision introduces the hardware I2C lock.

Signed-off-by: Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
2024-10-24 14:08:36 +02:00
Ricardo Rivera-Matos 63acbef33f regulator: cp9314: Changes CHIP_REV log message to debug level
Changes the log level for the CHIP_REV log message from INFO to DBG.

Signed-off-by: Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
2024-10-24 14:08:36 +02:00
Ricardo Rivera-Matos 7fb2e707a2 regulator: cp9314: Prints CHIP_REV info after switch case
Moves the CHIP_REV log message after the CHIP_REV switch case. Printing
the log message after allows for the print to be reused for multiple
CHIP_REV cases.

Signed-off-by: Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
2024-10-24 14:08:36 +02:00
Ricardo Rivera-Matos f885c8ada3 regulator: cp9314: Uses FIELD_GET to read CHIP_REV
Use FIELD_GET macro to grab CHIP_REV bitfield. This change improves
the readability of the source code and does not change functionality.

Signed-off-by: Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
2024-10-24 14:08:36 +02:00
Jiafei Pan 0f6d6b2ef2 drivers: gicv3: add distributor safe configuration
In case of multiple OSes running on different CPU Cores which share the
same GIC controller, need to avoid the distributor re-configured to avoid
crash the OS has already been started.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2024-10-24 14:08:07 +02:00
Scott Worley 4fa5fc3b4c drivers: pinctrl: mec5: Microchip MEC5 HAL based pinctrl driver
Add a pinctrl driver for Microchip MEC5 HAL based chips.
The driver removes the YAML enum "no change" property
value from the driver strength and slew rate properties.
Update the shared header file in mec soc common folder to
use a different Z_PINCTRL_STATE_PINCFG_INIT for MEC5.
Modifications to legacy MEC172x XEC PINCTRL will be in
a future PR.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2024-10-24 14:07:31 +02:00
Aksel Skauge Mellbye d12de2d6b4 soc: silabs: Add soc_prep_hook() for Series 2
CMSIS SystemInit is not used in Zephyr. Implement the functionality
that isn't already done by Zephyr startup using soc_prep_hook().

The reason the lack of TrustZone init did not create immediately obvious
issues previously is that SMU faults can only happen if the SMU clock is
enabled.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2024-10-24 14:07:25 +02:00
Jonas Remmert 4dc2f6fd1c boards: PHYTEC: phyboard_polis: remove mimx8mm prefix
For easier recognition PHYTEC boards have been prefixed with the SoC name.
As the new hardware model includes the SoC and cpu, this prefixing is not
needed anymore. All PHYTEC eval boards have an individual and unique name
and can be found easily via this name.

Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
2024-10-24 14:07:18 +02:00
Jonas Remmert 2ec5fb4a4b boards: PHYTEC: phyboard_pollux: remove mimx8mp prefix
For easier recognition PHYTEC boards have been prefixed with the SoC name.
As the new hardware model includes the SoC and cpu, this prefixing is not
needed anymore. All PHYTEC eval boards have an individual and unique name
and can be found easily via this name.

Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
2024-10-24 14:07:18 +02:00
TOKITA Hiroshi 00c5ff77f1 tests: lib: gui: lvgl: Remove explicitly enabled CONFIG_DUMMY_DISPLAY
The CONFIG_DUMMY_DISPLAY is now enabled in conjunction with devicetree,
So, no need to be explicitly enabled.
Remove the setting.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-10-24 14:07:11 +02:00
TOKITA Hiroshi 7c076a4d5e samples: drivers: display: Remove explicitly enabled CONFIG_DUMMY_DISPLAY
The CONFIG_DUMMY_DISPLAY is now enabled in conjunction with devicetree,
So, no need to be explicitly enabled.
Remove the setting.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-10-24 14:07:11 +02:00
TOKITA Hiroshi 868e99aefb drivers: display: dummy: Enable config if `dummy-dc` device available
Enabling the configuration if there is a valid `dummy-dc`
node on the device tree.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
2024-10-24 14:07:11 +02:00
Reto Schneider 67cb174241 drivers: dma: si32: Prevent configuration of in-use DMA channel
As per Zephyr DMA documentation, dma_config() must not be done on a
running channel.

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2024-10-24 14:07:03 +02:00
Reto Schneider 4d3f6a3145 drivers: dma: si32: Improve start and stop logic
As per dma_stop() documentation, the implementation has to not just stop
the transfer, but also to disable the channel. Before this commit, only
the transfer has been stopped.

Same goes for dma_start(). This also allows the enabling of a channel to
be removed from dma_si32_config().

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2024-10-24 14:07:03 +02:00
Abderrahmane Jarmouni d32c58b8cf tests: subsys: pm: power_mgmt: fix incorrect use of OVERLAY_CONFIG
Replace OVERLAY_CONFIG with CONF_FILE since no-device-pm.conf
contains an alternative configuration to the one in prj.conf

Signed-off-by: Abderrahmane Jarmouni <git@jarmouni.me>
2024-10-24 14:06:54 +02:00
Abderrahmane Jarmouni 94b000591d tests: testcase.yaml: replace deprecated OVERLAY_CONFIG w\ EXTRA_CONF_FILE
Replace some OVERLAY_CONFIG that were missed in a pervious PR.

Signed-off-by: Abderrahmane Jarmouni <git@jarmouni.me>
2024-10-24 14:06:54 +02:00
Abderrahmane Jarmouni 8785b184e6 samples: subsys: shell: devmem_load: fix incorrect use of OVERLAY_CONFIG
Replace OVERLAY_CONFIG with CONF_FILE since the file in question
contains an alternative configuration to the one in prj.conf
as clearly stated in the sample doc
'If you use poll you should also use `prj_poll.conf` instead of
`prj.conf`.'

Signed-off-by: Abderrahmane Jarmouni <git@jarmouni.me>
2024-10-24 14:06:54 +02:00
Abderrahmane Jarmouni 3a4dbd4a73 samples: sample.yaml: replace deprecated OVERLAY_CONFIG w\ EXTRA_CONF_FILE
Replace some OVERLAY_CONFIG that were missed in a pervious PR.

Signed-off-by: Abderrahmane Jarmouni <git@jarmouni.me>
2024-10-24 14:06:54 +02:00
Abderrahmane Jarmouni 05e73a009f samples: subsys: fs: littlefs: move stm32_blk.conf
Move stm32_blk.conf ouside of 'boards' as this folder is meant to
contain only board-specific devicetree overlays and Kconfig fragments.

Signed-off-by: Abderrahmane Jarmouni <git@jarmouni.me>
2024-10-24 14:06:54 +02:00
Torsten Rasmussen ff6be0586b cmake: support range for find_package(Zephyr-sdk)
Fixes: #80200

CMake `find_package(<package> <version>)` support the use of ranges,
like `1.0.0...4.0.0`.

Update the FindZephyr-sdk.cmake module to support this.
This allows looking up the Zephyr SDK with an upper boundry, for example
`find_package(Zephyr-sdk 0.16...<0.17)`.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-10-24 14:06:45 +02:00
Piotr Kosycarz 4c83883152 samples: subsys: ipc: ipc_service: icmsg: adjust timeout
30 sec is enough.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
2024-10-24 14:05:09 +02:00
Piotr Kosycarz 795cd8678c samples: drivers: mbox: adjust timeout
30 sec is enough.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
2024-10-24 14:05:09 +02:00
Michal Smola 60aeab3579 samples: die temperature polling: Enable sample for frdm_mcxc242
Die temperature polling sample is not enabled for frdm_mcxc242 board.
Add devicetree overlay and Kconfig configuration for the sample to
enable it.

Signed-off-by: Michal Smola <michal.smola@nxp.com>
2024-10-24 14:05:00 +02:00
Michal Smola ab3bf82efe drivers: sensor: nxp kinetis temp: Remove depends on kinetis
Remove Kconfig dependency on SOC_FAMILY_KINETIS as the temperature
sensor is available also on MCX family.

Signed-off-by: Michal Smola <michal.smola@nxp.com>
2024-10-24 14:05:00 +02:00
Michal Smola 2e22e8c1da dts: nxp mcxc: Add die temperature measurement
Die temperature measurement is not configured in devicetree
for NXP MCX C series.
Add die temperature measurement configuration.

Signed-off-by: Michal Smola <michal.smola@nxp.com>
2024-10-24 14:05:00 +02:00
Michal Smola da6310c96c soc: mcxc: Enable bandgap buffer for on die temperature measurement
Bandgap voltage is used for on die temperature measurement. Bandgap
buffer has to be enabled explicitly to get correct tempearature.
Enable the buffer if TEMP_KINETIS is selected.

Signed-off-by: Michal Smola <michal.smola@nxp.com>
2024-10-24 14:05:00 +02:00
Tjaž Vračko 5183620949 doc: wifi: Fix typo in wifi.rst
WPA2-PSK-256 is supported, not WPA3-PSK-256, which does not exist.

Signed-off-by: Tjaž Vračko <tjaz@irnas.eu>
2024-10-24 14:04:52 +02:00
Pieter De Gendt 1759967597 scripts: west_commands: runners: Fix jlink is_ip
Commit f987e8c6f0 introduced a regression
where the is_ip check fails if no --id is passed as an argument.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2024-10-24 14:04:44 +02:00
Krzysztof Chruściński 1689eaf6a4 tests: drivers: spi: spi_error_cases: Improve nrf54h20dk cpuppr
Rework overlays and add sysbuild/vpr_launcher folder to allow standard
test configuration for nrf54h20dk cpuppr.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-10-24 09:29:39 +02:00
Krzysztof Chruściński 949566f829 tests: drivers: spi: spi_controller_peripheral: Add nrf54h20dk cpuppr
Rework existing nrf54h20dk overlays to allow adding of
nrf54h20dk//cpuppr target.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-10-24 09:29:39 +02:00
Krzysztof Chruściński f20b595dfe tests: drivers: spi: loopback: Add nrf54h20dk cpuppr
Add configuration for nrf54h20dk//cpuppr target.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-10-24 09:29:39 +02:00
Krzysztof Chruściński 20c34ea092 tests: drivers: spi: spi_loopback: Add nrf54h20dk cpurad
Add overlay for nrf54h20dk cpurad.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-10-24 09:29:39 +02:00
Krzysztof Chruściński 614e7d5399 tests: drivers: spi: loopback: Configurable large buffer
In order to allow fiting test in targets with smaller memory make
large buffer configurable through Kconfig.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-10-24 09:29:39 +02:00
Declan Snyder 28ec98a54a boards: frdm_mcxw71: Enable FlexCAN
Enable FlexCAN on MCXW71.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-10-24 09:29:31 +02:00
Declan Snyder df95a86bc3 soc: nxp: mcxw71: Add FlexCAN node/clocking
Add node and enable clock for the FlexCAN module on MCXW71.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-10-24 09:29:31 +02:00
Daniel DeGrasse a3d2b865f8 samples: net: wifi: add support for building NXP WiFi
Add support for building NXP WiFi. Since the driver typically requires
binary blobs, enable CONFIG_NXP_WIFI_BUILD_ONLY_MODE for this testcase.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-10-24 09:29:21 +02:00
Daniel DeGrasse e6fc2be803 net: l2: wifi: add explicit dependency on "app" target for pem headers
Generated PEM headers need to be created before we build the WiFi shell
when WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE is enabled, so add an
explicit dependency on the app target to be certain these headers are
created

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-10-24 09:29:21 +02:00
Maochen Wang a5ec0bd20f samples: wifi: fix build warning of DIV_ROUND_UP redefined
Remove CONFIG_MBEDTLS_HAVE_TIME_DATE, which will cause that mbedtls
include Zephyr time.h and leads to 'DIV_ROUND_UP' redefined warning.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2024-10-24 09:29:21 +02:00
Maochen Wang 6f2517807e hostap: fix build error when WPS enabled
Fix build error of multiple definition of `dh5_init' in
crypto_mbedtls_alt.c when WPS enabled.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2024-10-24 09:29:21 +02:00
Daniel DeGrasse 7bc316ba3c drivers: wifi: nxp: add CONFIG_NXP_WIFI_BUILD_ONLY_MODE for CI testing
Add CONFIG_NXP_WIFI_BUILD_ONLY_MODE, which allows the NXP WiFi driver to
be built without a binary blob. The built application will not be
functional, but this enables continuous integration to run upstream.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-10-24 09:29:21 +02:00
Daniel DeGrasse 8ea2c4f692 drivers: wifi: nxp: remove unused nxp_wifi_uap_status function
Remove unused function `nxp_wifi_uap_status`.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-10-24 09:29:21 +02:00
Daniel DeGrasse 4703fb0707 drivers: wifi: nxp: remove non-existent TWT fields
Remove references to TWT fields that did not exist, to resolve a build
error.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-10-24 09:29:21 +02:00
Daniel DeGrasse 452770f9e9 modules: hostap: remove set_btwt API
set_btwt API implementation is not complete. Remove the structure
definition and implementation from the NXP WiFi driver to fix a build
error.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-10-24 09:29:21 +02:00