1/* 2 * Copyright (c) 2019 Intel Corporation. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6/dts-v1/; 7 8#include <espressif/esp32.dtsi> 9 10/ { 11 model = "esp32"; 12 compatible = "espressif,esp32"; 13 14 aliases { 15 uart-0 = &uart0; 16 i2c-0 = &i2c0; 17 }; 18 19 chosen { 20 zephyr,sram = &sram0; 21 zephyr,console = &uart0; 22 zephyr,shell-uart = &uart0; 23 zephyr,flash = &flash0; 24 }; 25}; 26 27&cpu0 { 28 clock-frequency = <ESP32_CLK_CPU_240M>; 29}; 30 31&cpu1 { 32 clock-frequency = <ESP32_CLK_CPU_240M>; 33}; 34 35&uart0 { 36 status = "okay"; 37 current-speed = <115200>; 38 tx-pin = <1>; 39 rx-pin = <3>; 40 rts-pin = <22>; 41 cts-pin = <19>; 42}; 43 44&uart1 { 45 current-speed = <115200>; 46 tx-pin = <10>; 47 rx-pin = <9>; 48 rts-pin = <11>; 49 cts-pin = <6>; 50 hw-flow-control; 51}; 52 53&uart2 { 54 current-speed = <115200>; 55 tx-pin = <17>; 56 rx-pin = <16>; 57 rts-pin = <7>; 58 cts-pin = <8>; 59 hw-flow-control; 60}; 61 62&i2c0 { 63 status = "okay"; 64 clock-frequency = <I2C_BITRATE_FAST>; 65 sda-pin = <21>; 66 scl-pin = <22>; 67}; 68 69&i2c1 { 70 clock-frequency = <I2C_BITRATE_FAST>; 71 sda-pin = <18>; 72 scl-pin = <5>; 73}; 74 75&spi2 { 76 #address-cells = <1>; 77 #size-cells = <0>; 78 status = "okay"; 79 miso-pin = <12>; 80 mosi-pin = <13>; 81 sclk-pin = <14>; 82 csel-pin = <15>; 83}; 84 85&spi3 { 86 #address-cells = <1>; 87 #size-cells = <0>; 88 status = "okay"; 89 miso-pin = <19>; 90 mosi-pin = <23>; 91 sclk-pin = <18>; 92 csel-pin = <5>; 93}; 94 95&timer0 { 96 status = "okay"; 97}; 98 99&timer1 { 100 status = "okay"; 101}; 102 103&timer2 { 104 status = "okay"; 105}; 106 107&timer3 { 108 status = "okay"; 109}; 110 111&trng0 { 112 status = "okay"; 113}; 114 115&flash0 { 116 status = "okay"; 117 partitions { 118 compatible = "fixed-partitions"; 119 #address-cells = <1>; 120 #size-cells = <1>; 121 122 storage_partition: partition@9000 { 123 label = "storage"; 124 reg = <0x00009000 0x00006000>; 125 }; 126 }; 127}; 128