Commit Graph

102891 Commits

Author SHA1 Message Date
Armin Brauns 6ba6c66ab5 hci_spi_st: send ACI config synchronously
There's no reason to send these async, and since the reply isn't waited for
anywhere, this can cause the HCI buffer pool to be exhausted and
`bt_enable()` to fail.

Signed-off-by: Armin Brauns <armin.brauns@embedded-solutions.at>
2024-09-30 12:10:20 +01:00
Michal Smola f810e1318f tests: adc: Enable ADC tests for frdm_mcxc242 board
Enable ADC tests for frdm_mcxc242 board.

Signed-off-by: Michal Smola <michal.smola@nxp.com>
2024-09-30 10:49:30 +02:00
Michal Smola ff01648d4b samples: adc: Enable ADC samples for frdm_mcxc242 board
Enable ADC samples for frdm_mcxc242 board.

Signed-off-by: Michal Smola <michal.smola@nxp.com>
2024-09-30 10:49:30 +02:00
Michal Smola 568606f1d7 boards: frdm_mcxc242: Add adc support
frdm_mcxc242 board does not have adc configured and enabled. Configure
and enable it. Update documentation.

Signed-off-by: Michal Smola <michal.smola@nxp.com>
2024-09-30 10:49:30 +02:00
Marek Pieta 88231b5583 usb: device_next: usbd_hid: Fix size in HID report get
Since UDC buffers are allocated with `UDC_BUF_GRANULARITY` granularity,
the `net_buf_tailroom` may no longer be equal to the HID report size.
Use `setup->wLength` instead to ensure that proper HID report size is
passed to the application's callback.

Signed-off-by: Marek Pieta <Marek.Pieta@nordicsemi.no>
2024-09-30 10:49:20 +02:00
Vivekananda Uppunda 06d0c5831e manifest: Pull PRF-256 PSA based wrapper API for supplicant
This pulls in PRF-256 wrapper API based on PSA APIs. This implements
PRF-256 as per section 11.6.1.7.2 in 802.11ac using PSA APIs.

Signed-off-by: Vivekananda Uppunda <vivekananda.uppunda@nordicsemi.no>
2024-09-30 10:47:58 +02:00
Andrzej Kuros 54aca3ef58 manifest: update hal_nordic revision
This commit updates revision of hal_nordic to bring the latest changes
in the nRF IEEE 802.15.4 driver.

Signed-off-by: Andrzej Kuroś <andrzej.kuros@nordicsemi.no>
2024-09-30 10:47:41 +02:00
TOKITA Hiroshi 2815b6d710 tests: drivers: build_all: gpio: Add `ti,lmp90xxx-gpio` configuration
Add the following devices to build tests.

- ti,lmp90xxx-gpio

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-09-30 09:04:58 +02:00
TOKITA Hiroshi 0ea5ef8699 tests: build_all: gpio: Excluding `app.overlay` from ads1145s0x tests
- Exclude `app.overlay` from DTC_OVERLAY_FILES in
  `drivers.gpio.build.adc_ads1145s0x_gpio` tests to avoid duplicate builds.
- Modified so that adc_ads1145s0x_gpio.overlay can be tested alone.
- Delete the conffile and move its contents to extra_configs.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-09-30 09:04:58 +02:00
TOKITA Hiroshi 8d68f6a45b tests: drivers: build_all: gpio: Correct mcp230xx compatibility
The "microchip,mcp230xx" is not defined.
Correcting it to "microchip,mcp23017".

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-09-30 09:04:58 +02:00
TOKITA Hiroshi bcec0a29ef tests: drivers: build_all: gpio: Add modules that were not registered
Add the following devices to build tests.

