Commit graph

92078 commits

Author SHA1 Message Date
Ivan Iushkov 8f458bb51f modules: crypto: update tinycrypt revision
update tinycrypt revision to fix
warnings reported by ubsan

Signed-off-by: Ivan Iushkov <ivan.iushkov@nordicsemi.no>
2024-03-06 15:58:59 +00:00
Fin Maaß abdfc4b1fe logging: support using real time as timestamp
Adds a option to use real time from posix instant
of the system uptime as the logging timestamp.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2024-03-06 15:58:43 +00:00
TOKITA Hiroshi c00bd4a8d5 boards: arm: rpi_pico: Add default serial for connector definition
Add `pico_serial` which is alias of `uart0` as a definition
related to pico_header.
The uart0(GP0 and GP1)  is shown as default serial port
in pinout diaglam.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-03-06 15:58:29 +00:00
Dawid Niedzwiecki 4d97dcf115 ec_host_cmd: introduce Host Command state
Introduce a current state of Host Command subsystem.

It makes sures that a backend has been initilized and doesn't allow
sending a response twice. There is a possibility, that a command handler
that calls ec_host_cmd_send_response function returns anyway (which is a
mistake).

Signed-off-by: Dawid Niedzwiecki <dawidn@google.com>
2024-03-06 14:35:34 +01:00
Armin Brauns 99fd397147 scripts/check_compliance: pass --no-ext-diff to git diff
If $GIT_EXTERNAL_DIFF is set, this difftool is used instead of the default
internal unified diff, which breaks the Checkpatch check.

Signed-off-by: Armin Brauns <armin.brauns@embedded-solutions.at>
2024-03-06 14:34:22 +01:00
Henrik Brix Andersen 68f4f12c1b drivers: can: respect minimum supported prescaler value
Respect the minimum supported prescaler value when calculating CAN timing.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-06 14:18:08 +01:00
Henrik Brix Andersen 5e1ce7e0f7 drivers: can: minor improvements to internal timing calculation code
Improve the internal CAN timing calculation code readability by unifying
variable and function naming, avoiding unnecessary casting, and rewording
comments.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-06 14:18:08 +01:00
Ederson de Souza 4440d6a189 kernel/userspace: Fix dynamic thread stack allocation at userspace
It wasn't saving adjusted stack size at either the private stack or the
k_object, thus failing subsequent checks.

Test added to check for this case and prevent regressions.

Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
2024-03-06 14:17:53 +01:00
TOKITA Hiroshi 7e78df8c40 samples: drivers: led_ws2812: Rename boards files to follow hwmv2
The esp32s3_devkitm and the nrf5340dk_nrf5340 only have ws2812 in
each configurations that is procpu and cpuapp respectively.
Rename overlay and conf files to avoid building with unnecessary
configurations.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-03-06 14:17:27 +01:00
TOKITA Hiroshi 0f458c9564 drivers: led_strip: ws2812_rpi_pico_pio: Change output-pin to gpios
For sharing pin definition property with `worldsemi,ws2812-gpio`,
rename `output-pin` to `gpios`.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-03-06 14:17:27 +01:00
TOKITA Hiroshi 0702f0eb45 drivers: led_strip: ws2812_gpio: Rename in-gpios property to gpios
ws2812-gpio's `in-gpios` property is not used as an input pin.
Renaming it to `gpios` to reflect the actual situation.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-03-06 14:17:27 +01:00
Fabio Baltieri 8b9464089c input: add a pmw3610 driver
Add a driver for the Pixart PMW3610 mouse sensor device.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-03-06 13:34:16 +01:00
Jukka Rissanen 1d96454dc7 tests: net: dns: Fix the tests to check the exponential backoff
Make sure that we do needed number of exponential backoff queries
if configured so.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-06 13:33:50 +01:00
Jukka Rissanen 5be84131d6 net: dns: Split long resolving to smaller pieces
If getaddrinfo() is called with a long DNS timeout, then split
the timeout to smaller pieces with exponential backoff. Reason
for this is that if a DNS query is lost, then we do not need
to wait for a long time to find it out.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-06 13:33:50 +01:00
Florian La Roche 0d5a670f4f lib/os/printk.c: use ARG_UNUSED() for char_out()
Use ARG_UNUSED() within the function char_out()
to handel unused param.

Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
2024-03-06 12:11:26 +01:00
Joakim Andersson ad58b39f41 logging: Add option to not generate dictionary database always
Add option to not generate the logging dictionary database when the
zephyr finale image is created. Instead this database can be created
by its own build target.
This reduces the build time during debugging as the database file is not
required as part of the debugging.

