Skip to content

Commit

Permalink
[nrf fromtree] samples: drivers: adc: adc_sequence: Enable test execu…
Browse files Browse the repository at this point in the history
…tion on nrf54h20

Add overlay file for nrf54h20 cpuapp target.
Add nrf54h20 target to platform_allow.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
(cherry picked from commit 48fc687)
  • Loading branch information
nordic-segl authored and anangl committed Jul 5, 2024
1 parent 4d4f00e commit ded7e9f
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2024 Nordic Semiconductor ASA
*/

/ {
aliases {
adc0 = &adc;
};
};

/ {
zephyr,user {
io-channels = <&adc 0>, <&adc 1>, <&adc 7>;
};
};

&adc {
#address-cells = <1>;
#size-cells = <0>;

channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1_2";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,input-positive = <NRF_SAADC_AIN1>; /* P1.01 */
zephyr,resolution = <10>;
};

channel@1 {
reg = <1>;
zephyr,gain = "ADC_GAIN_1_2";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,input-positive = <NRF_SAADC_AIN2>; /* P1.02 */
zephyr,resolution = <12>;
zephyr,oversampling = <8>;
};

channel@7 {
reg = <7>;
zephyr,gain = "ADC_GAIN_1_2";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,input-positive = <NRF_SAADC_AIN3>; /* P1.03 */
zephyr,input-negative = <NRF_SAADC_AIN7>; /* P1.07 */
zephyr,resolution = <12>;
};
};
1 change: 1 addition & 0 deletions samples/drivers/adc/adc_sequence/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ tests:
- cy8cproto_062_4343w
- nrf52840dk/nrf52840
- nrf54l15pdk/nrf54l15/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
integration_platforms:
- nrf52840dk/nrf52840
harness: console
Expand Down

0 comments on commit ded7e9f

Please sign in to comment.