Skip to content

Conversation

@stig-bjorlykke
Copy link
Contributor

…igurable

Add Kconfig variables for BinaryAppDataContainer instance count and data instance count.

Signed-off-by: Stig Bjørlykke [email protected]
(cherry picked from commit 7d20d3a)

tmon-nordic and others added 30 commits December 5, 2024 12:16
… IN interrupt

When handling incomplete iso IN interrupt mark current transfer as
complete and program the endpoint with any subsequently queued packet.
Program the endpoint directly in interrupt handler because the data
must be programmed before SOF (by the time incomplete iso IN interrupt
is raised there is less than 20% * 125 us = 25 us before SOF).

Signed-off-by: Tomasz Moń <[email protected]>
(cherry picked from commit edbb053)
(cherry picked from commit a5a1256)
…dpoints

Application is expected to call usbd_uac2_send() on each enabled USB
Streaming Output Terminal (isochronous IN data endpoint) exactly once
every SOF. The class is bookkeeping queued transfers to make it easier
to determine component at fault when things go wrong. However, this
approach only works fine if the underlying USB device controller buffers
the data to be sent on next SOF and reports the transfer completion
immediately after data is buffered (e.g. nRF52 USBD).

While DWC2 otg also requires the SW to arm endpoint with data for the
next SOF, unlike nRF52 USBD the transfer is only considered complete
after either the IN token for isochronous endpoint is received or after
the Periodic Frame Interval elapses without IN token. This design
inevitably requires the application to be able to have at least two
buffers for isochronous IN endpoints.

Support dual buffering on IN data endpoints to facilitate sending
isochronous IN data on every SOF regardless of the underlying USB device
controller design.

Signed-off-by: Tomasz Moń <[email protected]>
(cherry picked from commit c19d34c)
(cherry picked from commit 7e05c86)
…ndition

Endpoint disable function is racing against bus traffic. If the bus
traffic leads to transfer completion immediately before the endpoint
disable is executed, then the transfer complete interrupt will remain
set when the endpoint is disabled. For OUT endpoints this leads to "No
buffer for ep" errors, while for IN endpoint this can lead to double
buffer pull which causes assertion failure.

The proper solution would be to change endpoint disable to not actually
wait for the individual events (and accept that the endpoint may not
need to be disabled because the transfer can just finish). For the time
being workaround the issue by clearing XferCompl bit on endpoint
disable.

Signed-off-by: Tomasz Moń <[email protected]>
(cherry picked from commit a26d3c2)
(cherry picked from commit 070d76e)
Accessing DWC2 otg core registers before the clock starts results in
complete system hang. Add a 1 us busy wait to make sure that software
won't access registers before the clock is started.

Signed-off-by: Tomasz Moń <[email protected]>
(cherry picked from commit df36b16)
(cherry picked from commit 581e638)
Due to the possibility of simultaneous accesess to LRCCONF registers,
additional management is required.

Signed-off-by: Adam Kondraciuk <[email protected]>
(cherry picked from commit 9b25285)
(cherry picked from commit b70ab60)
Add `idle` and `s2ram` power states for nRF54H20 cpuapp and cpurad.
Also the substate `idle_cache_disable` added.

Signed-off-by: Adam Kondraciuk <[email protected]>
(cherry picked from commit e786c1f)
(cherry picked from commit 126e66e)
IRQs must be disabled before starting any procedures to prepare
for low-power states.

Signed-off-by: Adam Kondraciuk <[email protected]>
(cherry picked from commit be1f405)
(cherry picked from commit 9548301)
…lator

Since nrfx 3.9 integration, configuration is executed
in MDK SystemInit().

Upstream PR #: 82268

Signed-off-by: Nikodem Kastelik <[email protected]>
(cherry picked from commit 8101d21)
…F54L anomaly 31

This workaround will be replaced with a variant
executed at SystemInit() level, once MDK implements it.

Upstream PR #: 82268

Signed-off-by: Nikodem Kastelik <[email protected]>
(cherry picked from commit 9bb619d)
…or nRF54L05 & L10