Fix build byproducts not listing the output file.
Add comment so users know which command is executing as this command
can take a long time.

Signed-off-by: Joakim Andersson <joakim.andersson@heimdallpower.com>
2024-03-06 10:38:37 +00:00
Martin Kiepfer 61934bb6d6 boards: m5stack_core2: Add possibility to control 5V_BUS signal
This commit fixes #67277 and hence adds possibility
to properly utilize grove extension port.

5V_BUS can be enabled via regulator bus_5v. By default this
regulator is disabled.

Signed-off-by: Martin Kiepfer <mrmarteng@teleschirm.org>
2024-03-06 10:23:31 +00:00
Martin Kiepfer a060c48cb0 doc: boards: m5stack_core2 documentation updates
Minor corrections and updates on current development states

Signed-off-by: Martin Kiepfer <mrmarteng@teleschirm.org>
2024-03-06 10:23:31 +00:00
Martin Kiepfer 0addb90ff7 drivers: mfd: axp192: add possibility to disable N_VBUSEN functionality
By default N_VBUSEN signal is used by the host to define if VBUS
signal should be used for power supply (VBUS-IPSOUT).

This feature enables the possbibility to change this behaviour.
When N_VBUSEN detection is disabled, axp192 will automatically
decide to use VBUS (REG10H[7] = 1).
Please refer to datasheet for details.

Signed-off-by: Martin Kiepfer <mrmarteng@teleschirm.org>
2024-03-06 10:23:31 +00:00
Martin Kiepfer 2a83c58023 drivers: gpio: axp192: Add support to control EXTEN pin
AXP192 features an EXTEN pin that is on output only.

This commit appends control of EXTEN pin to gpio functionality
of AXP192.
Port-Mapping is as follows:
- [0..4]: GPIO0..4
- [5]: EXTEN

Signed-off-by: Martin Kiepfer <mrmarteng@teleschirm.org>
2024-03-06 10:23:31 +00:00
Martin Kiepfer 1a94b0ab24 drivers: regulator: axp192: Bugfix to control DCDC2 output
Fix wrong definition of DCDC2 register values.

Signed-off-by: Martin Kiepfer <mrmarteng@teleschirm.org>
2024-03-06 10:23:31 +00:00
TOKITA Hiroshi 6bcf73ff14 boards: espressif: esp32s3_devkitm: Correct filename typo
boards/espressif/esp32s3_devkitm/esp32s3_devkitm_esp32s3_procpu_.yaml
has needless `_` in filename.

Renamed it.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-03-06 10:22:23 +00:00
Omkar Kulkarni 0483d68334 Bluetooth: Mesh: Add missing model extensions
DFD Server, DFU Server, and DFU Client models are extended models
that extend other underlaying models. If BT_MESH_MODEL_EXTENSIONS
is not enabled, extension hierarchy is not initialized and this
results in issues in subscriptions and errors in representation
of hierarchy in CDP1. Since extensions are spec defined, force
selection of this option here to prevent users forgetting about it.

Signed-off-by: Omkar Kulkarni <omkar.kulkarni@nordicsemi.no>
2024-03-06 10:21:59 +00:00
Daniel Leung 4c031e2306 x86: prefix x86 SSBD and IBRS related kconfigs with X86
There are two kconfigs that are security related and are x86
specific. Prefix them with X86 to put them under the x86
namespace.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2024-03-06 10:21:46 +00:00
Anders Storrø 6af7ad5a52 Bluetooth: Mesh: Prevent duplicate cdb appkeys
Fixes issue where it is possible to store the same appkey
multiple times in CDB implementation.

Signed-off-by: Anders Storrø <anders.storro@nordicsemi.no>
2024-03-06 10:21:27 +00:00
Chaitanya Tata 6327478429 net: lib: Add debug for sockets total and owner
This helps in figuring out the need for the number of sockets.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2024-03-06 10:20:22 +00:00
Ioannis Karachalios 9b88dba65c samples: modules: lvgl: Add support for Smartbond Pro DevKit.
Add overlay file to support the pro devkit. To build the sample
code, one should explicitly select the overlay file at
'west build' invokation via the DTC_OVERLAY_FILE system variable.

