native_posix is being removed as it has reached its end of life in 4.2, after being deprecated since 4.0. So this overlays will not serve any purpose anymore. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
35 lines
617 B
Plaintext
35 lines
617 B
Plaintext
/*
|
|
* Copyright 2021 Google LLC
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/ {
|
|
zephyr,user {
|
|
io-channels = <&adc0 0>, <&adc0 1>;
|
|
};
|
|
};
|
|
|
|
&adc0 {
|
|
ref-internal-mv = <3300>;
|
|
ref-external1-mv = <5000>;
|
|
#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,resolution = <10>;
|
|
};
|
|
|
|
channel@1 {
|
|
reg = <1>;
|
|
zephyr,gain = "ADC_GAIN_1";
|
|
zephyr,reference = "ADC_REF_INTERNAL";
|
|
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
|
|
zephyr,resolution = <10>;
|
|
};
|
|
};
|