/* * Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd. * * SPDX-License-Identifier: Apache-2.0 */ /dts-v1/; #include #include "ttgo_t8s3-pinctrl.dtsi" #include #include #include / { model = "TTGO T8S3 PROCPU"; compatible = "espressif,esp32s3"; aliases { i2c-0 = &i2c0; watchdog0 = &wdt0; sdhc0 = &sd0; uart-0 = &uart0; sw0 = &button0; }; chosen { zephyr,sram = &sram0; /* console can be UART or USB CDC */ /* zephyr,console = &uart0; */ /* zephyr,shell-uart = &uart0; */ zephyr,console = &usb_serial; zephyr,shell-uart = &usb_serial; zephyr,flash = &flash0; zephyr,code-partition = &slot0_partition; zephyr,bt-hci = &esp32_bt_hci; }; buttons { compatible = "gpio-keys"; button0: button_0 { gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "BOOT Button"; zephyr,code = ; }; }; }; &uart0 { status = "okay"; current-speed = <115200>; pinctrl-0 = <&uart0_default>; pinctrl-names = "default"; }; &gpio0 { status = "okay"; }; &gpio1 { status = "okay"; }; &touch { debounce-interval-ms = <30>; href-microvolt = <2700000>; lref-microvolt = <500000>; href-atten-microvolt = <1000000>; filter-mode = ; filter-debounce-cnt = <1>; filter-noise-thr = ; filter-jitter-step = <4>; filter-smooth-level = ; }; &i2c0 { clock-frequency = ; pinctrl-0 = <&i2c0_default>; pinctrl-names = "default"; }; &spi2 { #address-cells = <1>; #size-cells = <0>; status = "okay"; pinctrl-0 = <&spim2_default>; pinctrl-names = "default"; /* dma-enabled; TODO */ clock-frequency = <20000000>; cs-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; sd0: sd@0 { compatible = "zephyr,sdhc-spi-slot"; reg = <0>; status = "okay"; spi-max-frequency = <20000000>; mmc { compatible = "zephyr,sdmmc-disk"; disk-name = "SD"; status = "okay"; }; }; }; &spi3 { #address-cells = <1>; #size-cells = <0>; status = "okay"; pinctrl-0 = <&spim3_default>; pinctrl-names = "default"; }; &twai { pinctrl-0 = <&twai_default>; pinctrl-names = "default"; }; &usb_serial { status = "okay"; }; &timer0 { status = "okay"; }; &timer1 { status = "okay"; }; &timer2 { status = "okay"; }; &timer3 { status = "okay"; }; &wdt0 { status = "okay"; }; &trng0 { status = "okay"; }; &esp32_bt_hci { status = "okay"; };