1/* 2 * Copyright (c) 2021 Espressif Systems (Shanghai) Co., Ltd. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8 9#include <espressif/esp32c3/esp32c3_mini_n4.dtsi> 10#include "esp32c3_devkitm-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-DevkitM"; 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&i2s { 63 pinctrl-0 = <&i2s_default>; 64 pinctrl-names = "default"; 65 status = "disabled"; 66}; 67 68&trng0 { 69 status = "okay"; 70}; 71 72&spi2 { 73 #address-cells = <1>; 74 #size-cells = <0>; 75 status = "okay"; 76 pinctrl-0 = <&spim2_default>; 77 pinctrl-names = "default"; 78}; 79 80&gpio0 { 81 status = "okay"; 82}; 83 84&wdt0 { 85 status = "okay"; 86}; 87 88&timer0 { 89 status = "disabled"; 90}; 91 92&timer1 { 93 status = "disabled"; 94}; 95 96&twai { 97 /* requires external CAN transceiver or jumper on RX and TX pins for loopback testing */ 98 status = "disabled"; 99 pinctrl-0 = <&twai_default>; 100 pinctrl-names = "default"; 101}; 102 103&esp32_bt_hci { 104 status = "okay"; 105}; 106