feat(platform): integrate st7789 boot test display and board gpio mapping
This commit is contained in:
@@ -181,12 +181,12 @@ config TQ_VOICE_I2C_PORT
|
||||
config TQ_VOICE_I2C_SDA_PIN
|
||||
int "Voice I2C SDA GPIO"
|
||||
range 0 48
|
||||
default 4
|
||||
default 6
|
||||
|
||||
config TQ_VOICE_I2C_SCL_PIN
|
||||
int "Voice I2C SCL GPIO"
|
||||
range 0 48
|
||||
default 5
|
||||
default 7
|
||||
|
||||
config TQ_VOICE_CODEC_ADDR
|
||||
int "ES8311 I2C address"
|
||||
@@ -201,12 +201,12 @@ config TQ_VOICE_I2S_PORT
|
||||
config TQ_VOICE_I2S_MCLK_PIN
|
||||
int "Voice I2S MCLK GPIO"
|
||||
range -1 48
|
||||
default 39
|
||||
default 38
|
||||
|
||||
config TQ_VOICE_I2S_BCLK_PIN
|
||||
int "Voice I2S BCLK GPIO"
|
||||
range 0 48
|
||||
default 40
|
||||
default 39
|
||||
|
||||
config TQ_VOICE_I2S_WS_PIN
|
||||
int "Voice I2S WS GPIO"
|
||||
@@ -216,18 +216,233 @@ config TQ_VOICE_I2S_WS_PIN
|
||||
config TQ_VOICE_I2S_DOUT_PIN
|
||||
int "Voice I2S DOUT GPIO"
|
||||
range 0 48
|
||||
default 38
|
||||
default 42
|
||||
|
||||
config TQ_VOICE_I2S_DIN_PIN
|
||||
int "Voice I2S DIN GPIO"
|
||||
range 0 48
|
||||
default 42
|
||||
default 40
|
||||
|
||||
config TQ_VOICE_CODEC_PA_PIN
|
||||
int "ES8311 PA control GPIO"
|
||||
range -1 48
|
||||
default 20
|
||||
|
||||
menu "Board GPIO Mapping (ESP32-S3)"
|
||||
|
||||
config TQ_POWER_HOLD_PIN
|
||||
int "Power hold GPIO (drive high to keep power)"
|
||||
range -1 48
|
||||
default 1
|
||||
|
||||
config TQ_POWER_KEY_PIN
|
||||
int "Power key GPIO"
|
||||
range -1 48
|
||||
default 47
|
||||
|
||||
config TQ_LED_R_PIN
|
||||
int "LED_R GPIO"
|
||||
range -1 48
|
||||
default 2
|
||||
|
||||
config TQ_LED_G_PIN
|
||||
int "LED_G GPIO"
|
||||
range -1 48
|
||||
default 21
|
||||
|
||||
config TQ_KEY_PRINT_PIN
|
||||
int "Print confirm key / 7.2V boost control GPIO"
|
||||
range -1 48
|
||||
default 0
|
||||
|
||||
config TQ_KEY_PRINT_BOOST_ENABLE_ON_BOOT
|
||||
bool "Use KEY_PRINT pin as 7.2V boost enable on boot"
|
||||
default y
|
||||
|
||||
config TQ_KEY_PRINT_BOOST_ACTIVE_HIGH
|
||||
bool "KEY_PRINT boost enable level is high"
|
||||
default y
|
||||
depends on TQ_KEY_PRINT_BOOST_ENABLE_ON_BOOT
|
||||
|
||||
config TQ_MIC_KEY_PIN
|
||||
int "Mic key GPIO"
|
||||
range -1 48
|
||||
default 14
|
||||
|
||||
config TQ_BATTERY_ADC_PIN
|
||||
int "Battery ADC detect GPIO"
|
||||
range -1 48
|
||||
default 15
|
||||
|
||||
config TQ_NTC_ADC_PIN
|
||||
int "NTC ADC GPIO"
|
||||
range -1 48
|
||||
default 18
|
||||
|
||||
config TQ_PRINT_STB_56_PIN
|
||||
int "Printer STB5_6 GPIO"
|
||||
range -1 48
|
||||
default 4
|
||||
|
||||
config TQ_PRINT_STB_34_PIN
|
||||
int "Printer STB3_4 GPIO"
|
||||
range -1 48
|
||||
default 5
|
||||
|
||||
config TQ_PRINT_STB_12_PIN
|
||||
int "Printer STB1_2 GPIO"
|
||||
range -1 48
|
||||
default 16
|
||||
|
||||
config TQ_PRINT_PAPER_PIN
|
||||
int "Printer paper detect GPIO"
|
||||
range -1 48
|
||||
default 17
|
||||
|
||||
config TQ_PRINT_OUTA_P_PIN
|
||||
int "Printer OUTA+ GPIO"
|
||||
range -1 48
|
||||
default 8
|
||||
|
||||
config TQ_PRINT_OUTA_N_PIN
|
||||
int "Printer OUTA- GPIO"
|
||||
range -1 48
|
||||
default 19
|
||||
|
||||
config TQ_PRINT_OUTB_P_PIN
|
||||
int "Printer OUTB+ GPIO"
|
||||
range -1 48
|
||||
default 3
|
||||
|
||||
config TQ_PRINT_OUTB_N_PIN
|
||||
int "Printer OUTB- GPIO"
|
||||
range -1 48
|
||||
default 46
|
||||
|
||||
config TQ_PRINT_LAT_PIN
|
||||
int "Printer LAT GPIO"
|
||||
range -1 48
|
||||
default 45
|
||||
|
||||
config TQ_SPI_SHARED_MOSI_PIN
|
||||
int "Printer/Screen shared MOSI GPIO"
|
||||
range -1 48
|
||||
default 9
|
||||
|
||||
config TQ_PRINTER_MISO_PIN
|
||||
int "Printer MISO GPIO"
|
||||
range -1 48
|
||||
default 10
|
||||
|
||||
config TQ_SPI_SHARED_CLK_PIN
|
||||
int "Printer/Screen shared CLK GPIO"
|
||||
range -1 48
|
||||
default 11
|
||||
|
||||
config TQ_SCREEN_DC_PIN
|
||||
int "Screen DC GPIO"
|
||||
range -1 48
|
||||
default 12
|
||||
|
||||
config TQ_SCREEN_CS_PIN
|
||||
int "Screen CS GPIO"
|
||||
range -1 48
|
||||
default 13
|
||||
|
||||
config TQ_SCREEN_BACKLIGHT_PIN
|
||||
int "Screen backlight GPIO (active high)"
|
||||
range -1 48
|
||||
default 48
|
||||
|
||||
endmenu
|
||||
|
||||
menu "ST7789 Screen"
|
||||
|
||||
config TQ_SCREEN_ENABLE
|
||||
bool "Enable ST7789 screen driver"
|
||||
default y
|
||||
depends on SOC_GPSPI_SUPPORTED
|
||||
|
||||
config TQ_SCREEN_TEST_PATTERN_ON_BOOT
|
||||
bool "Show ST7789 test pattern at boot"
|
||||
default y
|
||||
depends on TQ_SCREEN_ENABLE
|
||||
|
||||
config TQ_SCREEN_PIXEL_CLOCK_HZ
|
||||
int "ST7789 SPI pixel clock (Hz)"
|
||||
range 1000000 80000000
|
||||
default 10000000
|
||||
depends on TQ_SCREEN_ENABLE
|
||||
|
||||
config TQ_SCREEN_H_RES
|
||||
int "ST7789 horizontal resolution"
|
||||
range 64 480
|
||||
default 240
|
||||
depends on TQ_SCREEN_ENABLE
|
||||
|
||||
config TQ_SCREEN_V_RES
|
||||
int "ST7789 vertical resolution"
|
||||
range 64 480
|
||||
default 240
|
||||
depends on TQ_SCREEN_ENABLE
|
||||
|
||||
config TQ_SCREEN_DRAW_LINES
|
||||
int "ST7789 draw chunk lines"
|
||||
range 1 120
|
||||
default 20
|
||||
depends on TQ_SCREEN_ENABLE
|
||||
|
||||
config TQ_SCREEN_SPI_MODE
|
||||
int "ST7789 SPI mode (0-3)"
|
||||
range 0 3
|
||||
default 0
|
||||
depends on TQ_SCREEN_ENABLE
|
||||
|
||||
config TQ_SCREEN_COLOR_ORDER_BGR
|
||||
bool "ST7789 color order is BGR"
|
||||
default y
|
||||
depends on TQ_SCREEN_ENABLE
|
||||
|
||||
config TQ_SCREEN_BACKLIGHT_ACTIVE_HIGH
|
||||
bool "ST7789 backlight active-high"
|
||||
default y
|
||||
depends on TQ_SCREEN_ENABLE
|
||||
|
||||
config TQ_SCREEN_MIRROR_X
|
||||
bool "ST7789 mirror X axis"
|
||||
default n
|
||||
depends on TQ_SCREEN_ENABLE
|
||||
|
||||
config TQ_SCREEN_MIRROR_Y
|
||||
bool "ST7789 mirror Y axis"
|
||||
default n
|
||||
depends on TQ_SCREEN_ENABLE
|
||||
|
||||
config TQ_SCREEN_SWAP_XY
|
||||
bool "ST7789 swap X/Y axis"
|
||||
default n
|
||||
depends on TQ_SCREEN_ENABLE
|
||||
|
||||
config TQ_SCREEN_X_GAP
|
||||
int "ST7789 X gap"
|
||||
range 0 480
|
||||
default 0
|
||||
depends on TQ_SCREEN_ENABLE
|
||||
|
||||
config TQ_SCREEN_Y_GAP
|
||||
int "ST7789 Y gap"
|
||||
range 0 480
|
||||
default 0
|
||||
depends on TQ_SCREEN_ENABLE
|
||||
|
||||
config TQ_SCREEN_RESET_PIN
|
||||
int "ST7789 reset GPIO (-1 if not connected)"
|
||||
range -1 48
|
||||
default -1
|
||||
depends on TQ_SCREEN_ENABLE
|
||||
|
||||
endmenu
|
||||
|
||||
config TQ_VOICE_CODEC_PA_PIN_REVERSED
|
||||
bool "ES8311 PA enable level is active-low"
|
||||
default n
|
||||
|
||||
Reference in New Issue
Block a user