1/* 2 * Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8 9#include <espressif/esp32c6/esp32c6_wroom_n8.dtsi> 10#include "esp32c6_devkitc-pinctrl.dtsi" 11#include <zephyr/dt-bindings/input/input-event-codes.h> 12#include <espressif/partitions_0x0_default.dtsi> 13 14/ { 15 model = "esp32c6_devkitc"; 16 compatible = "espressif,esp32c6"; 17 18 chosen { 19 zephyr,sram = &sramhp; 20 zephyr,console = &uart0; 21 zephyr,shell-uart = &uart0; 22 zephyr,flash = &flash0; 23 zephyr,code-partition = &slot0_partition; 24 }; 25 26 aliases { 27 sw0 = &user_button1; 28 watchdog0 = &wdt0; 29 }; 30 31 gpio_keys { 32 compatible = "gpio-keys"; 33 user_button1: button_1 { 34 label = "User SW1"; 35 gpios = <&gpio0 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 36 zephyr,code = <INPUT_KEY_0>; 37 }; 38 }; 39}; 40 41&uart0 { 42 status = "okay"; 43 current-speed = <115200>; 44 pinctrl-0 = <&uart0_default>; 45 pinctrl-names = "default"; 46}; 47 48&trng0 { 49 status = "okay"; 50}; 51 52&i2c0 { 53 status = "okay"; 54 clock-frequency = <I2C_BITRATE_FAST>; 55 pinctrl-0 = <&i2c0_default>; 56 pinctrl-names = "default"; 57}; 58 59&spi2 { 60 #address-cells = <1>; 61 #size-cells = <0>; 62 status = "okay"; 63 pinctrl-0 = <&spim2_default>; 64 pinctrl-names = "default"; 65}; 66 67&gpio0 { 68 status = "okay"; 69}; 70 71&wdt0 { 72 status = "okay"; 73}; 74