- richtek,rt1718s
- st,stmpe1600
- adi,adp5585
- nordic,npm6001
- cypress,cy8c95xx-gpio
- ti,sn74hc595

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-09-30 09:04:58 +02:00
TOKITA Hiroshi 5fe5126913 driver: gpio: rt1718s: Create a log module with LOG_MODULE_REGISTER
Since the log module entity is not defined anywhere,
LOG_MODULE_REGISTER should be used here instead of LOG_MODULE_DECLARE.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-09-30 09:04:58 +02:00
TOKITA Hiroshi 01d3312d07 drivers: gpio: emul: Fixed return type of get_pending_int
`get_pending_int` should return a uint32_t value as defined in
`struct gpio_driver_api`.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-09-30 09:04:58 +02:00
Pisit Sawangvonganan c9f9d5cdda net: tcp: remove redundant null check for `conn` in `net_tcp_put()`
A null check for the TCP connection `conn` was added at the start of
the function, but the previous checks were not removed, leading to
a redundant null check, which is unnecessary.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2024-09-30 09:04:48 +02:00
Jason Kridner 2eda5f3e10 boards: beagle: add BeaglePlay on-board CC1352P7
Add support for BeaglePlay, a TI AM6254 SoC based development board with a
CC1352P7 wireless microcontroller for supporting software defined 2.4GHz
and SubGHz wireless protocols. Support for running Zephyr on the
quad-A53 SoC or the programmable M4 on the SoC would be provided
separately.

See https://beagleplay.org for details.

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2024-09-29 21:23:28 +02:00
TOKITA Hiroshi 2c1274f6a9 tests: drivers: build_all: Add power_domain drivers test
Add build_all test for power_domain drivers.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-09-29 21:22:34 +02:00
TOKITA Hiroshi 663c7bc181 drivers: power_domain: gpio_monitor: Add PM_DEVICE dependency
Since "power_domain,gpio_monitor" depends on PM_DEVICE,
specify it in Kconfig.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-09-29 21:22:34 +02:00
TOKITA Hiroshi a511f519b8 drivers: power_domain: gpio_monitor: Fix compilation error
The fix 25173f71cd created
`struct pm_device_base` and moved `usage` to it.
This has been overlooked so that I fixed it.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-09-29 21:22:34 +02:00
Simon Maurer 4ce6a217d8 arm: cortex_a_r: rom_start relocation configuration
This commit makes the rom_start relocation introduced in
commit 8ef8e8b497 available for Cortex-A/R CPUs.

Signed-off-by: Simon Maurer <mail@maurer.systems>
2024-09-29 21:22:23 +02:00
Declan Snyder 25e9252826 boards: frdm_mcxw71: Add timers to doc & yaml
Add timers that have been enabled to board doc table

Add timers that have been enabled to board twister yaml

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-09-29 21:21:34 +02:00
Declan Snyder 4012161efb boards: frdm_mcxw71: Enable LPTMR
Enable LPTMR as counter, enable lptmr0 in board DTS and enable lptmr1 in
basic counter api test.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-09-29 21:21:34 +02:00
Declan Snyder b0a66d3f24 dts: nxp: mcxw71: Add LPTMR0 and LPTMR1
Add nodes for LPTMR. This is sufficient to enable their use as counter
devices when set to status okay.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-09-29 21:21:34 +02:00
Declan Snyder 343d8b18ad dts: nxp: mcxw71: Add WDOG nodes to DT
Add watchdog nodes to MCXW71 SOC DT, and enable wdog0 alias.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-09-29 21:21:34 +02:00
Declan Snyder 60a70fd4a3 boards: frdm_mcxw71: Enable TPM and pwm_leds
Enable TPM0 on FRDM_MCXW71 which is connected to an RGB LED.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-09-29 21:21:34 +02:00
Declan Snyder b74a7c4176 soc: mcxw71: Add TPM support
Add DT node and clocking of TPM peripherals, which are used for PWM.

