From 277c558e47813d03981a51a4858de441b154f7ca Mon Sep 17 00:00:00 2001 From: Joel Guittet Date: Wed, 20 Mar 2024 23:23:23 +0100 Subject: [PATCH] samples: drivers: adc: add esp32-s3-touch-lcd-1.28 overlay Add configuration for the Waveshare ESP32-S3-Touch-LCD-1.28 board. Signed-off-by: Joel Guittet --- .../boards/esp32s3_touch_lcd_1_28.overlay | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 samples/drivers/adc/adc_dt/boards/esp32s3_touch_lcd_1_28.overlay diff --git a/samples/drivers/adc/adc_dt/boards/esp32s3_touch_lcd_1_28.overlay b/samples/drivers/adc/adc_dt/boards/esp32s3_touch_lcd_1_28.overlay new file mode 100644 index 00000000000..de057062019 --- /dev/null +++ b/samples/drivers/adc/adc_dt/boards/esp32s3_touch_lcd_1_28.overlay @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2024 Joel Guittet + * SPDX-License-Identifier: Apache-2.0 + */ + +/ { + zephyr,user { + io-channels = <&adc0 0>; + }; +}; + +&adc0 { + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + + channel@0 { + reg = <0>; + zephyr,gain = "ADC_GAIN_1_4"; + zephyr,reference = "ADC_REF_INTERNAL"; + zephyr,acquisition-time = ; + zephyr,resolution = <12>; + }; +};