1/* 2 * Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6/dts-v1/; 7 8#include <espressif/esp32/esp32_wrover_e_n4r8.dtsi> 9#include "esp32_devkitc_wrover-pinctrl.dtsi" 10#include <zephyr/dt-bindings/input/input-event-codes.h> 11 12/ { 13 model = "Espressif ESP32-DEVKITC-WROVER-E"; 14 compatible = "espressif,esp32"; 15 16 aliases { 17 uart-0 = &uart0; 18 i2c-0 = &i2c0; 19 sw0 = &button0; 20 watchdog0 = &wdt0; 21 }; 22 23 buttons { 24 compatible = "gpio-keys"; 25 button0: button_0 { 26 gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 27 label = "BOOT Button"; 28 zephyr,code = <INPUT_KEY_0>; 29 }; 30 }; 31 32 chosen { 33 zephyr,sram = &sram0; 34 zephyr,console = &uart0; 35 zephyr,shell-uart = &uart0; 36 zephyr,flash = &flash0; 37 }; 38}; 39 40&cpu0 { 41 clock-frequency = <ESP32_CLK_CPU_240M>; 42}; 43 44&cpu1 { 45 clock-frequency = <ESP32_CLK_CPU_240M>; 46}; 47 48&uart0 { 49 status = "okay"; 50 current-speed = <115200>; 51 pinctrl-0 = <&uart0_default>; 52 pinctrl-names = "default"; 53}; 54 55&uart1 { 56 current-speed = <115200>; 57 pinctrl-0 = <&uart1_default>; 58 pinctrl-names = "default"; 59}; 60 61&uart2 { 62 current-speed = <115200>; 63 pinctrl-0 = <&uart2_default>; 64 pinctrl-names = "default"; 65}; 66 67&gpio0 { 68 status = "okay"; 69}; 70 71&gpio1 { 72 status = "okay"; 73}; 74 75&i2c0 { 76 status = "okay"; 77 clock-frequency = <I2C_BITRATE_STANDARD>; 78 sda-gpios = <&gpio0 21 GPIO_OPEN_DRAIN>; 79 scl-gpios = <&gpio0 22 GPIO_OPEN_DRAIN>; 80 pinctrl-0 = <&i2c0_default>; 81 pinctrl-names = "default"; 82}; 83 84&spi2 { 85 #address-cells = <1>; 86 #size-cells = <0>; 87 status = "okay"; 88 pinctrl-0 = <&spim2_default>; 89 pinctrl-names = "default"; 90}; 91 92&spi3 { 93 #address-cells = <1>; 94 #size-cells = <0>; 95 status = "okay"; 96 pinctrl-0 = <&spim3_default>; 97 pinctrl-names = "default"; 98}; 99 100&timer0 { 101 status = "disabled"; 102}; 103 104&timer1 { 105 status = "disabled"; 106}; 107 108&timer2 { 109 status = "disabled"; 110}; 111 112&timer3 { 113 status = "disabled"; 114}; 115 116&trng0 { 117 status = "okay"; 118}; 119 120&flash0 { 121 status = "okay"; 122 partitions { 123 compatible = "fixed-partitions"; 124 #address-cells = <1>; 125 #size-cells = <1>; 126 127 /* Reserve 60kB for the bootloader */ 128 boot_partition: partition@1000 { 129 label = "mcuboot"; 130 reg = <0x00001000 0x0000F000>; 131 read-only; 132 }; 133 134 /* Reserve 1024kB for the application in slot 0 */ 135 slot0_partition: partition@10000 { 136 label = "image-0"; 137 reg = <0x00010000 0x00100000>; 138 }; 139 140 /* Reserve 1024kB for the application in slot 1 */ 141 slot1_partition: partition@110000 { 142 label = "image-1"; 143 reg = <0x00110000 0x00100000>; 144 }; 145 146 /* Reserve 256kB for the scratch partition */ 147 scratch_partition: partition@210000 { 148 label = "image-scratch"; 149 reg = <0x00210000 0x00040000>; 150 }; 151 152 storage_partition: partition@250000 { 153 label = "storage"; 154 reg = <0x00250000 0x00006000>; 155 }; 156 }; 157}; 158