MDK 8.68.1 uses nRF54L15_XXAA symbol for determining whether
given errata is applicable or not for nRF54L Series SoCs.
This causes all erratas to be disabled for nRF54L05 and nRF54L10.
To mitigate this DEVELOP_IN_NRF54L15 symbol needs to be defined,
and removed once new MDK is integrated.

Upstream PR #: 82268

Signed-off-by: Nikodem Kastelik <[email protected]>
(cherry picked from commit e017356)
Add missing nodes: i2c23, i2c24, spi23, spi24, uart23, uart24.

Signed-off-by: Krzysztof Chruściński <[email protected]>
(cherry picked from commit d87bafe)
(cherry picked from commit 7c7950a)
Introduce etrbuffer in the tddconf bindings to support flexible
placement in the memory map.

Signed-off-by: Karsten Koenig <[email protected]>
(cherry picked from commit a4fcd5e)
(cherry picked from commit 33448ac)
APPROTECT symbols were already aligned to nRF54L15,
but did not take into account similar SoCs like nRF54L05 or L10.

Upstream PR #: 82478

Signed-off-by: Nikodem Kastelik <[email protected]>
(cherry picked from commit 1c08505)
Update nrf_wifi revision for watchdog recovery stats.

Upstream PR #: 81575

Signed-off-by: Kapil Bhatt <[email protected]>
(cherry picked from commit c2234a1)
Add RPU recovery information in wifi utils.
It helps to debug watchdog recovery.

Upstream PR #: 81575

Signed-off-by: Kapil Bhatt <[email protected]>
(cherry picked from commit 62ed74e)
Remove NRF_WIFI_RPU_RECOVERY_PROPAGATION_DELAY_MS Kconfig
which was defined twice with different values.

Signed-off-by: Kapil Bhatt <[email protected]>
(cherry picked from commit 302683e)
(cherry picked from commit 6baae08)
…le directive

Adopt zephyr:code-sample directive to describe the Dining
Philosophers sample and update reference accordingly.

Signed-off-by: Benjamin Cabé <[email protected]>
(cherry picked from commit a5b7349)

Signed-off-by: Sean Madigan <[email protected]>
(cherry picked from commit c53ed0c)
…ated package

move domain.py to domain/ to make it easier to keep things organized
and e.g. add dedicated css/js resources, etc.

Signed-off-by: Benjamin Cabé <[email protected]>
(cherry picked from commit 3d7bb30)

Signed-off-by: Sean Madigan <[email protected]>
(cherry picked from commit a266e73)
…ries

This commit adds support for categorizing code samples in the
documentation.

It introduces two new directives:

- `zephyr:code-sample-category::` to create a category and associated
  brief description, that implicitly acts as a toctree too.

- `zephyr:code-sample-listing::` to allow dumping a list of samples
  corresponding to a category anywhere in the documentation.

Fixes #62453.

Signed-off-by: Benjamin Cabé <[email protected]>
(cherry picked from commit 793c70d)

Signed-off-by: Sean Madigan <[email protected]>
(cherry picked from commit 6295905)
This commit uses the new .. zephyr:code-sample-category directive to
categorize code samples across the tree.
Updates existing legacy references to manually defined targets to now
use :zephyr:code-sample-category: role instead.

Signed-off-by: Benjamin Cabé <[email protected]>
(cherry picked from commit 1db9b00)

Signed-off-by: Sean Madigan <[email protected]>
(cherry picked from commit a4c6ee6)
…h messages

When start to sending proxy advertising, will also process in
send_pending_adv, but the bt_mesh_adv_get_by_tag will directly return
buffer from bt_mesh_adv_queue or bt_mesh_relay_queue, which case
mesh messages sent on different sets, can cause peer replay attack.

Signed-off-by: Lingao Meng <[email protected]>
(cherry picked from commit b54f49c)
Signed-off-by: Håvard Reierstad <[email protected]>
(cherry picked from commit 962f615)
Makes sure that the Network Transmit state is used when using a Subnet
Bridge.

Signed-off-by: Håvard Reierstad <[email protected]>
(cherry picked from commit b38773f)
Signed-off-by: Håvard Reierstad <[email protected]>
(cherry picked from commit f263e73)
By default if CONFIG_BT_MESH_PROXY_USE_DEVICE_NAME
or CONFIG_BT_MESH_PB_GATT_USE_DEVICE_NAME is enabled, the mesh stack
will add BT_DATA_NAME_COMPLETE AD Type along with the Mesh Proxy Service
or Mesh Provisioning Service advertisements accordingly.

When BT_LE_ADV_OPT_USE_NAME was present and
CONFIG_BT_DEVICE_NAME_DYNAMIC is enabled, the advertised name was
automatically updated by the host. This turned out to be a side-effect
rather than expected behavior and after #71700 this behavior waa
changed.

But customers use dynamic name feature.

This commit makes the mesh stack use bt_get_name to get the device name,
which returns runtime name if CONFIG_BT_DEVICE_NAME_DYNAMIC is enabled.

Signed-off-by: Pavel Vasilyev <[email protected]>
(cherry picked from commit ab346a1)
Signed-off-by: Håvard Reierstad <[email protected]>
(cherry picked from commit f98c140)
…es to gatt.h

This moves GATT releated defines that are used by both Mesh Proxy
Service and Mesh Provisioning Service implementations to a common
header file.

Signed-off-by: Pavel Vasilyev <[email protected]>
(cherry picked from commit 684c94e)
Signed-off-by: Håvard Reierstad <[email protected]>
(cherry picked from commit 3ff85af)
…_work

Fix extracting role from k_work.
Hot fix for #78914

Signed-off-by: Pavel Vasilyev <[email protected]>
(cherry picked from commit f5409bd)
Signed-off-by: Håvard Reierstad <[email protected]>
(cherry picked from commit 52c7aa8)
…ut data

This commit checks that config client doesn't pull out data outside of
the buffer.

Fixes #80012

Signed-off-by: Pavel Vasilyev <[email protected]>
(cherry picked from commit e2a0faf)
Signed-off-by: Håvard Reierstad <[email protected]>
(cherry picked from commit d8de6ce)
… CDP0 and 1

This commits puts in order log messages when unpacking CDP0 and CDP1 so
that it a bit more clear where the error happens.

Signed-off-by: Pavel Vasilyev <[email protected]>
(cherry picked from commit 1eeee01)
Signed-off-by: Håvard Reierstad <[email protected]>
(cherry picked from commit 7d31b72)
…et_idx != 0

Initializes the `net_idx` field of the ack context properly for KRP
functions in the Config Client.

This fixes a problem where `bt_mesh_cfg_cli_krp_get` and
`bt_mesh_cfg_cli_krp_set` would always fail the ack ctx comparison if
`key_net_idx` was != 0.

Signed-off-by: Ludvig Jordet <[email protected]>
(cherry picked from commit 88f62a1)
Signed-off-by: Håvard Reierstad <[email protected]>
(cherry picked from commit 48cdbac)
The PEM Kconfig symbols is non-standard and isn't available for nRF
security, for now add a check to enable that only for MbedTLS builtin
which is not applicable for nRF security.

Fixes NCSDK-30762.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit c21cc96)
Switch to released version with all of the Zephyr build fixes

Signed-off-by: Keith Packard <[email protected]>
(cherry picked from commit d5b6539)
(cherry picked from commit 126440b)
ArekBalysNordic and others added 26 commits January 10, 2025 14:00
There is a mistake and the cpuapp_ram0x_region "reg" value should
start from 0x2f011000.

Signed-off-by: Arkadiusz Balys <[email protected]>
(cherry picked from commit 1e69738)
Enable the cpusec IPC and the bellboard nodes for
the nrf54h20dk cpuapp and cpurad targets to enable
communication between domains.

Also enables the region cpurad_ram0x_region since
it is also required for the communication.

Signed-off-by: Georgios Vasilakis <[email protected]>
(cherry picked from commit fdede6a)
…BYTES

The mechanism for communication between domains requires
extra threads. So change the default value MAX_THREAD_BYTES
to allow usage of more threads.

