samples: drivers: adc: add support for internal nRF54L SAADC inputs
SAADC peripheral for nRF54L Series allows to choose internal voltages as positive inputs and samples shall showcase that. Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
This commit is contained in:
parent
ece7da5947
commit
e31598233d
2 changed files with 22 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
/ {
|
||||
zephyr,user {
|
||||
io-channels = <&adc 0>, <&adc 1>, <&adc 7>;
|
||||
io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 7>;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -33,6 +33,16 @@
|
|||
zephyr,oversampling = <8>;
|
||||
};
|
||||
|
||||
channel@2 {
|
||||
reg = <2>;
|
||||
zephyr,gain = "ADC_GAIN_1";
|
||||
zephyr,reference = "ADC_REF_INTERNAL";
|
||||
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
|
||||
zephyr,input-positive = <NRF_SAADC_VDD>;
|
||||
zephyr,resolution = <12>;
|
||||
zephyr,oversampling = <8>;
|
||||
};
|
||||
|
||||
channel@7 {
|
||||
reg = <7>;
|
||||
zephyr,gain = "ADC_GAIN_1";
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
/ {
|
||||
zephyr,user {
|
||||
io-channels = <&adc 0>, <&adc 1>, <&adc 7>;
|
||||
io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 7>;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -39,6 +39,16 @@
|
|||
zephyr,oversampling = <8>;
|
||||
};
|
||||
|
||||
channel@2 {
|
||||
reg = <2>;
|
||||
zephyr,gain = "ADC_GAIN_1";
|
||||
zephyr,reference = "ADC_REF_INTERNAL";
|
||||
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
|
||||
zephyr,input-positive = <NRF_SAADC_DVDD>; /* 0.9 V internal */
|
||||
zephyr,resolution = <12>;
|
||||
zephyr,oversampling = <8>;
|
||||
};
|
||||
|
||||
channel@7 {
|
||||
reg = <7>;
|
||||
zephyr,gain = "ADC_GAIN_1";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue