1/* 2 * SPDX-License-Identifier: Apache-2.0 3 * 4 * Copyright (c) 2023 Cypress Semiconductor Corporation (an Infineon company) or 5 * an affiliate of Cypress Semiconductor Corporation 6 */ 7 8#include <zephyr/dt-bindings/adc/adc.h> 9 10/ { 11 zephyr,user { 12 io-channels = <&adc0 0>, <&adc0 1>; 13 }; 14}; 15 16&adc0 { 17 status = "okay"; 18 #address-cells = <1>; 19 #size-cells = <0>; 20 21 channel@0 { 22 reg = <0>; 23 zephyr,acquisition-time = <ADC_ACQ_TIME(ADC_ACQ_TIME_MICROSECONDS, 1)>; 24 zephyr,gain = "ADC_GAIN_1"; 25 zephyr,reference = "ADC_REF_INTERNAL"; 26 zephyr,resolution = <12>; 27 zephyr,input-positive = <2>; /* P10.2 */ 28 }; 29 30 channel@1 { 31 reg = <1>; 32 zephyr,acquisition-time = <ADC_ACQ_TIME(ADC_ACQ_TIME_MICROSECONDS, 1)>; 33 zephyr,gain = "ADC_GAIN_1"; 34 zephyr,reference = "ADC_REF_INTERNAL"; 35 zephyr,resolution = <12>; 36 zephyr,input-positive = <3>; /* P10.3 */ 37 }; 38}; 39