Also change the soc clock enable code to not use preprocessor
conditionals.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-09-29 21:21:34 +02:00
Declan Snyder bfa4a7b02b boards: frdm_mcxw71: Rename LED to blue
The LED is blue, not green.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-09-29 21:21:34 +02:00
Declan Snyder 5399615cdc dts: nxp: mcxw71: Add peripheral bridge definition
Add peripheral bridge definitions to DT, this also fixes the base
address of the GPIO peripherals which were faulting in the driver due to
the wrong reg address.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-09-29 21:21:34 +02:00
Declan Snyder fb3fce570f drivers: pwm_mcux_tpm: support pause level feature
Support TPM devices with the pause level selection feature

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-09-29 21:21:34 +02:00
Declan Snyder 7152dc19e1 soc: nxp: mcxw: Switch to soc_reset_hook
Base enablement of MCXW merged while z_arm_platform_init was being
deprecated, resulting situation is now that no platform init is
happening, fix by converting to use soc_reset_hook.

Also fix a comment that said the core was being set to 40 MHz, when it
is actually being set up to 96 MHz.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-09-29 21:21:34 +02:00
Declan Snyder f7e9c3b114 dts: nxp: mcxw71: Use genetic unit names
Use generic unit names as recommended by the DT spec.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-09-29 21:21:34 +02:00
Guennadi Liakhovetski c6bf743df2 LLEXT: add support for detached sections
Some LLEXT objects can include sections, that should not be merged
with other sections of the same type. E.g. when such sections should
be placed into locations, other than the default. Add support for
such sections.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2024-09-29 21:21:24 +02:00
Guennadi Liakhovetski 0aa6b1c9de llext: pass the whole struct llext_load_param
To simplify LLEXT loader parameter extension pass the whole
struct llext_load_param to final consumers instead of extracting
individual fields from it in the caller function.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2024-09-29 21:21:24 +02:00
Guennadi Liakhovetski d676d469bd LLEXT: Xtensa: add support for L32R relocation
When building LLEXT for Xtensa with custom sections the compiler
can leave unresolved references in them. Then this has to be done by
the LLEXT core during linking. This commit adds linking support for
the L32R Xtensa instruction.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2024-09-29 21:21:24 +02:00
Guennadi Liakhovetski f04e646af0 llext: (cosmetic) use a more common name for a variable
It's more common in the LLEXT code base to call elf_sym_t instances
"sym" and not "sym_tbl." Convert llext_link_plt() to follow this
convention.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2024-09-29 21:21:24 +02:00
Guennadi Liakhovetski 43a69f868b llext: make llext_loaded_sect_ptr() available to all LLEXT code
Make llext_loaded_sect_ptr() a proper function to be able to call it
from platform LLEXT code.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2024-09-29 21:21:24 +02:00
Pete Skeggs 09fab7e680 net: lib: http: ensure SYS_FOREVER_MS behavior
The http_client_req() function's timeout parameter is allowed
to be SYS_FOREVER_MS. However, K_MSEC() does not convert this
to a proper k_timeout_t, so sys_timepoint_calc() ends up
returning 0, which is causes immediate timeouts.

Check for this case specifically and force value passed to
sys_timepoint_calc() to be correct.

Signed-off-by: Pete Skeggs <peter.skeggs@nordicsemi.no>
2024-09-29 21:20:50 +02:00
Florian Grandel f55cf43ddf drivers: ieee802154: ieee802154_uart_pipe: replace magic number
Replaces a magic number by the appropriate definition.

Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
2024-09-29 21:20:20 +02:00
Sylvio Alves 0d118ec1ab soc: esp32: add SPIRAM memory test kconfig option
Add kconfig to disable SPIRAM memory test. Allows
faster SoC initialization when disabled.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2024-09-28 11:30:34 -05:00
Josuah Demangeon 1596ee0415 drivers: video: gc2145: set_fmt: branch on failure rather than success
This aims to make the code more linear by having the for loop
validates the input format rather than search for a match.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2024-09-28 11:30:08 -05:00
Josuah Demangeon 9174cb75e9 drivers: video: gc2145: return 0 at the end of functions
After the error code is checked to be zero, it is possible to return 0
explicitly to help with readability. Also, when available, forward the
return code from the failing function instead of a locally chosen error
code like -EIO.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2024-09-28 11:30:08 -05:00
Josuah Demangeon 81f5725839 drivers: video: gc2145: check format compatibility before applying
While applying the format, the pixel format and drv_data->fmt were set
immediately, and the resolution was set only if it had a matching
entry on the "caps".

