Commit graph

91628 commits

Author SHA1 Message Date
Brian Juel Folkmann
f9ac97e1c8 stm32: flash: ospi: Fix erase if flash is larger than 16MB
Opcodes for erase is taken from jedec basic flash parameter table
These expects 3 byte addresses.

When running with 4 byte addresses, opcodes to be used shall be taken
from JEDEC 4-byte Address Instruction Parameter table

Signed-off-by: Brian Juel Folkmann <bju@trackunit.com>
2024-02-27 18:43:32 +01:00
Gerard Marull-Paretas
afdddf1d22 modules: hal_nordic: require nrf-regtool 5.1.0
This new version is required to handle the upcoming IPC-related DT
structure (i.e. BELLBOARD/VEVIF).

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 18:37:39 +01:00
Aleksander Wasaznik
3eeb8f8d18 Bluetooth: Check buffer length in GATT rsp functions
Add length checks local to the parsing function. This removes the need
for a separate data validation step.

Signed-off-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
2024-02-27 17:57:04 +01:00
Cemre Derbaz
d2fbd3f152 tests: watchdog: Do not fail on not permitted option
Skip test on not permitted option provided.

Signed-off-by: Cemre Derbaz <cemre.derbaz@analog.com>
2024-02-27 17:00:07 +01:00
Branimir Mihelčić
8e29e51a57 doc: os-services: sensing: fix code snippet typo
DT_NODELABLE() doesn't exist as s macro, should say DT_NODELABEL() instead

Signed-off-by: Branimir Mihelčić <24branimir.m@gmail.com>
2024-02-27 16:58:33 +01:00
Robert Lubos
f250080af6 doc: Add gmtime_r() to rule A.5 exceptions
According to commit 400c1fa744 which
introduced rule A.5 to the coding guidelines, the initial exception list
was based on the non-standard function availability in minimal libc.

gmtime_r() however, has not been included to the list, although it's
present in minimal libc since 3e8df8b369.

This commit fixes this, by adding gmtime_r() to the rule A.5 exception
list.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-02-28 00:54:42 +09:00
Robert Lubos
0966be01fc libc: Move gmtime_r into common
gmtime_r() has been in the minimal libc for years, however it was not
added to expcetions due to an overlook. In order to do this however, it
has to be moved first to the common libc area, so that it's available
to any libc that may not implement it.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-02-28 00:54:42 +09:00
Samuel Kleiser
109a045e57 dts: stm32h723.dtsi: Add missing timer definitions
Added missing timers23/timers24 definitions.

Signed-off-by: Samuel Kleiser <s.kleiser@vega.com>
2024-02-27 14:14:27 +00:00
Ricardo Rivera-Matos
aff2564c6a build_all: regulator: Adds CP9314 entry
Adds the CP9314 device to the regulator build_all test suite.

Signed-off-by: Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
2024-02-27 14:57:12 +01:00
Ricardo Rivera-Matos
814a1875f6 drivers: regulator: cp9314: adds initial support
Adds support for the CP9314 switched capacitor converter. The
CP9314 is a multi-level DC/DC converter capable of operating in
2:1 and 3:1 modes.

Signed-off-by: Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
2024-02-27 14:57:12 +01:00
Ricardo Rivera-Matos
a4713be4eb dts: regulator: Adds bindings for CP9314 Buck
Adds devicetree bindings for the Cirrus CP9314 Switched
Capacitor 3:1/2:1 DC/DC converter.

Signed-off-by: Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
2024-02-27 14:57:12 +01:00
Piotr Narajowski
43d830082c bluetooth: CSIP: Add API to get service handles
This is needed for upper tester.

Signed-off-by: Piotr Narajowski <piotr.narajowski@codecoup.pl>
2024-02-27 14:55:18 +01:00
Piotr Narajowski
4c9d644680 bluetooth: tester: CSIP tests
Adding support for CSIP client role tests.

Signed-off-by: Piotr Narajowski <piotr.narajowski@codecoup.pl>
2024-02-27 14:55:18 +01:00
Björn Stenberg
8cdcb2c167 uart_native_tty: Emulate an interrupt driven uart
Emulate SERIAL_SUPPORT_INTERRUPT for UART_NATIVE_TTY, using a thread that
polls the tty and invokes the callback.

