1/* 2 * Copyright (c) 2022 Grant Ramsay <grant.ramsay@hotmail.com> 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_ethernet_kit-pinctrl.dtsi" 10 11/ { 12 model = "esp32"; 13 compatible = "espressif,esp32"; 14 15 aliases { 16 uart-0 = &uart0; 17 watchdog0 = &wdt0; 18 }; 19 20 chosen { 21 zephyr,sram = &sram0; 22 zephyr,console = &uart0; 23 zephyr,shell-uart = &uart0; 24 zephyr,flash = &flash0; 25 }; 26}; 27 28&cpu0 { 29 clock-frequency = <ESP32_CLK_CPU_240M>; 30}; 31 32&cpu1 { 33 clock-frequency = <ESP32_CLK_CPU_240M>; 34}; 35 36&uart0 { 37 status = "okay"; 38 current-speed = <115200>; 39 pinctrl-0 = <&uart0_default>; 40 pinctrl-names = "default"; 41}; 42 43&gpio0 { 44 status = "okay"; 45}; 46 47&gpio1 { 48 status = "okay"; 49}; 50 51&spi2 { 52 #address-cells = <1>; 53 #size-cells = <0>; 54 status = "okay"; 55 pinctrl-0 = <&spim2_default>; 56 pinctrl-names = "default"; 57}; 58 59&timer0 { 60 status = "okay"; 61}; 62 63&timer1 { 64 status = "okay"; 65}; 66 67&timer2 { 68 status = "okay"; 69}; 70 71&timer3 { 72 status = "okay"; 73}; 74 75&trng0 { 76 status = "okay"; 77}; 78 79&flash0 { 80 status = "okay"; 81 partitions { 82 compatible = "fixed-partitions"; 83 #address-cells = <1>; 84 #size-cells = <1>; 85 86 /* Reserve 60kB for the bootloader */ 87 boot_partition: partition@1000 { 88 label = "mcuboot"; 89 reg = <0x00001000 0x0000F000>; 90 read-only; 91 }; 92 93 /* Reserve 1024kB for the application in slot 0 */ 94 slot0_partition: partition@10000 { 95 label = "image-0"; 96 reg = <0x00010000 0x00100000>; 97 }; 98 99 /* Reserve 1024kB for the application in slot 1 */ 100 slot1_partition: partition@110000 { 101 label = "image-1"; 102 reg = <0x00110000 0x00100000>; 103 }; 104 105 /* Reserve 256kB for the scratch partition */ 106 scratch_partition: partition@210000 { 107 label = "image-scratch"; 108 reg = <0x00210000 0x00040000>; 109 }; 110 111 storage_partition: partition@250000 { 112 label = "storage"; 113 reg = <0x00250000 0x00006000>; 114 }; 115 }; 116}; 117 118&mdio { 119 pinctrl-0 = <&mdio_default>; 120 pinctrl-names = "default"; 121 122 phy: ethernet-phy@1 { 123 compatible = "ethernet-phy"; 124 status = "disabled"; 125 reg = <1>; 126 }; 127}; 128 129ð { 130 phy-handle = <&phy>; 131}; 132