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/esp32c3/esp32c3_wroom_n4.dtsi> 10#include "esp32c3_devkitc-pinctrl.dtsi" 11#include <zephyr/dt-bindings/input/input-event-codes.h> 12#include <espressif/partitions_0x0_default.dtsi> 13 14/ { 15 model = "Espressif ESP32C3-DevkitC"; 16 compatible = "espressif,esp32c3"; 17 18 chosen { 19 zephyr,sram = &sram1; 20 zephyr,console = &uart0; 21 zephyr,shell-uart = &uart0; 22 zephyr,flash = &flash0; 23 zephyr,code-partition = &slot0_partition; 24 zephyr,bt-hci = &esp32_bt_hci; 25 }; 26 27 aliases { 28 sw0 = &user_button1; 29 i2c-0 = &i2c0; 30 watchdog0 = &wdt0; 31 }; 32 33 gpio_keys { 34 compatible = "gpio-keys"; 35 user_button1: button_1 { 36 label = "User SW1"; 37 gpios = <&gpio0 9 (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&usb_serial { 51 /* requires resoldering of resistors on the board */ 52 status = "okay"; 53}; 54 55&i2c0 { 56 status = "okay"; 57 clock-frequency = <I2C_BITRATE_STANDARD>; 58 pinctrl-0 = <&i2c0_default>; 59 pinctrl-names = "default"; 60}; 61 62&trng0 { 63 status = "okay"; 64}; 65 66&spi2 { 67 #address-cells = <1>; 68 #size-cells = <0>; 69 status = "okay"; 70 pinctrl-0 = <&spim2_default>; 71 pinctrl-names = "default"; 72}; 73 74&gpio0 { 75 status = "okay"; 76}; 77 78&wdt0 { 79 status = "okay"; 80}; 81 82&timer0 { 83 status = "disabled"; 84}; 85 86&timer1 { 87 status = "disabled"; 88}; 89 90&twai { 91 /* requires external CAN transceiver or jumper on RX and TX pins for loopback testing */ 92 status = "disabled"; 93 pinctrl-0 = <&twai_default>; 94 pinctrl-names = "default"; 95}; 96 97&esp32_bt_hci { 98 status = "okay"; 99}; 100