2021-04-12 19:39:04 -03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021 Espressif Systems (Shanghai) Co., Ltd.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include <espressif/esp32c3.dtsi>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "esp32c3_devkitm";
|
|
|
|
compatible = "espressif,esp32c3";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,sram = &sram0;
|
2021-07-02 21:16:08 -03:00
|
|
|
zephyr,console = &uart0;
|
|
|
|
zephyr,shell-uart = &uart0;
|
2021-10-08 12:44:01 -03:00
|
|
|
zephyr,flash = &flash0;
|
2021-04-12 19:39:04 -03:00
|
|
|
};
|
2021-09-12 17:47:41 -03:00
|
|
|
|
|
|
|
aliases {
|
|
|
|
sw0 = &user_button1;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
user_button1: button_1 {
|
|
|
|
label = "User SW1";
|
2021-09-17 20:18:56 -03:00
|
|
|
gpios = <&gpio0 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
2021-09-12 17:47:41 -03:00
|
|
|
};
|
|
|
|
};
|
2021-04-12 19:39:04 -03:00
|
|
|
};
|
2021-07-02 21:16:08 -03:00
|
|
|
|
|
|
|
&uart0 {
|
|
|
|
status = "okay";
|
|
|
|
current-speed = <115200>;
|
|
|
|
};
|
2021-08-10 12:55:34 -03:00
|
|
|
|
|
|
|
&trng0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2021-10-19 17:09:38 -03:00
|
|
|
|
2021-09-12 17:47:41 -03:00
|
|
|
&gpio0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|