1/* 2 * Copyright 2022 Google LLC 3 * Copyright 2024 Nordic Semiconductor ASA 4 * 5 * SPDX-License-Identifier: Apache-2.0 6 */ 7 8/dts-v1/; 9 10#include <espressif/esp32c3/esp32c3_fx4.dtsi> 11#include "esp32c3_042_oled-pinctrl.dtsi" 12#include <espressif/partitions_0x0_default.dtsi> 13 14/ { 15 model = "01space ESP32C3 0.42 OLED"; 16 17 chosen { 18 zephyr,sram = &sram1; 19 zephyr,console = &usb_serial; 20 zephyr,shell-uart = &usb_serial; 21 zephyr,flash = &flash0; 22 zephyr,code-partition = &slot0_partition; 23 zephyr,canbus = &twai; 24 zephyr,bt-hci = &esp32_bt_hci; 25 zephyr,display = &eastrising_72x40; 26 }; 27 28 aliases { 29 i2c-0 = &i2c0; 30 watchdog0 = &wdt0; 31 }; 32 33 /* WS2812B LED connected to GPIO2 */ 34}; 35 36/* Have to use uart1 as some tests are hardcoded for that DTS node :/ */ 37&uart1 { 38 status = "okay"; 39 current-speed = <115200>; 40 pinctrl-0 = <&uart1_default>; 41 pinctrl-names = "default"; 42}; 43 44&i2c0 { 45 status = "okay"; 46 clock-frequency = <I2C_BITRATE_STANDARD>; 47 pinctrl-0 = <&i2c0_default>; 48 pinctrl-names = "default"; 49 50 eastrising_72x40: ssd1306@3c { 51 compatible = "solomon,ssd1306fb"; 52 reg = <0x3c>; 53 54 width = <72>; 55 height = <40>; 56 57 segment-offset = <28>; 58 page-offset = <0>; 59 display-offset = <0>; 60 multiplex-ratio = <0x27>; 61 prechargep = <0x22>; 62 ready-time-ms = <10>; 63 segment-remap; 64 com-invdir; 65 use-internal-iref; 66 }; 67}; 68 69&spi2 { 70 #address-cells = <1>; 71 #size-cells = <0>; 72 status = "okay"; 73 pinctrl-0 = <&spim2_default>; 74 pinctrl-names = "default"; 75}; 76 77&usb_serial { 78 status = "okay"; 79}; 80 81&trng0 { 82 status = "okay"; 83}; 84 85&gpio0 { 86 status = "okay"; 87}; 88 89&wdt0 { 90 status = "okay"; 91}; 92 93&timer0 { 94 status = "okay"; 95}; 96 97&timer1 { 98 status = "okay"; 99}; 100 101&wifi { 102 status = "okay"; 103}; 104 105&esp32_bt_hci { 106 status = "okay"; 107}; 108