25 lines
479 B
Plaintext
25 lines
479 B
Plaintext
/* Copyright (c) 2021 STMicroelectronics
|
|
SPDX-License-Identifier: Apache-2.0 */
|
|
|
|
#include <zephyr/dt-bindings/adc/adc.h>
|
|
|
|
/ {
|
|
zephyr,user {
|
|
/* adjust channel number according to pinmux in board.dts */
|
|
io-channels = <&adc1 2>;
|
|
};
|
|
};
|
|
|
|
&adc1 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
channel@2 {
|
|
reg = <2>;
|
|
zephyr,gain = "ADC_GAIN_1";
|
|
zephyr,reference = "ADC_REF_INTERNAL";
|
|
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
|
|
zephyr,resolution = <12>;
|
|
};
|
|
};
|