This allows interrupt-driven subsystems such as modbus to use a native tty,
which is useful for testing purposes.

Signed-off-by: Björn Stenberg <bjorn@haxx.se>
2024-02-27 14:49:02 +01:00
Mustafa Abdullah Kus
38a14b894d dts: bindings: st, stm32-rtc.yaml: add calibration output support
add calibration-out-freq field. that
field is enum.

Signed-off-by: Mustafa Abdullah Kus <mustafa.kus@sparsetechnology.com>
2024-02-27 14:47:31 +01:00
Mustafa Abdullah Kus
c9e908d7f3 drivers: rtc: rtc_ll_stm32: add rtc calibration out support
implementation rtc calibration output
frequency set routine.

Signed-off-by: Mustafa Abdullah Kus <mustafa.kus@sparsetechnology.com>
2024-02-27 14:47:31 +01:00
Emil Gydesen
689e3216fc Bluetooth: BAP: Add bt_bap_base_subgroup_get_bis_indexes
Add bt_bap_base_subgroup_get_bis_indexes that gets the BIS indexes
of a subgroup. This work very similar to
bt_bap_base_get_bis_indexes, except that it works for subgroups
rather than BASEs.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-27 14:46:33 +01:00
Fin Maaß
1f2a3c46df net: dhcpv4: initialization of option_callbacks list
Initialize sys_slist_t option_callbacks statically.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2024-02-27 14:45:40 +01:00
Fin Maaß
866c804cb8 net: dhcpv4: option callback check value explicitly
Check the value of net_dhcpv4_add_option_callback()
and net_dhcpv4_remove_option_callback() explicitly.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2024-02-27 14:45:40 +01:00
Anders Storrø
12d138b035 Bluetooth: Mesh: Shell: Fix doc for metadata encode
Fixes misleading docstring for input of core type for the
mesh models dfu metadata encode command.

Signed-off-by: Anders Storrø <anders.storro@nordicsemi.no>
2024-02-27 14:45:03 +01:00
Yuval Peress
375aa90c09 it82xx2: Add missing ISRs for gpioj
Without this we can't take advandage of pins 6 & 7.

Fixes #69503

Signed-off-by: Yuval Peress <peress@google.com>
2024-02-27 14:44:41 +01:00
Herman Berget
9135de7a66 Bluetooth: hci: Add hw variant definitions for nrf54H/L
Assign new numbers for new soc series and update string
conversion function.

