Commit graph

92093 commits

Author SHA1 Message Date
Stephanos Ioannidis 2fc1268c1c SDK_VERSION: Use Zephyr SDK 0.16.5-1
This commit updates SDK_VERSION to point to the Zephyr SDK 0.16.5-1
release.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2024-03-12 08:54:42 -04:00
Bjarki Arge Andreasen 5988bc54b0 MAINTAINERS: Add tomi-font as modem subsys collaborator
Add tomi-font as modem subsystem collaborator

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-03-12 12:45:11 +01:00
Nikodem Kastelik d1bce0efe1 boards: nrf54l15pdk_nrf54l15_cpuapp: enable DCDC mode by default
Inductor is present on nRF54L15 PDK so it should be enabled
by default.

Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
2024-03-12 12:39:53 +01:00
Gerard Marull-Paretas 6cb283d106 tests: arch: common: ramfunc: add nrf54h20pdk cpuapp overlays
On nRF54H20, we need to configure RAM with execution permissions in
order to execute code from it. This patch adds overlays for the nRF54H20
PDK cpuapp cores so that RAM0X region is given execution permissions and
so the test runs successfully.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-03-12 10:58:51 +01:00
Magdalena Pastula 76f990730f boards: arm: mark counter as supported for nRF54L15
Mark counter as supported for nRF54L15 to allow running
counter_basic_api by twister.

Signed-off-by: Magdalena Pastula <magdalena.pastula@nordicsemi.no>
2024-03-12 10:54:27 +01:00
Magdalena Pastula 1e20632b36 tests: drivers: counter: add nRF54L15 overlay
Add nRF54L15 overlay for counter_basic_api test.

Signed-off-by: Magdalena Pastula <magdalena.pastula@nordicsemi.no>
2024-03-12 10:54:27 +01:00
Magdalena Pastula c57946173f tests: drivers: timer: add nrf_grtc_timer tests
Add NRF GRTC timer test for nRF54L15.

Signed-off-by: Magdalena Pastula <magdalena.pastula@nordicsemi.no>
2024-03-12 10:54:27 +01:00
Sylvio Alves d0d7a7909e driver: uart: esp32: get port number from reg address
ESP32 uart driver requires uart port number to its low level calls.

In case uart0 is disabled and uart1 is enabled, driver will set
default port num to 0 when it should be 1. This fixes this scenario
by retrieving uart pot number based on periphral address.

Fixes #69973

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2024-03-12 09:48:36 +00:00
Gerard Marull-Paretas 624c87af16 dts: arm: nordic: keep NFCT disabled by default
Enabling peripherals at SoC dts files should not be done, unless there
are good reasons (e.g. always needed peripherals). NFCT node should
either be enabled at board level, or, at application level.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-03-12 09:48:22 +00:00
Mark Wang c9467d8967 boards: nxp: mimxrt1060_evk: try the flow control pin mux in RT1060
test configuring pin mux of lpuart flow control in RT1060

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2024-03-12 09:46:50 +00:00
Mark Wang 32ce6ef997 drivers: serial: uart_mcux_lpuart: support the flow control pin mux
Configure the pins of flow control if it is added in device tree.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2024-03-12 09:46:50 +00:00
Daniel DeGrasse ac2993493b soc: nxp: imxrt: do not select HAS_PM at family level
Not all SOC cores within the NXP iMX RT family support power
management (for example, the Fusion F1 DSP has no support). Do not
select HAS_PM at the SOC family level, and instead select it at the
series level where applicable

Fixes #69731

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-03-12 09:46:38 +00:00
Emil Gydesen 63fbeebb9a Bluetooth: BAP: Shell: Add missing err check for bt_bap_ep_get_info
Two places we did not have an error check from calling
bt_bap_ep_get_info before accessing the result. These
have simply been added (without an else), as they are
(very) unlikely to fail.

This was caught by coverity and thus fixes those
coverity issues.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-03-12 09:46:24 +00:00
Gerard Marull-Paretas 8492673ca6 boards: nordic: nrf54h20pdk: add ram variant for cpuppr
This new variant allows to easily execute from RAM when building for the
PPR core.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-03-12 09:46:04 +00:00
Gerard Marull-Paretas 2fe1bb39f2 soc: nordic: vpr: always select HAS_FLASH_LOAD_OFFSET
While not needed when XIP=n, it can be still be selected so that come
defconfigs are simplified.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-03-12 09:46:04 +00:00
Gerard Marull-Paretas f43d5c4394 boards: nordic: nrf54h20pdk: fix cpuppr flash
Board defaults to XIP, in which case flash is 64K.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-03-12 09:46:04 +00:00
Georgij Cernysiov e59ff45ebc dts: bindings: serial: stm32: block clock-frequency
Blocks 'clock-frequency' property included from
'uart-controller.yml' in the STM32 UART base.

Signed-off-by: Georgij Cernysiov <geo.cgv@gmail.com>
2024-03-12 09:45:54 +00:00
Daniel Fladerer 6d493776e9 soc: arm: nxp_imx: Add GPIO clock enable for i.MX8ML M7 Core Series
Enable clock if GPIO bank is enabled in the devicetree.

Signed-off-by: Daniel Fladerer <d.fladerer@gmx.de>
2024-03-12 09:45:35 +00:00
Lyle Zhu 3e8d1182d4 Bluetooth: HFP: Add data sent callback
Set struct bt_rfcomm_dlc_ops::sent.

Get the data sending result through
sent callback.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2024-03-12 09:45:27 +00:00
Lyle Zhu cb3d1c9ee9 Bluetooth: RFCOMM: Add data sent cb for RFCOMM
Currently, the upper layer cannot know
whether the data is successfully sent
through DLC.

Add a field "sent" for RFCOMM DLC ops.
Notify upper-layer of the sending
result through the field "sent".

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2024-03-12 09:45:27 +00:00
Emil Gydesen 8f0e648e48 Bluetooth: CAP: Shell: Add proper broadcast commands
Adds additional broadcast commands and modifies the existing
ones to use the CAP API.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-03-12 09:45:10 +00:00
Bartosz Sokolski 8c6e3a6d41 drivers: i2s_nrfx: Fix divider calculation
The driver wrongly handled perfect divider matches for clock setting

Signed-off-by: Bartosz Sokolski <bartosz.sokolski@nordicsemi.no>
2024-03-12 09:44:29 +00:00
Jukka Rissanen 068d23ab78 log: net: Add structured logging support to syslog
Add structured logging support to syslog backend. This means
that meta data can be included to logging output.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-12 09:44:11 +00:00
Jukka Rissanen d5e55d2595 log: net: Depend on full featured libc instead of just newlibc
For time printout, depend on full featured libc like picolibc
instead of just newlibc.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-12 09:44:11 +00:00
Jukka Rissanen 3c8bd58a06 log: net: Add TCP support to syslog transmitter
Allow user to configure the syslog net backend to use TCP
instead of UDP. The syslog server address for TCP needs to
have "tcp://" URI in front of the address, for example the
tcp://192.0.2.2 server address would use TCP as a transport.
If there is no URI, then UDP would be used by default.

See the relevant RFC at https://www.rfc-editor.org/rfc/rfc6587
for details.

Fixes #66728

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-12 09:44:11 +00:00
Pieter De Gendt 42fa87d5a8 soc: nxp: imx: imx8m: Align resource table to 64bit for i.MX 8M
Running samples/subsys/ipc/openamp_rsc_table with some adjustments
sometimes results in linux kernel panics.

After experimenting it appears to be hit or miss depending on the
resource table alignment.
Explicitly aligning to 64bit (the native width), no more kernel panics
were seen.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2024-03-12 10:44:04 +01:00
Henrik Brix Andersen 8dd03c63d6 doc: releases: release-notes: 3.7: support minimum suported CAN bitrates
Add release notes related to the added support for minimum supported CAN
transceiver/controller bitrates.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-12 10:43:36 +01:00
Henrik Brix Andersen a0b4bf21b5 tests: drivers: can: timing: report unsupported bitrates
Enable testing of all bitrates for all drivers and report which bitrates
are not supported by the CAN controller under test.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-12 10:43:36 +01:00
Henrik Brix Andersen 019fde0437 drivers: can: take minimum supported bitrate into consideration
Take the minimum supported bitrate into consideration when validating the
bitrate.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-12 10:43:36 +01:00
Henrik Brix Andersen 810eaf1fb0 tests: drivers: can: api: add test for bitrate limits
Add test for validating the CAN controller bitrate limits.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-12 10:43:36 +01:00
Henrik Brix Andersen c769da9e55 drivers: can: add can_get_min_bitrate() API function
Add a new CAN controller API function can_get_min_bitrate() for getting the
minimum supported bitrate of a CAN controller/transceiver combination.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-12 10:43:36 +01:00
Henrik Brix Andersen 621515ccf7 drivers: can: sja1000: allow front-ends to specify minimum bitrate
Allow frontend drivers based on the SJA1000 backend to specify a minimum
supported bitrate.

