27 lines
508 B
Plaintext
27 lines
508 B
Plaintext
/*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Copyright (c) 2022 Telink Semiconductor (Shanghai) Co., Ltd.
|
|
*/
|
|
|
|
/ {
|
|
zephyr,user {
|
|
/* adjust channel number according to pinmux in board.dts */
|
|
io-channels = <&adc 0>;
|
|
};
|
|
};
|
|
|
|
&adc {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
channel@0 {
|
|
reg = <0>;
|
|
zephyr,gain = "ADC_GAIN_1_4";
|
|
zephyr,reference = "ADC_REF_INTERNAL";
|
|
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
|
|
zephyr,resolution = <12>;
|
|
zephyr,input-positive = <DT_ADC_VBAT>;
|
|
};
|
|
};
|