Signed-off-by: Ioannis Karachalios <ioannis.karachalios.px@renesas.com>
2024-03-06 10:17:13 +00:00
Ioannis Karachalios c2b809dacd samples: drivers: display: Add support for Smartbond Pro DevKit.
Add overlay file to support the pro devkit. To build the sample
code, one should explicitly select the overlay file at
'west build' invokation via the DTC_OVERLAY_FILE system variable.

Signed-off-by: Ioannis Karachalios <ioannis.karachalios.px@renesas.com>
2024-03-06 10:17:13 +00:00
Ioannis Karachalios 5670051805 boards: renesas: smartbond: Add support for the MIPI DBI host driver
Update board's DTS configurations to support the Renesas MIPI DBI
host controller.

Signed-off-by: Ioannis Karachalios <ioannis.karachalios.px@renesas.com>
2024-03-06 10:17:13 +00:00
Ioannis Karachalios 867650a215 boards: renesas: smartbond: Re-assign default peripherals pins
Re-assign peripherals' default pins functionality to avoid
conflicts with LCD controller's pins usage. The PRO DevKit
exhibits a display socket which is routed to dedicated pins.

Signed-off-by: Ioannis Karachalios <ioannis.karachalios.px@renesas.com>
2024-03-06 10:17:13 +00:00
Ioannis Karachalios 2ad5c4c6a1 dts: renesas: smartbond: Add support for the MIPI DBI host controller.
Update SoC DTS configurations to support the Renesas MIPI DBI host
controller.

Signed-off-by: Ioannis Karachalios <ioannis.karachalios.px@renesas.com>
2024-03-06 10:17:13 +00:00
Ioannis Karachalios f011ad5bb1 drivers: mipi_dbi: smartbond: Add support for MIPI DBI driver class.
Add support for the MIPI DBI host controller.

Signed-off-by: Ioannis Karachalios <ioannis.karachalios.px@renesas.com>
2024-03-06 10:17:13 +00:00
Susan Su a56c8cfa69 drivers: mipi_dsi: dsi_mcux: Remove DSI_DPHY_PLL_VCO definition
- The DSI_DPHY_PLL_VCO_MAX and DSI_DPHY_PLL_VCO_MIN macro value is
   different when changing to different SoC, so the definition is moved
   to soc level driver header.
 - Remove the definition in this c file to fix the duplicate definition
   issue.

Signed-off-by: Susan Su <susan.su@nxp.com>
2024-03-06 10:16:37 +00:00
David Leach e4e463af81 west.yml: Update NXP HAL MCUX-SDK to 2.15.000
Update NXP HAL mcux-sdk to 2.15.000

Signed-off-by: David Leach <david.leach@nxp.com>
2024-03-06 10:16:37 +00:00
Mykola Kvach 0af5376b90 drivers: pinctrl: move renesas pincontrol drivers to separate directory
Moved r8a77951/r8a77961 pfc tables and funcs from soc to drivers/pfc dir.

Move all Renesas pinctrl driver source and header files to a separate
directory "renesas" and every SoC series to a separate subdirectory.

Update the MAINTAINERS file to align with the changes in the
pinctrl directory.

Signed-off-by: Mykola Kvach <mykola_kvach@epam.com>
2024-03-06 10:09:11 +00:00
Mykola Kvach 0dfb737c6a soc: renesas_rcar: make common pinctrl header for both arm and arm64 archs
Make common pinctrl header for both arm and arm64 archs in order to avoid
code duplicates.

Signed-off-by: Mykola Kvach <mykola_kvach@epam.com>
2024-03-06 10:09:11 +00:00
Mykola Kvach dcce9f5ba0 drivers: pinctrl: r8a779f0: move pfc file from soc to driver dir
Move pfc_r8a779f0.c from the 'soc' directory to the 'drivers'
directory to avoid code duplication for the ARM64 Spider board.

Signed-off-by: Mykola Kvach <mykola_kvach@epam.com>
2024-03-06 10:09:11 +00:00
Andrew Featherstone 1c50ba489f drivers: rtc: rpi_pico: Add alarm support to RPi Pico RTC driver
This adds support for the alarm functionality of the RPi Pico RTC.

Signed-off-by: Andrew Featherstone <andrew.featherstone@gmail.com>
2024-03-06 10:08:48 +00:00
Andrew Featherstone df8c89b528 drivers: rtc: rpi_pico: Add support for the Raspberry Pi Pico RTC
This adds the minimal get_time/set_time support for the rp2040 and
enables support by default on the Pico boards. This doesn't support
configuring the clock source or alarm interrupts yet.

Signed-off-by: Andrew Featherstone <andrew.featherstone@gmail.com>
2024-03-06 10:08:48 +00:00
Andrew Featherstone 4c880f4b0a drivers: rtc: Create utility function for time validation
RTC drivers should validate the `struct rtc_time`'s contents against the
provided `mask`. Promote this common code to a new rtc_utils file and
modify existing drivers to use this functionality. Extend the test
coverage to include verifying this behaviour.

This is groundwork ahead of adding support for the RP2040's (as used in
the Raspberry Pi Pico) RTC and alarm.

Signed-off-by: Andrew Featherstone <andrew.featherstone@gmail.com>
2024-03-06 10:08:48 +00:00
Krzysztof Chruściński c975910f84 drivers: spi: nrf: Add new SPIS instances
Add support for upcomming SPIS instances.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-03-06 10:48:01 +01:00
Anas Nashif 961b83a431 twister: normalize platform name when packaging
When creating a package, normalize platform names.

Fixes #69793

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-03-06 09:28:31 +01:00
Robert Lubos 88728f32f6 tests: net: sockets: tls: Extend sendmsg tests
Add tests that verify that sendmsg() for DTLS works fine if provided
with multiple buffers.

Modify existing sendmsg() tests, so that we still tests the old
behavior if the feature is disabled.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-03-06 09:13:38 +01:00
Robert Lubos 919cb6f614 net: sockets: tls: Improve sendmsg() support on DTLS sockets
DTLS socket should be able to combine more than one message into a
single datagram when calling sendmsg().

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-03-06 09:13:38 +01:00
Robert Lubos 562ac9d9e6 net: Add more specific dependencies for specialized samples
Certain samples  are supposed to demonstrate technology-specific
features, therefore their dependencies in sample.yml could be
narrowed to run verify build only on boards which support that
specific technology (like Ethernet or OpenThread).

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-03-06 09:11:51 +01:00
Henrik Brix Andersen 17b1393f2e doc: releases: release-notes: 3.7: deprecation of can_calc_prescaler()
Add a note for the deprecation of can_calc_prescaler().

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-05 15:43:29 -06:00
Henrik Brix Andersen 5f99e771fe drivers: can: deprecate can_calc_prescaler()
Deprecate the can_calc_prescaler() API function, as it allows for bitrate
errors. Bitrate errors between nodes on the same network leads to them
drifting apart after the start-of-frame (SOF) synchronization has taken
place, leading to bus errors.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-05 15:43:29 -06:00
Anas Nashif 0ae587aef9 it8xxx2_evb: use correct SoC
Use SOC_IT81302_BX as the SoC for this board.

Fixes #69809

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-03-05 20:24:38 +00:00
Henrik Brix Andersen eaf140e7ff MAINTAINERS: remove inactive CAN collaborator
Remove inactive CAN collaborator.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-05 18:23:36 +00:00
Marcin Gasiorek fb99f65fe9 net: ip: Fix for improper offset return by net_pkt_find_offset()
The original packet's link-layer destination and source address can be
stored in separately allocated memory. This allocated memory can be
placed just after pkt data buffers.
In case when `net_pkt_find_offset()` uses condition:
`if (buf->data <= ptr && ptr <= (buf->data + buf->len)) {`
the offset is set outside the packet's buffer and the function returns
incorrect offset instead of error code.
Finally the offset is used to set ll address in cloned packet, and
this can have unexpected behavior (e.g. crash when cursor will be set
to empty memory).

Signed-off-by: Marcin Gasiorek <marcin.gasiorek@nordicsemi.no>
2024-03-05 18:23:24 +00:00