The ESP32 TWAI supports bitrates from 25kbit/s to 1Mbit/s.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-12 10:43:36 +01:00
Henrik Brix Andersen 6d35ec718f drivers: can: add support for specifying minimum supported CAN bitrate
Add support for specifying the minimum bitrate supported by a CAN
controller in CAN_DT_DRIVER_CONFIG_GET() and
CAN_DT_DRIVER_CONFIG_INST_GET().

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-12 10:43:36 +01:00
Henrik Brix Andersen 57c015d017 tests: lib: devicetree: api: add tests for minimum CAN phy bitrate
Add tests for DT_CAN_TRANSCEIVER_MIN_BITRATE() and
DT_INST_CAN_TRANSCEIVER_MIN_BITRATE().

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-12 10:43:36 +01:00
Henrik Brix Andersen 653387446e devicetree: can: add support for getting CAN transceiver minimum bitrate
Add support for getting the minimum supported bitrate of a CAN transceiver.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-12 10:43:36 +01:00
Henrik Brix Andersen 6c21ae41a9 boards: shields: mcp2515: dfrobot: specify minimum CAN bitrate
The NXP TJA1050 supports bitrates from 60kbit/s up to 1Mbit/s.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-12 10:43:36 +01:00
Henrik Brix Andersen 3e6034ed43 dts: bindings: can: transciever: allow specififying minumum bitrate
Some CAN transceivers have a lower limit on their supported bitrate. Add an
optional "min-bitrate" for specifying this limit via devicetree.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-12 10:43:36 +01:00
Guillaume Gautier e91860d8c7 drivers: adc: stm32: disable dma before calibration
For some STM32 series, DMA has to be disabled before starting ADC
calibration.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2024-03-12 10:41:55 +01:00
Hake Huang b624013335 tests: tests/drivers/adc/adc_api: change the overlay naming to HWV2
update overlay names

fixing: #69945

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
2024-03-12 10:41:00 +01:00
Hake Huang 07d1355590 dts: lpcxpresso55s69_lpc55s69_cpu0_ns: add adc0 pinmux
add the mising adc0 pinmux for lpcxpresso55s69_lpc55s69_cpu0_ns

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
2024-03-12 10:41:00 +01:00
Emilio Benavente 88054a0d3d dts: arm: nxp: fix rt11xx pit warnings
The pit had a few warnings about
the format of the register address
being uppser case and one of the
reg index values were incorrect.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2024-03-12 10:40:24 +01:00
Daniel DeGrasse 0bbc67e9d8 soc: nxp: imxrt: renable DCDC adjustment for RT11xx
DCDC adjustment was enabled by default for RT11xx series before HWMv2
transition. Reenable it, as this is needed for some higher power
applications (such as display output)

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-03-12 10:40:12 +01:00
Patryk Kuniecki a10b842991 scripts: tests: twister_blackbox: Add test test_verbose.py
Add new test to twister blackbox tests

Signed-off-by: Patryk Kuniecki <patryk.kuniecki@intel.com>
2024-03-11 21:11:17 -05:00
Benedikt Schmidt b47c66e3f2 drivers: adc: implement voltage biasing for ADS114s08
Implement voltage biasing on the inputs of the ADC ADS114s08.

Signed-off-by: Benedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
2024-03-11 19:34:34 -04:00
Lukasz Mrugala 36c12482c6 scripts: tests: --package-artifacts fix, blackbox tests
Requirements added for bz2.
Blackbox test for --package-artifacts added.
package.py no longer includes twister-out no matter the outdir.

Signed-off-by: Lukasz Mrugala <lukaszx.mrugala@intel.com>
2024-03-11 16:12:55 -04:00
Robert Lubos 4300f042bb net: telnet: Fix spelling in command defines
Rename command defines to make checkpatch happy.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-03-11 15:09:32 -05:00
Robert Lubos 5bb97a112d net: telnet: Improve command processing
Current TELNET implementation wrongly assumed that if the command is
present, it will always be included at the beginning of the packet/data
buffer. Such assumptions however are not valid for STREAM sockets,
where the actual stream data could be fragmented in any way.

Therefore, the command parsing needed rework, so that we analyze each
byte received for the command escape code, and once received we enter
"command parsing" mode. Once no more commands are identified in a data
streak, the command bytes are removed from the data buffer before the
buffer is provided to the shell subsystem for processing.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-03-11 15:09:32 -05:00
Robert Lubos 9e2e234003 net: telnet: Switch TELNET shell backend to use sockets
Rework TELNET shell backend to use socket API for communication and
socket service library for socket monitoring.

Additionally, rework the TX part so that non-blocking TX is used when
sending from the system work queue. In case transfer is not possible at
the moment, the TX work is rescheduled instead of blocking the system
work queue.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-03-11 15:09:32 -05:00
Robert Lubos fef58a2a69 net: sockets: Stick to NET_SOCKETS_POLL_MAX limit in socket services
Socket service pollfd count should not exceed the configured
NET_SOCKETS_POLL_MAX limit, as poll() will not be able to monitor
sockets beyond that limit anyway. Adding +1 there prevented the library
from catching the configuration error.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-03-11 15:09:32 -05:00
Gustavo Silva 722e04da3c flash: stm32: configurable write block sizes
Add new devicetree bindings for F4 and L1 series for configuration of
block size used in flash write operations.

Allow byte-size write operations in `flash_stm32f1x.c`. This file is
being shared between F0, F1, F3, L0 and L1 series. L0 and L1 series
allows for single byte writes.

Signed-off-by: Gustavo Silva <gustavograzs@gmail.com>
2024-03-11 18:57:43 +00:00