1/* 2 * Copyright (c) 2022 Florin Stancu <niflostancu@gmail.com> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/ { 8 zephyr,user { 9 /* 0x5 is ADC_COMPB_IN_VDDS (power supply measurement) */ 10 io-channels = <&adc0 0x5>; 11 }; 12}; 13 14&adc0 { 15 status = "okay"; 16 17 #address-cells = <1>; 18 #size-cells = <0>; 19 20 channel@5 { 21 reg = <5>; 22 zephyr,gain = "ADC_GAIN_1"; 23 zephyr,reference = "ADC_REF_INTERNAL"; 24 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; 25 zephyr,resolution = <12>; 26 }; 27}; 28