Signed-off-by: Herman Berget <herman.berget@nordicsemi.no>
2024-02-27 14:43:07 +01:00
Gerard Marull-Paretas
75839ea4ad snippets: add snippet to boot Nordic PPR core from RAM
Add a new snippet that allows booting PPR core found in some Nordic
SoCs, configuring it with CONFIG_XIP=n.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 13:32:40 +01:00
Gerard Marull-Paretas
d1e59cf39f boards: nrf54h20pdk_nrf54h20: use XIP for PPR
The amount of RAM owned by PPR core is quite limited, making it
difficult to fit many samples. Instead, use execution in place and
increase its code partition from 28K to 64K (as now it doesn't have to
match RAM size).

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 13:32:40 +01:00
Gerard Marull-Paretas
43f97710af soc: riscv: nordic_nrf: vpr: select HAS_FLASH_LOAD_OFFSET if XIP
This option is required to enable usage of DT partitions, used when
CONFIG_XIP=y.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 13:32:40 +01:00
Gerard Marull-Paretas
349c06ebc5 soc: nordic_nrf: add missing GRTC Kconfig option
Add missing option to select GRTC.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Gerard Marull-Paretas
1453008f6f soc: nordic_nrf: add support for WDT131-132
Add new Kconfig options to select WDT131-132.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Gerard Marull-Paretas
c57ec6f07a modules: hal_nordic: add support for WDT131-132
Add HAL glue code to support WDT131-132.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Gerard Marull-Paretas
30c77786e5 dts: nordic: nrf54h20_enga: add WDT nodes
Add nodes for WDT (Watchdog Timer).

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Gerard Marull-Paretas
4db40601dd dts: nordic: nrf54h20_enga: add ECB node
Add node for ECB (AES electronic codebook mode encryption).

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Gerard Marull-Paretas
d33e5fc7af dts: nordic: nrf54h20_enga: add RADIO node
Add node for the RADIO.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Gerard Marull-Paretas
0cb51de315 soc: nordic_nrf: add support for EGU020
Add support for EGU020.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Gerard Marull-Paretas
01b43074ab modules: hal_nordic: add support for EGU020
Add HAL glue code to support EGU020.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Gerard Marull-Paretas
bc53031824 dts: nordic: nrf54h20_enga: add EGU node
Add node for EGU (Event Generator Unit).

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Gerard Marull-Paretas
9c6f47d786 dts: nordic: nrf54h20_enga: add COMP node
Add node for COMP (comparator).

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Gerard Marull-Paretas
f1a352d00f dts: nordic: nrf54h20_enga: add TEMP node
Add nodes for the TEMP (temperature sensor) peripheral.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Gerard Marull-Paretas
735ee4c83a dts: nordic: nrf54h20_enga: add NFCT node
Add node for the NFCT (Near Field Connect Tag) peripheral.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Gerard Marull-Paretas
720719cf80 dts: nordic: nrf54h20_enga: add QDEC nodes
Add nodes for QDEC (Quadrature Decoder).

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Gerard Marull-Paretas
010519c8e3 dts: nordic: nrf54h20_enga: add TWIM nodes
Add nodes for I2C/TWIM.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Gerard Marull-Paretas
e5ef767ab2 dts: nordic: nrf54h20_enga: add SPIM nodes
Add SPIM (SPI with EasyDMA) nodes.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Gerard Marull-Paretas
f77b30fa17 soc: nordic_nrf: add support for RTC130-131
Add new Kconfig options for RTC130-131 so that the new instances can be
used.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Gerard Marull-Paretas
3dd2b0d8b3 modules: hal_nordic: add support for RTC130-131
Add new HAL glue Kconfig options for RTC130-131.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Gerard Marull-Paretas
35fecb731a dts: nordic: nrf54h20_enga: add RTC nodes
Add RTC (Real Time Counter) node.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Gerard Marull-Paretas
07d961c112 soc: nordic_nrf: add support for TIMER020-022|120-121|130-137
Add new Kconfig options so that new TIMER instances can be used.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Gerard Marull-Paretas
7dd9853382 modules: hal_nordic: add support for TIMER020-022|120-121|130-137
Add new HAL glue Kconfig options so that new TIMER instances can be
used.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Gerard Marull-Paretas
083bf7e549 dts: nordic: nrf54h20_enga: add TIMER nodes
Add nodes for TIMER peripherals (Timer/Counter).

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Gerard Marull-Paretas
5adbac51ab dts: nordic: nrf54h20_enga: add missing UARTE nodes
Add missing UARTE nodes.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Gerard Marull-Paretas
04025d87db dts: nordic: nrf54h20_enga: current-speed needs to be set by boards
This is a setting that depends on the board or application, so it should
not be part of SoC definition files.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-27 12:36:54 +01:00
Christopher Friedt
c5ba34ec90 tests: posix: common: add a testsuite for pthread_mutexattr_t
Add a testsuite for testing pthread_mutexattr_t related
functions.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2024-02-27 06:11:03 -05:00
Christopher Friedt
ec27e8875d posix: mutexattr: improvements for pthread_mutexattr_t
Previously, pthread_mutexattr_gettype() and
pthread_mutexattr_settype() were non-conformant and also
less safe, as they would not check whether a pthread_mutexattr_t
had been initialized prior to manipulating them. Furthermore,
they would potentially dereference NULL pointers.

Additionally, move the pthread_mutexattr_init() and
pthread_mutexattr_destroy() functions to the library, and add
some level of checking to them so that they are more than simply
static inline / no-op calls.

Lastly, reduce the size of struct pthread_mutexattr to only
what is necessary (one byte should suffice).

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2024-02-27 06:11:03 -05:00