Signed-off-by: Georgios Vasilakis <[email protected]>
(cherry picked from commit 8a190e8)
Disable the IPC communication between the domains
for the arm_thread_swap test since it is not needed
and it causes a flash oveflow for the no opmitization
test case.

Signed-off-by: Georgios Vasilakis <[email protected]>
(cherry picked from commit 28bd478)
CONFIG_PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC is promptless so it cannot
be selected. Moreover it's also automatically enabled by
CONFIG_PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE in the same overlay file
so there would be no need to explicitly enable it.

As for the IMPORT, EXPORT, DERIVE they are needed for the TLS connection
to work properly. Previously it was working because at least IMPORT and
EXPORT are internally enabled by Mbed TLS at build time. So here we
are basically doing the same enablements with Kconfigs in clear.

Signed-off-by: Valerio Setti <[email protected]>
(cherry picked from commit ff8b970)
Noup since secdom is not available upstream and it is required
for PSA RNG.

This enables the PSA RNG as the default Zephyr entropy provider
for the nrf54h20dk cpuapp and cpurad targets.

Signed-off-by: Georgios Vasilakis <[email protected]>
Noup since secdom is not available upstream and it is required
for PSA RNG.

This adds the Kconfig requirements for the PSA RNG service.

This affects the nrf54h20dk cpuapp and cpurad targets.

Signed-off-by: Georgios Vasilakis <[email protected]>
When the PSA crypto secure domain service
is enabled.

Noup since this service is not available
upstream.

This is temporary since we expect to add support for
data cache later.

This affects the nrf54h20dk cpuapp and cpurad targets.

Signed-off-by: Georgios Vasilakis <[email protected]>
Disable the mbedtls legacy tests for the nRF54H20.
We now enable the PSA entropy driver for the nRF54H20
which is incompatible with the mbedtls legacy APIs.

Noup since we only enable the PSA entropy driver in
NCS and not upstream.

Signed-off-by: Georgios Vasilakis <[email protected]>
…54/nRF92

This test uses the bellboard interrupts for the application
and the radio core builds on nRF54H20 and nRF9280.
Since it uses the bellboard interrupts it makes sense to ensure
that bellboard is disabled in device tree to avoid runtime issues.

This is preparation work, bellboard is planned to be enabled
by default later and this makes sure that the test will
continue to work.

Upstream PR #: 83657

Signed-off-by: Georgios Vasilakis <[email protected]>
… for nRF54/nRF92"

This reverts commit 47e5892.

Signed-off-by: Georgios Vasilakis <[email protected]>
This reverts commit 8e808e3.

Signed-off-by: Georgios Vasilakis <[email protected]>
This reverts commit 8b779e6.

Signed-off-by: Georgios Vasilakis <[email protected]>
This reverts commit 3e15675.

Signed-off-by: Georgios Vasilakis <[email protected]>
…verlay-ec"

This reverts commit 31f9947.

Signed-off-by: Georgios Vasilakis <[email protected]>
…_THREAD_BYTES"

This reverts commit e724580.

Signed-off-by: Georgios Vasilakis <[email protected]>
…F54H20"

This reverts commit 248710e.

Signed-off-by: Georgios Vasilakis <[email protected]>
…lue."

This reverts commit be85a64.

Signed-off-by: Georgios Vasilakis <[email protected]>
…ble 64-bit timeouts"

This reverts commit 89fa63d.

Signed-off-by: Georgios Vasilakis <[email protected]>
…clusion stricter

Some devices do not support nrf_clock HAL.

Upstream PR #: 83115

Signed-off-by: Nikodem Kastelik <[email protected]>
…or fast PWM"

This reverts commit 99faf47.

Signed-off-by: Michał Stasiak <[email protected]>
Added clock control api for global hsfll used in fast PWM120 driver.

Upstream PR #: 82133

Signed-off-by: Michał Stasiak <[email protected]>
…igurable

Add Kconfig variables for BinaryAppDataContainer instance count
and data instance count.

Signed-off-by: Stig Bjørlykke <[email protected]>
(cherry picked from commit 7d20d3a)
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.