Skip to content

Conversation

@jaz1-nordic
Copy link
Contributor

@jaz1-nordic jaz1-nordic commented Aug 8, 2025

Backport 05746fd from #3094.
Backport 77547f8 from #3095.
Backport 84ab620 from #3147.

These commits are related, so they need to be merged together.

Add support for DMM which manages cache and dedicated memory spaces.

Upstream PR #: 90751

Signed-off-by: Jakub Zymelka <[email protected]>
(cherry picked from commit 05746fd)
…al sampling timer

The SAMPLERATE register can be used as a local timer instead
of triggering individual SAMPLE tasks. When SAMPLERATE.MODE is set
to Timers, it is sufficient to trigger SAMPLE task only once in order
to start the SAADC and triggering the STOP task will stop sampling.
The SAMPLERATE.CC field controls the sample rate.

The SAMPLERATE timer should not be combined with SCAN mode and
only one channel should be enabled when using the internal timer.

Upstream PR #: 91368

Signed-off-by: Jakub Zymelka <[email protected]>
(cherry picked from commit 77547f8)
@jaz1-nordic jaz1-nordic changed the title [Backport ncs-v3.1-branch] [nrf fromlist] drivers: adc: nrfx_saadc: Add support for DMM [Backport ncs-v3.1-branch] Backport commits from #3094 and #3095. Aug 8, 2025
@shanthanordic
Copy link

CI not passing, Too late for 3.1.0 Closing this

@jaz1-nordic
Copy link
Contributor Author

@shanthanordic These changes are needed for ncs-3.1 to improve memory management in the SAADC driver for (nrf54H20) and support the internal timer for better accuracy.
The CI failed due to bugs in other tests unrelated to this PR, which I see were fixed later.
This PR cannot be affected by bugs in other PRs.
Reopening the PR should resolve the issue, as rebasing the manifest will automatically incorporate the fixes.

…ended ADC readings

The ADC driver API already supports ADC readings which can return signed
values, these are differential readings. In Nordic's datasheet, we have
a mode called "single ended", but its just a name. "Single ended"
is a differential reading, with the negative channel tied to GND. This is
not compatible with zephyrs definition of a single ended reading.

To support Nordic's "single ended" mode, the user must configure
a differential reading, with the negative input tied to ground, which the
saadc driver can then use to configure the reading as Nordic SAADC
"single ended", and return negative values as expected.

Upstream PR #: 94069

Signed-off-by: Jakub Zymelka <[email protected]>
(cherry picked from commit 84ab620)
@jaz1-nordic jaz1-nordic reopened this Aug 11, 2025
@carlescufi carlescufi merged commit 1a9f9d0 into ncs-v3.1-branch Aug 11, 2025
21 of 23 checks passed
@jaz1-nordic jaz1-nordic deleted the backport-3095-to-ncs-v3.1-branch branch August 11, 2025 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants