1/* 2 * Copyright (c) 2024 Centro de Inovacao EDGE 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <zephyr/dt-bindings/adc/adc.h> 8 9/ { 10 aliases { 11 adc0 = &adc0; 12 }; 13}; 14 15&adc0 { 16 status = "okay"; 17 #address-cells = <1>; 18 #size-cells = <0>; 19 20 channel@0 { 21 reg = <0>; 22 zephyr,acquisition-time = <ADC_ACQ_TIME(ADC_ACQ_TIME_MICROSECONDS, 1)>; 23 zephyr,gain = "ADC_GAIN_1"; 24 zephyr,reference = "ADC_REF_INTERNAL"; 25 zephyr,input-positive = <0>; /* P10.0 */ 26 }; 27 28 channel@1 { 29 reg = <1>; 30 zephyr,acquisition-time = <ADC_ACQ_TIME(ADC_ACQ_TIME_MICROSECONDS, 1)>; 31 zephyr,gain = "ADC_GAIN_1"; 32 zephyr,reference = "ADC_REF_INTERNAL"; 33 zephyr,input-positive = <1>; /* P10.1 */ 34 }; 35}; 36