feat: support ESP32-S3 new board bring-up

This commit is contained in:
2026-08-03 14:06:06 +08:00
parent 404389f1ea
commit d5409ea4e3
16 changed files with 297 additions and 150 deletions
+33 -30
View File
@@ -357,11 +357,11 @@ menu "Example Configuration"
config TQ_SCREEN_RESET_PIN
int "Panel reset GPIO (-1 to disable hardware reset)"
default 3
default 17
range -1 48
help
This board maps LCD_RST to IO3. Use -1 only when panel reset pin
is physically not connected.
The 2026-07-24 board maps the ST7789P3 RES signal to IO17.
Use -1 only when panel reset is physically not connected.
config TQ_SCREEN_SPI_MISO_GPIO
int "LCD SPI MISO GPIO (-1 to disable)"
@@ -372,35 +372,35 @@ menu "Example Configuration"
config TQ_SCREEN_SPI_MOSI_GPIO
int "LCD SPI MOSI GPIO"
default 17
default 18
range 0 48
help
LCD SPI MOSI GPIO.
config TQ_SCREEN_SPI_CLK_GPIO
int "LCD SPI clock GPIO"
default 18
default 8
range 0 48
help
LCD SPI clock GPIO.
config TQ_SCREEN_SPI_CS_GPIO
int "LCD SPI CS GPIO"
default 6
default 15
range 0 48
help
LCD SPI chip-select GPIO.
config TQ_SCREEN_DC_GPIO
int "LCD D/C GPIO"
default 7
default 16
range 0 48
help
LCD data/command GPIO.
config TQ_SCREEN_BACKLIGHT_GPIO
int "LCD backlight GPIO"
default 9
default 7
range 0 48
help
LCD backlight control GPIO.
@@ -435,11 +435,11 @@ menu "Example Configuration"
config TQ_SLOT_SWITCH_GPIO
int "Slot feature switch GPIO"
default 45
default 13
range 0 48
help
GPIO used for the slot machine feature switch.
Default from docs/gpio-map.md (SW_2 on IO45).
Default from docs/gpio-map.md (SW2 on IO13).
config TQ_SLOT_SWITCH_ACTIVE_LEVEL
int "Slot feature switch active level"
@@ -480,43 +480,43 @@ menu "Example Configuration"
config TQ_BOOT_TURNTABLE_CALIBRATION_ENABLE
bool "Run turntable calibration at boot"
default n
default y
help
Keep disabled for staged module verification. The calibration
API remains available for key, voice, console, or system-event
triggers after boot.
Run a bounded motor and KEY1/SW1 test before Wi-Fi bootstrap.
The motor searches for the active-low switch and stops after
the configured calibration sweep if the switch is not pressed.
config TQ_STEPPER_IN1_GPIO
int "Turntable stepper IN1 GPIO"
default 13
default 45
range 0 48
help
GPIO connected to the turntable stepper driver IN1 input.
config TQ_STEPPER_IN2_GPIO
int "Turntable stepper IN2 GPIO"
default 14
default 48
range 0 48
help
GPIO connected to the turntable stepper driver IN2 input.
config TQ_STEPPER_IN3_GPIO
int "Turntable stepper IN3 GPIO"
default 21
default 47
range 0 48
help
GPIO connected to the turntable stepper driver IN3 input.
config TQ_STEPPER_IN4_GPIO
int "Turntable stepper IN4 GPIO"
default 47
default 21
range 0 48
help
GPIO connected to the turntable stepper driver IN4 input.
config TQ_CALIBRATION_SWITCH_GPIO
int "Direction calibration switch GPIO"
default 48
default 12
range 0 48
help
GPIO used for the turntable direction calibration switch.
@@ -546,10 +546,11 @@ menu "Example Configuration"
config TQ_POWER_HOLD_GPIO
int "Power hold GPIO (-1 to disable)"
default -1
default 9
range -1 48
help
GPIO used to keep board power enabled after boot. Set to -1
GPIO used to keep board power enabled after boot. The
2026-07-24 board maps the Power net to IO9. Set to -1 only
when no external power-hold circuit is connected.
config TQ_POWER_HOLD_ACTIVE_LEVEL
@@ -840,31 +841,33 @@ menu "Example Configuration"
config MULTIMODAL_PTT_BUTTON_GPIO
int "Push-to-talk button GPIO"
default 15
default 3
range 0 48
help
GPIO used for the push-to-talk button.
Default from docs/gpio-map.md (function key K2 on GPIO15).
Default from docs/gpio-map.md (TTP223 touch output on IO3).
config MULTIMODAL_PTT_BUTTON_ACTIVE_LEVEL
int "Push-to-talk button active level"
default 0
default 1
range 0 1
help
Logic level that means the push-to-talk button is pressed.
Default from docs/gpio-map.md (function key K2 is active-low).
Default from docs/gpio-map.md (TTP223 output is active-high).
config MULTIMODAL_PTT_BUTTON_PULLUP
bool "Enable push-to-talk button pull-up"
default y
default n
help
Enable the internal pull-up for the active-low push-to-talk button.
The TTP223 provides a driven digital output, so no internal
pull-up is required on the default board.
config MULTIMODAL_PTT_BUTTON_PULLDOWN
bool "Enable push-to-talk button pull-down"
default n
help
Leave disabled for the default active-low push-to-talk wiring.
The TTP223 provides a driven digital output, so no internal
pull-down is required on the default board.
config MULTIMODAL_HEARTBEAT_INTERVAL_MS
int "Heartbeat interval (ms)"
@@ -1177,9 +1180,9 @@ menu "Example Configuration"
config MULTIMODAL_AUDIO_PA_GPIO
int "PA enable GPIO (-1 to disable)"
default 12
default 11
help
Default from docs/gpio-map.md (PA_CTRL on IO12).
Default from docs/gpio-map.md (PA_CTRL on IO11).
config MULTIMODAL_AUDIO_I2S_DMA_DESC_NUM
int "I2S DMA descriptor count"