Skip to content

Conversation

@cvinayak
Copy link
Contributor

@cvinayak cvinayak commented Nov 27, 2024

Add sysbuild support to build corresponding hci_ipc firmware for net core on nRF53x boards.

Example build commandline:

  # west build -b nrf5340dk/nrf5340/cpuapp -d build/iso_central samples/bluetooth/iso_central

bjarki-andreasen and others added 30 commits October 30, 2024 16:30
…pt driver

Update the devicetree binding for the nxp,kinetis-acmp comparator and
move the binding to dts/bindings/comparator.

The update to the binding includes:
- Remove unused io-channel-cells property
- Remove unused sensor-device include
- Adding missing properties dac config, discrete mode config, and
  input configs.
- Rename properties to exclude redundant vendor prefix since props in
  this binding are not inhereted, and as such, don't need to be
  namespaced.
- Deprecate the old names of the renamed properties

The sensor based device driver has been updated to support both the
deprecated and new property names. This allows it to use both
nxp,enable-sample and filter-enable-sample for example.

Additionally, remove the unused io-channel-cells properties from
in-tree nodes of compatible = "nxp,kinetis-acmp"

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 4e55597)
…-acmp props

Add entyr mentioning the deprecation of the nxp, prefixed properties
in the nxp,kinetis-acmp dts binding.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 3b08a08)
Add mcux SDK based kinetis acmp device driver implementing the
comparator device driver API.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit d37f844)
Add mcux_acmp device driver to build_all test suite.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 6ed855a)
Add shell for comparator device drivers.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit b7648f8)
Add fake comparator driver and bindings for use with testing.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 2fbe105)
Add test suite for comparator device driver shell.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 4ff9886)
Add documentation for the comparator peripheral and shell.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 183e58b)
Added comparator support to release notes for release 4.0

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 43f88ca)
Add entry for comparator drivers

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit e40fa89)
The comparator drivers area contains the following incorrect area:

files:
  - include/zephyr/dt-bindings/clock/

and contains the following duplicate area:

files:
  - include/zephyr/drivers/comparator/

this commit removes them.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 1635d77)
Add test suite which uses GPIO loopback to produce a "very low" and
"very high" voltage at the positive input of the comparator using the
output of a GPIO. The negative input is set to a voltage between the
high and low output voltages of the GPIO using whichever internal
reference is available to the comparator.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 3272db8)
Change integration_platform -> platform_allow to not build the
shell test suite for all supported boards.

Upstream PR: zephyrproject-rtos/zephyr#80049

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 0502189)
Update DK naming - NRF54L15PDK is deprecated.

Signed-off-by: Bartlomiej Buczek <[email protected]>

(cherry picked from commit 8cd361a)
…h20dk

Change pins that are used for qdec nrf54h20dk to align with shield
(loopbacks) used in internal CI. This change is needed to start
qdec driver power management testing.

Upstream PR #: 80562

Signed-off-by: Piotr Krzyzanowski <[email protected]>
We no longer render Doxygen content in Sphinx after the removal of
breathe, so let's remove rst related aliases from Doxyfile. Also adjust
some headers that contained rst content.

Upstream PR: zephyrproject-rtos/zephyr#80362

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit b8cd03a1e512229cd60dc70b2cd038a087b808bb)
Doxygen was getting confused when expanding @kconfig (verbatim block
within []).

Upstream PR: zephyrproject-rtos/zephyr#80362

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit da385a518ec3dc4b87fafd07cd05f899d376dc18)
Tests are checking error codes returned from adc_read() and
adc_channel_setup() used with invalid configurations.

Signed-off-by: Bartlomiej Buczek <[email protected]>

(cherry picked from commit da81490)
DCDC regulator on nRF54L may not always works as intended.
Apply a fix addressing that.

Upstream PR #: 80635

Signed-off-by: Nikodem Kastelik <[email protected]>
Let's run tests with security/privacy with the HW models acutually
running the encryptions, so in case of missaligned keys
tests fail.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 53adf2c)
Let's run tests with security/privacy with the HW models acutually
running the encryption, so in case of missaligned keys
tests fail.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 342e298)
Let's run tests with security/privacy with the HW models acutually
running the encryptions, so in case of missaligned keys
tests fail.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 9182a7e)
…cryption

Let's run tests with security/privacy with the HW models acutually
running the encryptions, so in case of missaligned keys
tests fail.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 3726cf3)
Changed the scan option type from uint32_t to
uint8_t.

There are 2 reasons for this:
1) This reduces the size of the struct bt_le_scan_param.
   Since we are now storing two copies of scan parameters
   statically in the host, this is not insignficant.
2) This fixes a "hole" in the struct. There are no longer
   3 empty octets between the `type` and the `options`, which
   caused valgrind warnings when using `memcpy` and `memcmp`
   of the struct.

Currently we only need 8 bits for the options available.
If additional options are added later, the field need
to be increased. For the above reasons some additional
refactoring my be required to avoid significant size
increases and the valgrind issue.

Signed-off-by: Emil Gydesen <[email protected]>
(cherry picked from commit e1e4f2a)
Update the string formatter according to the type of the
variables that it is printing to eliminate compilation
warnings.

