-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf fromlist] samples: adc: Add overlay for nRF54L15 PDK
New file with ADC configuration for nRF54L15 PDK. Upstream PR: zephyrproject-rtos/zephyr#68692 Signed-off-by: Karol Lasończyk <[email protected]>
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
samples/drivers/adc/boards/nrf54l15pdk_nrf54l15_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,45 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
*/ | ||
|
||
/ { | ||
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"; | ||
zephyr,reference = "ADC_REF_INTERNAL"; | ||
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; | ||
zephyr,input-positive = <NRF_SAADC_AIN4>; /* P1.11 */ | ||
zephyr,resolution = <10>; | ||
}; | ||
|
||
channel@1 { | ||
reg = <1>; | ||
zephyr,gain = "ADC_GAIN_1"; | ||
zephyr,reference = "ADC_REF_INTERNAL"; | ||
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; | ||
zephyr,input-positive = <NRF_SAADC_AIN2>; /* P1.06 */ | ||
zephyr,resolution = <12>; | ||
zephyr,oversampling = <8>; | ||
}; | ||
|
||
channel@7 { | ||
reg = <7>; | ||
zephyr,gain = "ADC_GAIN_1"; | ||
zephyr,reference = "ADC_REF_INTERNAL"; | ||
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; | ||
zephyr,input-positive = <NRF_SAADC_AIN6>; /* P1.13 */ | ||
zephyr,input-negative = <NRF_SAADC_AIN7>; /* P1.14 */ | ||
zephyr,resolution = <12>; | ||
}; | ||
}; |