-
Notifications
You must be signed in to change notification settings - Fork 623
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf fromtree] samples: drivers: adc: adc_sequence: Enable test execu…
…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
1 parent
4d4f00e
commit ded7e9f
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
samples/drivers/adc/adc_sequence/boards/nrf54h20dk_nrf54h20_cpuapp.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters