Skip to content

Commit 3e3d47d

Browse files
authored
feat(variants): Add variant for 4D Systems' Round ESP32-P4 MIPI display modules (#12144)
1 parent 93193a8 commit 3e3d47d

File tree

2 files changed

+221
-0
lines changed

2 files changed

+221
-0
lines changed

boards.txt

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53065,6 +53065,154 @@ esp32p4_4ds_mipi.build.defines=-DBOARD_HAS_PSRAM -D{build.board} -D{build.Displa
5306553065

5306653066
##############################################################
5306753067

53068+
esp32p4_4ds_mipi_round.name=4D Systems ESP32-P4 Round MIPI Displays
53069+
53070+
esp32p4_4ds_mipi_round.bootloader.tool=esptool_py
53071+
esp32p4_4ds_mipi_round.bootloader.tool.default=esptool_py
53072+
53073+
esp32p4_4ds_mipi_round.upload.tool=esptool_py
53074+
esp32p4_4ds_mipi_round.upload.tool.default=esptool_py
53075+
esp32p4_4ds_mipi_round.upload.tool.network=esp_ota
53076+
53077+
esp32p4_4ds_mipi_round.upload.maximum_size=1310720
53078+
esp32p4_4ds_mipi_round.upload.maximum_data_size=327680
53079+
esp32p4_4ds_mipi_round.upload.flags=
53080+
esp32p4_4ds_mipi_round.upload.extra_flags=
53081+
esp32p4_4ds_mipi_round.upload.use_1200bps_touch=false
53082+
esp32p4_4ds_mipi_round.upload.wait_for_upload_port=false
53083+
53084+
esp32p4_4ds_mipi_round.serial.disableDTR=false
53085+
esp32p4_4ds_mipi_round.serial.disableRTS=false
53086+
53087+
esp32p4_4ds_mipi_round.build.tarch=riscv32
53088+
esp32p4_4ds_mipi_round.build.target=esp
53089+
esp32p4_4ds_mipi_round.build.mcu=esp32p4
53090+
esp32p4_4ds_mipi_round.build.core=esp32
53091+
esp32p4_4ds_mipi_round.build.variant=esp32p4_4ds_mipi_round
53092+
esp32p4_4ds_mipi_round.build.board=ESP32P4_4DS_MIPI_ROUND
53093+
esp32p4_4ds_mipi_round.build.bootloader_addr=0x2000
53094+
53095+
esp32p4_4ds_mipi_round.build.usb_mode=0
53096+
esp32p4_4ds_mipi_round.build.cdc_on_boot=0
53097+
esp32p4_4ds_mipi_round.build.msc_on_boot=0
53098+
esp32p4_4ds_mipi_round.build.dfu_on_boot=0
53099+
esp32p4_4ds_mipi_round.build.f_cpu=360000000L
53100+
esp32p4_4ds_mipi_round.build.flash_size=32MB
53101+
esp32p4_4ds_mipi_round.build.flash_freq=80m
53102+
esp32p4_4ds_mipi_round.build.img_freq=80m
53103+
esp32p4_4ds_mipi_round.build.flash_mode=qio
53104+
esp32p4_4ds_mipi_round.build.boot=qio
53105+
esp32p4_4ds_mipi_round.build.partitions=app5M_fat24M_32MB
53106+
53107+
esp32p4_4ds_mipi_round.menu.JTAGAdapter.default=Disabled
53108+
esp32p4_4ds_mipi_round.menu.JTAGAdapter.default.build.copy_jtag_files=0
53109+
esp32p4_4ds_mipi_round.menu.JTAGAdapter.builtin=Integrated USB JTAG
53110+
esp32p4_4ds_mipi_round.menu.JTAGAdapter.builtin.build.openocdscript=esp32p4-builtin.cfg
53111+
esp32p4_4ds_mipi_round.menu.JTAGAdapter.builtin.build.copy_jtag_files=1
53112+
esp32p4_4ds_mipi_round.menu.JTAGAdapter.external=FTDI Adapter
53113+
esp32p4_4ds_mipi_round.menu.JTAGAdapter.external.build.openocdscript=esp32p4-ftdi.cfg
53114+
esp32p4_4ds_mipi_round.menu.JTAGAdapter.external.build.copy_jtag_files=1
53115+
esp32p4_4ds_mipi_round.menu.JTAGAdapter.bridge=ESP USB Bridge
53116+
esp32p4_4ds_mipi_round.menu.JTAGAdapter.bridge.build.openocdscript=esp32p4-bridge.cfg
53117+
esp32p4_4ds_mipi_round.menu.JTAGAdapter.bridge.build.copy_jtag_files=1
53118+
53119+
esp32p4_4ds_mipi_round.menu.USBMode.default=USB-OTG (TinyUSB)
53120+
esp32p4_4ds_mipi_round.menu.USBMode.default.build.usb_mode=0
53121+
esp32p4_4ds_mipi_round.menu.USBMode.hwcdc=Hardware CDC and JTAG
53122+
esp32p4_4ds_mipi_round.menu.USBMode.hwcdc.build.usb_mode=1
53123+
53124+
esp32p4_4ds_mipi_round.menu.CDCOnBoot.default=Disabled
53125+
esp32p4_4ds_mipi_round.menu.CDCOnBoot.default.build.cdc_on_boot=0
53126+
esp32p4_4ds_mipi_round.menu.CDCOnBoot.cdc=Enabled
53127+
esp32p4_4ds_mipi_round.menu.CDCOnBoot.cdc.build.cdc_on_boot=1
53128+
53129+
esp32p4_4ds_mipi_round.menu.MSCOnBoot.default=Disabled
53130+
esp32p4_4ds_mipi_round.menu.MSCOnBoot.default.build.msc_on_boot=0
53131+
esp32p4_4ds_mipi_round.menu.MSCOnBoot.msc=Enabled (Requires USB-OTG Mode)
53132+
esp32p4_4ds_mipi_round.menu.MSCOnBoot.msc.build.msc_on_boot=1
53133+
53134+
esp32p4_4ds_mipi_round.menu.DFUOnBoot.default=Disabled
53135+
esp32p4_4ds_mipi_round.menu.DFUOnBoot.default.build.dfu_on_boot=0
53136+
esp32p4_4ds_mipi_round.menu.DFUOnBoot.dfu=Enabled (Requires USB-OTG Mode)
53137+
esp32p4_4ds_mipi_round.menu.DFUOnBoot.dfu.build.dfu_on_boot=1
53138+
53139+
esp32p4_4ds_mipi_round.menu.UploadMode.default=UART0 / Hardware CDC
53140+
esp32p4_4ds_mipi_round.menu.UploadMode.default.upload.use_1200bps_touch=false
53141+
esp32p4_4ds_mipi_round.menu.UploadMode.default.upload.wait_for_upload_port=false
53142+
esp32p4_4ds_mipi_round.menu.UploadMode.cdc=USB-OTG CDC (TinyUSB)
53143+
esp32p4_4ds_mipi_round.menu.UploadMode.cdc.upload.use_1200bps_touch=true
53144+
esp32p4_4ds_mipi_round.menu.UploadMode.cdc.upload.wait_for_upload_port=true
53145+
53146+
esp32p4_4ds_mipi_round.menu.PartitionScheme.app5M_fat24M_32MB=32M Flash (4.8MB APP/22MB FATFS)
53147+
esp32p4_4ds_mipi_round.menu.PartitionScheme.app5M_fat24M_32MB.build.partitions=large_fat_32MB
53148+
esp32p4_4ds_mipi_round.menu.PartitionScheme.app5M_fat24M_32MB.upload.maximum_size=4718592
53149+
esp32p4_4ds_mipi_round.menu.PartitionScheme.app5M_little24M_32MB=32M Flash (4.8MB APP/22MB LittleFS)
53150+
esp32p4_4ds_mipi_round.menu.PartitionScheme.app5M_little24M_32MB.build.partitions=large_littlefs_32MB
53151+
esp32p4_4ds_mipi_round.menu.PartitionScheme.app5M_little24M_32MB.upload.maximum_size=4718592
53152+
esp32p4_4ds_mipi_round.menu.PartitionScheme.app13M_data7M_32MB=32M Flash (13MB APP/6.75MB SPIFFS)
53153+
esp32p4_4ds_mipi_round.menu.PartitionScheme.app13M_data7M_32MB.build.partitions=default_32MB
53154+
esp32p4_4ds_mipi_round.menu.PartitionScheme.app13M_data7M_32MB.upload.maximum_size=13107200
53155+
53156+
## From https://docs.espressif.com/projects/esp-idf/en/latest/esp32p4/api-reference/kconfig.html#config-esp-default-cpu-freq-mhz
53157+
esp32p4_4ds_mipi_round.menu.CPUFreq.360=360MHz
53158+
esp32p4_4ds_mipi_round.menu.CPUFreq.360.build.f_cpu=360000000L
53159+
esp32p4_4ds_mipi_round.menu.CPUFreq.40=40MHz
53160+
esp32p4_4ds_mipi_round.menu.CPUFreq.40.build.f_cpu=40000000L
53161+
53162+
esp32p4_4ds_mipi_round.menu.UploadSpeed.921600=921600
53163+
esp32p4_4ds_mipi_round.menu.UploadSpeed.921600.upload.speed=921600
53164+
esp32p4_4ds_mipi_round.menu.UploadSpeed.115200=115200
53165+
esp32p4_4ds_mipi_round.menu.UploadSpeed.115200.upload.speed=115200
53166+
esp32p4_4ds_mipi_round.menu.UploadSpeed.256000.windows=256000
53167+
esp32p4_4ds_mipi_round.menu.UploadSpeed.256000.upload.speed=256000
53168+
esp32p4_4ds_mipi_round.menu.UploadSpeed.230400.windows.upload.speed=256000
53169+
esp32p4_4ds_mipi_round.menu.UploadSpeed.230400=230400
53170+
esp32p4_4ds_mipi_round.menu.UploadSpeed.230400.upload.speed=230400
53171+
esp32p4_4ds_mipi_round.menu.UploadSpeed.460800.linux=460800
53172+
esp32p4_4ds_mipi_round.menu.UploadSpeed.460800.macosx=460800
53173+
esp32p4_4ds_mipi_round.menu.UploadSpeed.460800.upload.speed=460800
53174+
esp32p4_4ds_mipi_round.menu.UploadSpeed.512000.windows=512000
53175+
esp32p4_4ds_mipi_round.menu.UploadSpeed.512000.upload.speed=512000
53176+
53177+
esp32p4_4ds_mipi_round.menu.DebugLevel.none=None
53178+
esp32p4_4ds_mipi_round.menu.DebugLevel.none.build.code_debug=0
53179+
esp32p4_4ds_mipi_round.menu.DebugLevel.error=Error
53180+
esp32p4_4ds_mipi_round.menu.DebugLevel.error.build.code_debug=1
53181+
esp32p4_4ds_mipi_round.menu.DebugLevel.warn=Warn
53182+
esp32p4_4ds_mipi_round.menu.DebugLevel.warn.build.code_debug=2
53183+
esp32p4_4ds_mipi_round.menu.DebugLevel.info=Info
53184+
esp32p4_4ds_mipi_round.menu.DebugLevel.info.build.code_debug=3
53185+
esp32p4_4ds_mipi_round.menu.DebugLevel.debug=Debug
53186+
esp32p4_4ds_mipi_round.menu.DebugLevel.debug.build.code_debug=4
53187+
esp32p4_4ds_mipi_round.menu.DebugLevel.verbose=Verbose
53188+
esp32p4_4ds_mipi_round.menu.DebugLevel.verbose.build.code_debug=5
53189+
53190+
esp32p4_4ds_mipi_round.menu.EraseFlash.none=Disabled
53191+
esp32p4_4ds_mipi_round.menu.EraseFlash.none.upload.erase_cmd=
53192+
esp32p4_4ds_mipi_round.menu.EraseFlash.all=Enabled
53193+
esp32p4_4ds_mipi_round.menu.EraseFlash.all.upload.erase_cmd=-e
53194+
53195+
esp32p4_4ds_mipi_round.menu.DisplayModel.esp32p4_34r=ESP32-P4-34R
53196+
esp32p4_4ds_mipi_round.menu.DisplayModel.esp32p4_34r.build.DisplayModel=ESP32P4_34R
53197+
esp32p4_4ds_mipi_round.menu.DisplayModel.esp32p4_34r_clb=ESP32-P4-34R-CLB
53198+
esp32p4_4ds_mipi_round.menu.DisplayModel.esp32p4_34r_clb.build.DisplayModel=ESP32P4_34R
53199+
esp32p4_4ds_mipi_round.menu.DisplayModel.esp32p4_34rct=ESP32-P4-34RCT
53200+
esp32p4_4ds_mipi_round.menu.DisplayModel.esp32p4_34rct.build.DisplayModel=ESP32P4_34RCT
53201+
esp32p4_4ds_mipi_round.menu.DisplayModel.esp32p4_34rct_clb=ESP32-P4-34RCT-CLB
53202+
esp32p4_4ds_mipi_round.menu.DisplayModel.esp32p4_34rct_clb.build.DisplayModel=ESP32P4_34RCT
53203+
esp32p4_4ds_mipi_round.menu.DisplayModel.esp32p4_40r=ESP32-P4-40R
53204+
esp32p4_4ds_mipi_round.menu.DisplayModel.esp32p4_40r.build.DisplayModel=ESP32P4_40R
53205+
esp32p4_4ds_mipi_round.menu.DisplayModel.esp32p4_40r_clb=ESP32-P4-40R-CLB
53206+
esp32p4_4ds_mipi_round.menu.DisplayModel.esp32p4_40r_clb.build.DisplayModel=ESP32P4_40R
53207+
esp32p4_4ds_mipi_round.menu.DisplayModel.esp32p4_40rct=ESP32-P4-40RCT
53208+
esp32p4_4ds_mipi_round.menu.DisplayModel.esp32p4_40rct.build.DisplayModel=ESP32P4_40RCT
53209+
esp32p4_4ds_mipi_round.menu.DisplayModel.esp32p4_40rct_clb=ESP32-P4-40RCT-CLB
53210+
esp32p4_4ds_mipi_round.menu.DisplayModel.esp32p4_40rct_clb.build.DisplayModel=ESP32P4_40RCT
53211+
53212+
esp32p4_4ds_mipi_round.build.defines=-DBOARD_HAS_PSRAM -D{build.board} -D{build.DisplayModel}
53213+
53214+
##############################################################
53215+
5306853216
# Axiometa PIXIE M1 - Based on ESP32-S3-Mini-N4R2
5306953217
# 4MB Quad SPI Flash, 2MB Quad SPI PSRAM
5307053218

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
#include "soc/soc_caps.h"
6+
7+
// Use default UART0 pins
8+
static const uint8_t TX = 37;
9+
static const uint8_t RX = 38;
10+
11+
// Default pins (7 and 8) are used by on-board components already,
12+
// for libraries, this can be set manually
13+
// so let's keep the default for the user
14+
static const uint8_t SDA = 2; // careful, also used as T0 pin
15+
static const uint8_t SCL = 3; // careful, also used as T1 pin
16+
17+
static const uint8_t SCK = 6; // careful, also used as T2 pin
18+
static const uint8_t MOSI = 14; // careful, also used as T1 pin
19+
static const uint8_t MISO = 15; // careful, also used as T0 pin
20+
static const uint8_t SS = 16; // careful, also used as A9 pin
21+
22+
static const uint8_t A0 = 21;
23+
static const uint8_t A1 = 20;
24+
static const uint8_t A2 = 19;
25+
static const uint8_t A3 = 18;
26+
static const uint8_t A4 = 17;
27+
static const uint8_t A5 = 52;
28+
static const uint8_t A6 = 51;
29+
static const uint8_t A7 = 50;
30+
static const uint8_t A8 = 49;
31+
static const uint8_t A9 = 16; // careful, also used as SPI SS pin
32+
33+
static const uint8_t T0 = 15; // careful, also used as SPI MISO pin
34+
static const uint8_t T1 = 14; // careful, also used as SPI MOSI pin
35+
static const uint8_t T2 = 6; // careful, also used as SPI SCK pin
36+
static const uint8_t T3 = 3; // careful, also used as I2C SCL pin
37+
static const uint8_t T4 = 2; // careful, also used as I2C SDA pin
38+
39+
/* 4D Systems ESP32-P4 round board specific definitions */
40+
// LCD
41+
#define LCD_INTERFACE_MIPI
42+
43+
#define LCD_BL_IO 22
44+
#define LCD_BL_ON_LEVEL 1
45+
#define LCD_BL_OFF_LEVEL !LCD_BL_ON_LEVEL
46+
47+
#define LCD_RST_IO 23
48+
#define LCD_RST_ACTIVE_HIGH true
49+
50+
// I2C for on-board components
51+
#define I2C_SDA 7
52+
#define I2C_SCL 8
53+
54+
// Touch
55+
#define CTP_RST 4
56+
#define CTP_INT 5
57+
58+
// Audio
59+
#define AMP_CTRL 53
60+
#define I2S_DSDIN 9
61+
#define I2S_LRCK 10
62+
#define I2S_ASDOUT 11
63+
#define I2S_SCLK 12
64+
#define I2S_MCLK 13
65+
66+
// SDMMC
67+
#define BOARD_HAS_SDMMC
68+
#define BOARD_SDMMC_SLOT 0
69+
#define BOARD_SDMMC_POWER_CHANNEL 4
70+
#define BOARD_SDMMC_POWER_PIN 45
71+
#define BOARD_SDMMC_POWER_ON_LEVEL LOW
72+
73+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)