1/* 2 * Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8 9#include <espressif/esp32s2/esp32s2_solo_n4r2.dtsi> 10#include "esp32s2_devkitc-pinctrl.dtsi" 11#include <zephyr/dt-bindings/input/input-event-codes.h> 12#include <zephyr/dt-bindings/input/esp32-touch-sensor-input.h> 13#include <espressif/partitions_0x1000_default.dtsi> 14 15/ { 16 model = "Espressif ESP32S2_DevKitC"; 17 compatible = "espressif,esp32s2"; 18 19 aliases { 20 sw0 = &user_button; 21 i2c-0 = &i2c0; 22 watchdog0 = &wdt0; 23 }; 24 25 chosen { 26 zephyr,sram = &sram0; 27 zephyr,console = &uart0; 28 zephyr,shell-uart = &uart0; 29 zephyr,flash = &flash0; 30 zephyr,code-partition = &slot0_partition; 31 }; 32 33 gpio_keys { 34 compatible = "gpio-keys"; 35 user_button: user_button { 36 label = "BOOT"; 37 gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 38 zephyr,code = <INPUT_KEY_0>; 39 }; 40 }; 41}; 42 43&uart0 { 44 status = "okay"; 45 current-speed = <115200>; 46 pinctrl-0 = <&uart0_default>; 47 pinctrl-names = "default"; 48}; 49 50&gpio0 { 51 status = "okay"; 52}; 53 54&gpio1 { 55 status = "okay"; 56}; 57 58&touch { 59 debounce-interval-ms = <30>; 60 href-microvolt = <2700000>; 61 lref-microvolt = <500000>; 62 href-atten-microvolt = <1000000>; 63 filter-mode = <ESP32_TOUCH_FILTER_MODE_IIR_16>; 64 filter-debounce-cnt = <1>; 65 filter-noise-thr = <ESP32_TOUCH_FILTER_NOISE_THR_4_8TH>; 66 filter-jitter-step = <4>; 67 filter-smooth-level = <ESP32_TOUCH_FILTER_SMOOTH_MODE_IIR_2>; 68}; 69 70&timer0 { 71 status = "disabled"; 72}; 73 74&timer1 { 75 status = "disabled"; 76}; 77 78&timer2 { 79 status = "disabled"; 80}; 81 82&timer3 { 83 status = "disabled"; 84}; 85 86&i2c0 { 87 status = "okay"; 88 clock-frequency = <I2C_BITRATE_STANDARD>; 89 pinctrl-0 = <&i2c0_default>; 90 pinctrl-names = "default"; 91}; 92 93&i2c1 { 94 clock-frequency = <I2C_BITRATE_STANDARD>; 95 pinctrl-0 = <&i2c1_default>; 96 pinctrl-names = "default"; 97}; 98 99&trng0 { 100 status = "okay"; 101}; 102 103&spi2 { 104 #address-cells = <1>; 105 #size-cells = <0>; 106 status = "okay"; 107 pinctrl-0 = <&spim2_default>; 108 pinctrl-names = "default"; 109}; 110 111&spi3 { 112 #address-cells = <1>; 113 #size-cells = <0>; 114 status = "okay"; 115 pinctrl-0 = <&spim3_default>; 116 pinctrl-names = "default"; 117}; 118 119&wdt0 { 120 status = "okay"; 121}; 122 123&dac { 124 status = "okay"; 125}; 126