This commit makes sure the requested format matches the caps before
applying the format as well as drv_data->fmt. This does not guards
against partial failure (i.e. only pixelformat set and not
resolution).

Signed-off-by: Josuah Demangeon <me@josuah.net>
2024-09-28 11:30:08 -05:00
TOKITA Hiroshi 61c5346095 tests: drivers: build_all: sensor: Add non-typical TRIGGER settings
The following devices enable TRIGGER in a way that is different from the
template definition, so add these settings to sensos_no_default.conf.

- bosch,bmc150
- bosch,bmm150
- bosch,bmp150
- ti,ina230
- we,wsen-itds
- lm77
- st,lsm9ds0-gyro
- ti,tmag5170

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-09-28 11:29:03 -05:00
Chandler Keep a9be21038e drivers/pinctrl.h: Resolve PINCTRL_DT_STATE_INIT Cpp Compatibility
This commit adds C++20 onwards support for the
PINCTRL_DT_STATE_INIT macro. Since C++20, support was
added for designated initializers but with the restriction that
they're ordered. PINCTRL_DT_STATE_INIT initializes a
pinctrl_state struct but the current initializer list is un-ordered,
this PR resolves that for >= C++20 compat

Signed-off-by: Chandler Keep <chandlersamkeep@gmail.com>
2024-09-28 08:22:36 -05:00
Robert Lubos 7aef84ce52 tests: net: sockets: tls: Increase connect timeout
Since fc007eeef5 TLS sockets support
timeout based on CONFIG_NET_SOCKETS_CONNECT_TIMEOUT value. The TLS test
suite reduced this config value to speed up the tests, however it turns
out the 100ms timeout is too low to finalize the handshake on slower
platforms (nrf52840 specifically). Therefore increase the timeout value
to 200ms to prevent test failures on those.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-09-28 08:21:51 -05:00
Ioannis Damigos d7497507cf i2c_smartbond: Don't set STOP flag to last message
Setting STOP flag to last message it's done by z_impl_i2c_transfer().

Signed-off-by: Ioannis Damigos <ioannis.damigos.uj@renesas.com>
2024-09-28 08:20:41 -05:00
Benedikt Schmidt f54a97c117 drivers: fpga: configure CDONE for ICE40 as input
Configure the GPIO CDONE of the ICE40 as GPIO_INPUT.
Fixes #78934.

Signed-off-by: Benedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
2024-09-28 08:18:49 -05:00
Arif Balik 8742d9f25e logging: backend: add semihosting
Added semihosting support in logging backend

Signed-off-by: Arif Balik <arif.balik@enda.com>
2024-09-28 08:18:00 -05:00
Ryan McClelland d00684b28e drivers: i3c: shell: add ibi disable/enable commands
Add shell commands for the `i3c_ibi_enable` and `i3c_ibi_disable` apis.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2024-09-28 08:16:13 -05:00
Jérôme Pouiller bf700beac4 boards: silabs: Uniformize board.cmake
All the board.cmake contains more or less the same data. This patch
applies the cosmetics changes to align the structure of all these files.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2024-09-28 08:15:38 -05:00
Jérôme Pouiller 824a241132 soc: silabs: Drop useless comments after "endif"
It is a good practice to add a comment after #endif when the condition
is not obvious. However, when the condition is well known, "Don't Repeat
Yourself" rule applies and no comment should be added.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2024-09-28 08:15:38 -05:00