1/* 2 * Copyright 2022 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8 9#include <espressif/esp32c3/esp32c3_fx4.dtsi> 10#include "stamp_c3-pinctrl.dtsi" 11#include <zephyr/dt-bindings/input/input-event-codes.h> 12#include <espressif/partitions_0x0_default.dtsi> 13 14/ { 15 model = "M5Stack STAMP-C3"; 16 compatible = "m5stack,stamp_c3"; 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 = &button0; 29 i2c-0 = &i2c0; 30 watchdog0 = &wdt0; 31 }; 32 33 gpio_keys { 34 compatible = "gpio-keys"; 35 button0: button0 { 36 label = "BTN"; 37 gpios = <&gpio0 3 (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 status = "okay"; 52}; 53 54&i2c0 { 55 status = "okay"; 56 clock-frequency = <I2C_BITRATE_STANDARD>; 57 pinctrl-0 = <&i2c0_default>; 58 pinctrl-names = "default"; 59}; 60 61&trng0 { 62 status = "okay"; 63}; 64 65&spi2 { 66 #address-cells = <1>; 67 #size-cells = <0>; 68 status = "okay"; 69 pinctrl-0 = <&spim2_default>; 70 pinctrl-names = "default"; 71}; 72 73&gpio0 { 74 status = "okay"; 75}; 76 77&wdt0 { 78 status = "okay"; 79}; 80 81&timer0 { 82 status = "disabled"; 83}; 84 85&timer1 { 86 status = "disabled"; 87}; 88 89&twai { 90 /* requires external CAN transceiver or jumper on RX and TX pins for loopback testing */ 91 status = "disabled"; 92 pinctrl-0 = <&twai_default>; 93 pinctrl-names = "default"; 94}; 95 96&esp32_bt_hci { 97 status = "okay"; 98}; 99