From 9e55df4eb3bba769e9c9d4eb0aa1c3d7500b58e8 Mon Sep 17 00:00:00 2001 From: wangjianyu3 Date: Mon, 16 Mar 2026 12:14:11 +0800 Subject: [PATCH] boards/lckfb-szpi-esp32s3: add gc0308 minimal defconfig Add a minimal GC0308 camera configuration based on nsh. Unlike the full camera config, this only enables the GC0308 DVP camera driver (I2C, PCA9557, LEDC, CAM, VIDEO) and camcap example, without ADB, SDMMC, LCD, PSRAM or other peripherals. Signed-off-by: wangjianyu3 --- .../boards/lckfb-szpi-esp32s3/index.rst | 13 ++++ .../configs/gc0308/defconfig | 62 +++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 boards/xtensa/esp32s3/lckfb-szpi-esp32s3/configs/gc0308/defconfig diff --git a/Documentation/platforms/xtensa/esp32s3/boards/lckfb-szpi-esp32s3/index.rst b/Documentation/platforms/xtensa/esp32s3/boards/lckfb-szpi-esp32s3/index.rst index 9729475fb0a..3a28c65433b 100644 --- a/Documentation/platforms/xtensa/esp32s3/boards/lckfb-szpi-esp32s3/index.rst +++ b/Documentation/platforms/xtensa/esp32s3/boards/lckfb-szpi-esp32s3/index.rst @@ -526,6 +526,19 @@ Then format and mount the SD card:: nsh> cat /mnt/sd/test.txt hello +gc0308 +------ + +Minimal NuttShell configuration with GC0308 DVP camera support only. +Based on the nsh configuration, this adds only the GC0308 image sensor +driver, ESP32-S3 CAM DVP controller, and the V4L2 video pipeline. +Console is accessible over UART0 (serial). + +You can run the configuration and compilation procedure:: + + $ ./tools/configure.sh lckfb-szpi-esp32s3:gc0308 + $ make flash -j$(nproc) ESPTOOL_PORT=/dev/ttyUSB0 + camera ------ diff --git a/boards/xtensa/esp32s3/lckfb-szpi-esp32s3/configs/gc0308/defconfig b/boards/xtensa/esp32s3/lckfb-szpi-esp32s3/configs/gc0308/defconfig new file mode 100644 index 00000000000..0917384e8bc --- /dev/null +++ b/boards/xtensa/esp32s3/lckfb-szpi-esp32s3/configs/gc0308/defconfig @@ -0,0 +1,62 @@ +# +# This file is autogenerated: PLEASE DO NOT EDIT IT. +# +# You can use "make menuconfig" to make any modifications to the installed .config file. +# You can then do "make savedefconfig" to generate a new defconfig file that includes your +# modifications. +# +# CONFIG_ARCH_LEDS is not set +# CONFIG_NSH_ARGCAT is not set +# CONFIG_NSH_CMDOPT_HEXDUMP is not set +CONFIG_ARCH="xtensa" +CONFIG_ARCH_BOARD="lckfb-szpi-esp32s3" +CONFIG_ARCH_BOARD_COMMON=y +CONFIG_ARCH_BOARD_ESP32S3_LCKFB_SZPI=y +CONFIG_ARCH_CHIP="esp32s3" +CONFIG_ARCH_CHIP_ESP32S3=y +CONFIG_ARCH_CHIP_ESP32S3WROOM1N16R8=y +CONFIG_ARCH_INTERRUPTSTACK=2048 +CONFIG_ARCH_STACKDUMP=y +CONFIG_ARCH_XTENSA=y +CONFIG_BOARD_LOOPSPERMSEC=16717 +CONFIG_BUILTIN=y +CONFIG_DEBUG_FULLOPT=y +CONFIG_DEBUG_SYMBOLS=y +CONFIG_DEV_GPIO=y +CONFIG_ESP32S3_CAM=y +CONFIG_ESP32S3_GPIO_IRQ=y +CONFIG_ESP32S3_I2C0=y +CONFIG_ESP32S3_UART0=y +CONFIG_ESPRESSIF_LEDC=y +CONFIG_ESPRESSIF_LEDC_CHANNEL0_PIN=42 +CONFIG_ESPRESSIF_LEDC_TIMER0=y +CONFIG_FS_PROCFS=y +CONFIG_FS_TMPFS=y +CONFIG_GPIO_LOWER_HALF=y +CONFIG_HAVE_CXX=y +CONFIG_HAVE_CXXINITIALIZE=y +CONFIG_IDLETHREAD_STACKSIZE=3072 +CONFIG_INIT_ENTRYPOINT="nsh_main" +CONFIG_INIT_STACKSIZE=3072 +CONFIG_INTELHEX_BINARY=y +CONFIG_IOEXPANDER=y +CONFIG_IOEXPANDER_PCA9557=y +CONFIG_LINE_MAX=64 +CONFIG_NSH_ARCHINIT=y +CONFIG_NSH_BUILTIN_APPS=y +CONFIG_NSH_FILEIOSIZE=512 +CONFIG_NSH_READLINE=y +CONFIG_PREALLOC_TIMERS=4 +CONFIG_RAM_SIZE=114688 +CONFIG_RAM_START=0x20000000 +CONFIG_RR_INTERVAL=200 +CONFIG_SCHED_WAITPID=y +CONFIG_START_DAY=6 +CONFIG_START_MONTH=12 +CONFIG_START_YEAR=2011 +CONFIG_SYSLOG_BUFFER=y +CONFIG_SYSTEM_NSH=y +CONFIG_UART0_SERIAL_CONSOLE=y +CONFIG_VIDEO=y +CONFIG_VIDEO_GC0308=y +CONFIG_VIDEO_STREAM=y