Signed-off-by: Yong Cong Sin <[email protected]>
Signed-off-by: Yong Cong Sin <[email protected]>
(cherry picked from commit d250664)
…me in shell

Added a timeout for active scans (instead of using the host's scan
timeout) in the shell by submitting a k_work that stops the scan
after a specified period.

Fixes #78659

Signed-off-by: Babak Arisian <[email protected]>
(cherry picked from commit d8c1d4d)
Currently, the bonding type of Authentication
_Requirements parameter is always `Dedicated
Bonding` if the device is pairing initiator.

But if the bonding is performed during
connection setup or channel establishment as
a precursor to accessing a service, the
bonding type should be `General bonding`.

Add a flag BT_CONN_BR_GENERAL_BONDING.
Set the flag if the bonding is performed in
the L2CAP_BR/RFCOMM channel establishment.

Set bonding type depends on the flag when
receiving IO cap request.

Signed-off-by: Lyle Zhu <[email protected]>
(cherry picked from commit 08ceb14)
Add a function bt_get_bondable to get the bonding setting.

Signed-off-by: Lyle Zhu <[email protected]>
(cherry picked from commit c0ce5b4)
Correct the `help` of the configuration `BT_BONDABLE`.

Signed-off-by: Lyle Zhu <[email protected]>
(cherry picked from commit 0ed8866)
nashif and others added 25 commits November 27, 2024 11:21
Set soc_root using Path to avoid wrong generated path in the list of
soc_roots and other roots read from module.yml file

Fixes #80531

Signed-off-by: Anas Nashif <[email protected]>
(cherry picked from commit 2c43d7f)
The nRF54H20 Development Kit version 0.8.0 is no longer supported, given
that they should have all been replaced by 0.9.x.

Signed-off-by: Carles Cufi <[email protected]>
(cherry picked from commit 5cb8d6c)
The production version of the nRF54H20 SoC is now available, so remove
the initial Engineering B (EngB) preview version.

Signed-off-by: Carles Cufi <[email protected]>
(cherry picked from commit 9643ca2)
Main changes since v2.3:
* Support for immediate RSSI measurements during abort reevaluations
* Several minor improvements in the base components, including
  tolerating better under-setup docker images, improved C++
  compatibility, a new sanity check for problematic user provided
  sim_ids, and other minor improvements.

Note: Like before, bsim remains fully backwards compatible

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit a30e41f)
Update the HW models module to:
aeef3db9fa9e4b9d12b3bbec44f9cedc8fcb7d9c

Including the following:
aeef3db GPIO & GPIOTE: Improve notes and documentation
93549c4 UART: Fix command line parameter description
dbab746 nrf_hack: Add a few missing peripherals
4b1a61b 53 UARTE: Correct subscribe sideeffects function name
197e9cf docs: UART can be used now for 5340 in Zephyr
dc18d14 53: GPIO+TE: Add app core instances
b236c08 GPIO+TE: Add to 5340's netcore
7a621f6 GPIO: Clarify function description
1a2e1e4 GPIO+TE: Build for 54L
d121db4 nrf_gpio hal: Add new nrf_gpio_port_pin_{in,out}put_set
9bc41ce GPIOTE: Connect to DPPI
7141042 GPIOTE: Add simple support for PORT.SECURE & NONSECURE
dc930ba GPIOTE: Support having or not sense functionality per instance
a07180d GPIO: Support multiple GPIOTEs
14bdce5 GPIO: Collect status in single struct
b91da53 GPIOTE: Add support for N interrupt lines
9963424 GPIO & GPIOTE: Generalize to N instances
7379c23 GPIO+TE: Fix indentation
8d691c6 Add SPU registers stub
dd68ca9 Add NFCT register stub
cf2cc5b HW_models: NHW_NVMC: fix buffer read validation
f3db727 zephyr: module.yml: add `depends` field
09fc98f CMakeLists: remove trailing whitespace

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 0efbca3)
…e_driver_init

- Driver always initializes the device in the suspended state
- If CONFIG_PM_DEVICE_RUNTIME=n, device PM callback will be called with
  RESUME action, thus setting up pins to default state and enabling the
  peripheral

NOTE: when CONFIG_PM_DEVICE=n, the pinctrl sleep state will not be
available (-ENOENT) and so never applied, thus avoiding a pin
suspended->active transition.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit 9f0ebb6)
Extract code useful for an RTIO implementation to a separate file.

Signed-off-by: Jordan Yates <[email protected]>
(cherry picked from commit 0218b36)
Change the callback context to the dev pointer instead of the data
pointer, as the dev pointer is needed by RTIO.

Signed-off-by: Jordan Yates <[email protected]>
(cherry picked from commit 627be7d)
Add native support for RTIO to the TWIM hardware IP.

Signed-off-by: Jordan Yates <[email protected]>
(cherry picked from commit f443363)
…DARD

Instead of forcing a definition in Devicetree. Right now, SoC DT files
contain this default, but it should not be part of SoC DT files.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit 92c3495)
Device driver now defaults to I2C_BITRATE_STANDARD if not specified.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit 4e5df11)
This reverts commit 4081b2e.

Signed-off-by: Carles Cufi <[email protected]>
(cherry picked from commit 9643ca2)
Update the HW models module to:
42737c8ec8485987c7c9b0262b136de623e1ded2

Including the following:
42737c8 TIMER: Support devices without TASK_SHUTDOWN nrfx3.9 MDK 8.68
5fe6873 54 UARTE: Add frametimeout functionality
dc086d7 UARTE: Add basic 54 support
b046745 UARTE: Support better not having UART functionality
1c5f58c README: Mention the nRF54L15 models cover the L10 and L05
597c7d0 TEMP: Also build hal replacement for 54 and define NRF_TEMP_NS/S
fb2ca83 Makefile: Let's build libraries (specially HAL) as pic
200a1e3 Makefiles: move some common options to common snippet

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 30f0d85)
…ith nrfx3.9

Update the HW models module to:
3cfca0192ff84da919e9bc7978bcc2239cd6a395

This includes 2 changes:
* 3cfca01 UART: Model more accurately TASKS_FLUSH behaviour
* 25cbd28: 54L15: Change CLOKPOWER IRQ line (MDK 8.68, nrfx 3.9.0)

    WARNING! This change breaks backwards compatibility with SW
    which expected this line to be 270 for 54L15 devices,
    and therefore with MDKs < 8.68 & nrfx < 3.9.0.
    This change requires updating to the MDK >=8.68 and nrfx >=3.9.0
    if building using the 54L15 models.
    52 and 53 models are not affected.

    Change the CLOCK_POWER interrupt line from 270 to 261.
    This has changed in the latest MDK (8.68) and the new
    value is used in the latest nrfx (3.9.0) drivers.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit ef55d65)
TASK_SHUTDOWN was deprecated in newer SOCs and now removed
in MDK 8.68 (nrfx 3.9.0)

Signed-off-by: Alberto Escolar Piedras <[email protected]>
Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
(cherry picked from commit 4294814)
There are many common options to all ICs of the 54L series. Consolidate
them in a single entry so that they do not need to be re-typed for each
SoC series member.

Signed-off-by: Carles Cufi <[email protected]>
(cherry picked from commit 0b3a150)
These two new ICs are variants of the nRF54L15 with different memory
sizes:

- nRF54L05: 500KB RRAM, 96KB RAM
- nRF54L10: 1022KB RRAM, 192KB RAM
- nRF54L15: 1524KB RRAM, 256KB RAM

Signed-off-by: Carles Cufi <[email protected]>
(cherry picked from commit e788320)
Use the rather logical convention for the name that is applied to other
Nordic boards: <board>_common.dtsi for definitions that are common to
the board itself (LEDs, buttons, etc).

Signed-off-by: Carles Cufi <[email protected]>
(cherry picked from commit 1b84958)
…L05 and L10 ICs

The nRF54L05 and nRF54L10 are identical to the nRF54L15 except for their
memory sizes. Add support for emulating those ICs on the nRF54L15DK.
This commit only adds support for the main application core. Support for
the FLPR core may be added later.

Signed-off-by: Carles Cufi <[email protected]>
(cherry picked from commit 2147577)
This adds the nrf54l15dk/nrf54l15/cpuapp/ns board variant to
sdk-zephyr. It allows to build nRF54l15dk with TF-M in nRF Connect SDK.

This is done as a noup as the out-of-tree board extension feature is
not available. When zephyrproject-rtos/zephyr#69548 is completed this
commit can be reverted and the variant be placed in sdk-nrf.

Signed-off-by: Tomi Fontanilles <[email protected]>
(cherry picked from commit 6b4c840)
This is a long-term noup patch because crypto driver support is
NCS-only for both cryptocell and CRACEN.

Set HAS_HW_NRF_CC3XX to be defined in NS build when cryptocell
is accessed through the PSA API.
We need to know which CC3XX features are available.

Set PSA as the entropy source for 54L.

PSA is the only NCS-supported interface to CRACEN.

Signed-off-by: Georgios Vasilakis <[email protected]>
Signed-off-by: Joakim Andersson <[email protected]>
Signed-off-by: Dominik Ermel <[email protected]>
Signed-off-by: Sebastian Bøe <[email protected]>
Signed-off-by: Robert Lubos <[email protected]>
Signed-off-by: Rubin Gerritsen <[email protected]>
(cherry picked from commit d643f17)
The SoftDevice Controller is a different controller than
the open source link layer with a different set of quirks.
It should therefore have its own device tree binding.

This commit converts the SoftDevice Controller driver
to use this new DTS binding instead of reusing the existing one.

This commit updates or adds additional overlays for
existing samples, applications and tests that were using the
open source link layer.

Signed-off-by: Rubin Gerritsen <[email protected]>
(cherry picked from commit 8d6a853)
Add sysbuild support to build corresponding hci_ipc
firmware for net core on nRF53x boards.

Example build commandline:
  # west build -b nrf5340dk/nrf5340/cpuapp
    -d build/iso_central samples/bluetooth/iso_central

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.