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>, <&adc0 2>, <&adc0 3>; 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 = <0>; /* P10.0 */ 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 = <1>; /* P10.1 */ 37 }; 38 39 channel@2 { 40 reg = <2>; 41 zephyr,acquisition-time = <ADC_ACQ_TIME(ADC_ACQ_TIME_MICROSECONDS, 1)>; 42 zephyr,gain = "ADC_GAIN_1"; 43 zephyr,reference = "ADC_REF_INTERNAL"; 44 zephyr,resolution = <12>; 45 zephyr,input-positive = <2>; /* P10.2 */ 46 }; 47 48 channel@3 { 49 reg = <3>; 50 zephyr,acquisition-time = <ADC_ACQ_TIME(ADC_ACQ_TIME_MICROSECONDS, 1)>; 51 zephyr,gain = "ADC_GAIN_1"; 52 zephyr,reference = "ADC_REF_INTERNAL"; 53 zephyr,resolution = <12>; 54 zephyr,input-positive = <3>; /* P10.3 */ 55 }; 56}; 57