Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esp32 boardconfigs for supported qmsk-led/esp32 boards #98

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions projects/esp32/boardconfig/qmsk-esp32-lan87xx-v1
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
CONFIG_I2C_MASTER_ENABLED=y
CONFIG_I2C_MASTER_SDA_IO_NUM=15
CONFIG_I2C_MASTER_SCL_IO_NUM=2
CONFIG_I2C_MASTER_CLK_SPEED=400000

CONFIG_I2C_GPIO_ENABLED=y
CONFIG_I2C_GPIO_TYPE_PCA9554=y
CONFIG_I2C_GPIO_ADDR_PCA9554=0
CONFIG_I2C_GPIO_INT_PIN=36

# qmsk-front-panel
CONFIG_STATUS_LEDS_GPIO_TYPE_I2C_GPIO_0=y

CONFIG_STATUS_LEDS_USER_MODE=y
CONFIG_STATUS_LEDS_USER_ENABLED=y
CONFIG_STATUS_LEDS_USER_GPIO_NUM=5
CONFIG_STATUS_LEDS_USER_GPIO_INVERTED=y

CONFIG_STATUS_LEDS_FLASH_MODE_ACTIVITY=y
CONFIG_STATUS_LEDS_FLASH_ENABLED=y
CONFIG_STATUS_LEDS_FLASH_GPIO_NUM=4
CONFIG_STATUS_LEDS_FLASH_GPIO_INVERTED=y

CONFIG_STATUS_LEDS_ALERT_MODE=y
CONFIG_STATUS_LEDS_ALERT_ENABLED=y
CONFIG_STATUS_LEDS_ALERT_GPIO_NUM=3
CONFIG_STATUS_LEDS_ALERT_GPIO_INVERTED=y

CONFIG_STATUS_LEDS_CONFIG_MODE=y
CONFIG_STATUS_LEDS_CONFIG_ENABLED=y
CONFIG_STATUS_LEDS_CONFIG_GPIO_NUM=6
CONFIG_STATUS_LEDS_CONFIG_GPIO_INVERTED=y

CONFIG_STATUS_LEDS_TEST_MODE=y
CONFIG_STATUS_LEDS_TEST_ENABLED=y
CONFIG_STATUS_LEDS_TEST_GPIO_NUM=7
CONFIG_STATUS_LEDS_TEST_GPIO_INVERTED=y

# qmsk-esp32-lan87xx
CONFIG_ETH_BOARD_QMSK_ESP32_LAN87XX=y
CONFIG_ETH_MODE_DEFAULT_AUTOCONF=y
CONFIG_ETH_IP_DEFAULT="2.0.0.0"
CONFIG_ETH_NETMASK_DEFAULT="255.0.0.0"
CONFIG_ETH_GW_DEFAULT="0.0.0.0"

# qmsk-artnet
CONFIG_ARTNET_ENABLED=y
CONFIG_ARTNET_OUTPUTS_MAX=20

# tuning for up to 20 artnet universes
CONFIG_ETH_DMA_RX_BUFFER_NUM=24
CONFIG_LWIP_UDP_RECVMBOX_SIZE=24
52 changes: 52 additions & 0 deletions projects/esp32/boardconfig/qmsk-esp32-lan87xx-v2
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
CONFIG_I2C_MASTER_ENABLED=y
CONFIG_I2C_MASTER_SDA_IO_NUM=15
CONFIG_I2C_MASTER_SCL_IO_NUM=2
CONFIG_I2C_MASTER_CLK_SPEED=400000

CONFIG_I2C_GPIO_ENABLED=y
CONFIG_I2C_GPIO_TYPE_PCA9554=y
CONFIG_I2C_GPIO_ADDR_PCA9554=0
CONFIG_I2C_GPIO_INT_PIN=36

# qmsk-front-panel
CONFIG_STATUS_LEDS_GPIO_TYPE_I2C_GPIO_0=y

CONFIG_STATUS_LEDS_USER_MODE=y
CONFIG_STATUS_LEDS_USER_ENABLED=y
CONFIG_STATUS_LEDS_USER_GPIO_NUM=2
CONFIG_STATUS_LEDS_USER_GPIO_INVERTED=y

CONFIG_STATUS_LEDS_FLASH_MODE_ACTIVITY=y
CONFIG_STATUS_LEDS_FLASH_ENABLED=y
CONFIG_STATUS_LEDS_FLASH_GPIO_NUM=4
CONFIG_STATUS_LEDS_FLASH_GPIO_INVERTED=y

CONFIG_STATUS_LEDS_ALERT_MODE=y
CONFIG_STATUS_LEDS_ALERT_ENABLED=y
CONFIG_STATUS_LEDS_ALERT_GPIO_NUM=6
CONFIG_STATUS_LEDS_ALERT_GPIO_INVERTED=y

CONFIG_STATUS_LEDS_CONFIG_MODE=y
CONFIG_STATUS_LEDS_CONFIG_ENABLED=y
CONFIG_STATUS_LEDS_CONFIG_GPIO_NUM=3
CONFIG_STATUS_LEDS_CONFIG_GPIO_INVERTED=y

CONFIG_STATUS_LEDS_TEST_MODE=y
CONFIG_STATUS_LEDS_TEST_ENABLED=y
CONFIG_STATUS_LEDS_TEST_GPIO_NUM=5
CONFIG_STATUS_LEDS_TEST_GPIO_INVERTED=y

# qmsk-esp32-lan87xx
CONFIG_ETH_BOARD_QMSK_ESP32_LAN87XX=y
CONFIG_ETH_MODE_DEFAULT_AUTOCONF=y
CONFIG_ETH_IP_DEFAULT="2.0.0.0"
CONFIG_ETH_NETMASK_DEFAULT="255.0.0.0"
CONFIG_ETH_GW_DEFAULT="0.0.0.0"

# qmsk-artnet
CONFIG_ARTNET_ENABLED=y
CONFIG_ARTNET_OUTPUTS_MAX=20

# tuning for up to 20 artnet universes
CONFIG_ETH_DMA_RX_BUFFER_NUM=24
CONFIG_LWIP_UDP_RECVMBOX_SIZE=24
62 changes: 62 additions & 0 deletions projects/esp32/boardconfig/qmsk-esp32-lan87xx-v3
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# 8MB flash in 80Mhz qio mode
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y

CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-8M.csv"
CONFIG_PARTITION_TABLE_FILENAME="partitions-8M.csv"

# i2c
CONFIG_I2C_MASTER_ENABLED=y
CONFIG_I2C_MASTER_SDA_IO_NUM=4
CONFIG_I2C_MASTER_SCL_IO_NUM=5
CONFIG_I2C_MASTER_CLK_SPEED=400000

CONFIG_I2C_GPIO_ENABLED=y
CONFIG_I2C_GPIO_TYPE_PCA9554=y
CONFIG_I2C_GPIO_ADDR_PCA9554=0
CONFIG_I2C_GPIO_INT_PIN=36

# qmsk-front-panel
CONFIG_STATUS_LEDS_GPIO_TYPE_I2C_GPIO_0=y

CONFIG_STATUS_LEDS_USER_MODE=y
CONFIG_STATUS_LEDS_USER_ENABLED=y
CONFIG_STATUS_LEDS_USER_GPIO_NUM=1
CONFIG_STATUS_LEDS_USER_GPIO_INVERTED=y

CONFIG_STATUS_LEDS_FLASH_MODE_ACTIVITY=y
CONFIG_STATUS_LEDS_FLASH_ENABLED=y
CONFIG_STATUS_LEDS_FLASH_GPIO_NUM=2
CONFIG_STATUS_LEDS_FLASH_GPIO_INVERTED=y

CONFIG_STATUS_LEDS_ALERT_MODE=y
CONFIG_STATUS_LEDS_ALERT_ENABLED=y
CONFIG_STATUS_LEDS_ALERT_GPIO_NUM=4
CONFIG_STATUS_LEDS_ALERT_GPIO_INVERTED=y

CONFIG_STATUS_LEDS_CONFIG_MODE=y
CONFIG_STATUS_LEDS_CONFIG_ENABLED=y
CONFIG_STATUS_LEDS_CONFIG_GPIO_NUM=0
CONFIG_STATUS_LEDS_CONFIG_GPIO_INVERTED=y

CONFIG_STATUS_LEDS_TEST_MODE=y
CONFIG_STATUS_LEDS_TEST_ENABLED=y
CONFIG_STATUS_LEDS_TEST_GPIO_NUM=3
CONFIG_STATUS_LEDS_TEST_GPIO_INVERTED=y

# qmsk-esp32-lan87xx
CONFIG_ETH_BOARD_QMSK_ESP32_LAN87XX=y
CONFIG_ETH_MODE_DEFAULT_AUTOCONF=y
CONFIG_ETH_IP_DEFAULT="2.0.0.0"
CONFIG_ETH_NETMASK_DEFAULT="255.0.0.0"
CONFIG_ETH_GW_DEFAULT="0.0.0.0"

# qmsk-artnet
CONFIG_ARTNET_ENABLED=y
CONFIG_ARTNET_OUTPUTS_MAX=20

# tuning for up to 20 artnet universes
CONFIG_ETH_DMA_RX_BUFFER_NUM=24
CONFIG_LWIP_UDP_RECVMBOX_SIZE=24
72 changes: 72 additions & 0 deletions projects/esp32/boardconfig/qmsk-esp32-lan87xx-v3-sdspi
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# 8MB flash in 80Mhz qio mode
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y

CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-8M.csv"
CONFIG_PARTITION_TABLE_FILENAME="partitions-8M.csv"

# i2c
CONFIG_I2C_MASTER_ENABLED=y
CONFIG_I2C_MASTER_SDA_IO_NUM=4
CONFIG_I2C_MASTER_SCL_IO_NUM=5
CONFIG_I2C_MASTER_CLK_SPEED=400000

CONFIG_I2C_GPIO_ENABLED=y
CONFIG_I2C_GPIO_TYPE_PCA9554=y
CONFIG_I2C_GPIO_ADDR_PCA9554=0
CONFIG_I2C_GPIO_INT_PIN=36

# qmsk-front-panel
CONFIG_STATUS_LEDS_GPIO_TYPE_I2C_GPIO_0=y

CONFIG_STATUS_LEDS_USER_MODE=y
CONFIG_STATUS_LEDS_USER_ENABLED=y
CONFIG_STATUS_LEDS_USER_GPIO_NUM=1
CONFIG_STATUS_LEDS_USER_GPIO_INVERTED=y

CONFIG_STATUS_LEDS_FLASH_MODE_ACTIVITY=y
CONFIG_STATUS_LEDS_FLASH_ENABLED=y
CONFIG_STATUS_LEDS_FLASH_GPIO_NUM=2
CONFIG_STATUS_LEDS_FLASH_GPIO_INVERTED=y

CONFIG_STATUS_LEDS_ALERT_MODE=y
CONFIG_STATUS_LEDS_ALERT_ENABLED=y
CONFIG_STATUS_LEDS_ALERT_GPIO_NUM=4
CONFIG_STATUS_LEDS_ALERT_GPIO_INVERTED=y

CONFIG_STATUS_LEDS_CONFIG_MODE=y
CONFIG_STATUS_LEDS_CONFIG_ENABLED=y
CONFIG_STATUS_LEDS_CONFIG_GPIO_NUM=0
CONFIG_STATUS_LEDS_CONFIG_GPIO_INVERTED=y

CONFIG_STATUS_LEDS_TEST_MODE=y
CONFIG_STATUS_LEDS_TEST_ENABLED=y
CONFIG_STATUS_LEDS_TEST_GPIO_NUM=3
CONFIG_STATUS_LEDS_TEST_GPIO_INVERTED=y

# qmsk-esp32-lan87xx
CONFIG_ETH_BOARD_QMSK_ESP32_LAN87XX=y
CONFIG_ETH_MODE_DEFAULT_AUTOCONF=y
CONFIG_ETH_IP_DEFAULT="2.0.0.0"
CONFIG_ETH_NETMASK_DEFAULT="255.0.0.0"
CONFIG_ETH_GW_DEFAULT="0.0.0.0"

# qmsk-artnet
CONFIG_ARTNET_ENABLED=y

# SDSPI using default pins
CONFIG_SDCARD_SPI_HOST=y
CONFIG_SDCARD_SPI_MOSI_PIN=15
CONFIG_SDCARD_SPI_MISO_PIN=2
CONFIG_SDCARD_SPI_SCLK_PIN=14
CONFIG_SDCARD_SPI_CS_PIN=13
CONFIG_SDCARD_SPI_CD_HOST=y
CONFIG_SDCARD_SPI_CD_PIN=34
CONFIG_SDCARD_SPI_CD_POL_NC=y
CONFIG_SDCARD_SPI_MAX_FREQ_KHZ=20000
CONFIG_SDCARD_ENABLED=y

CONFIG_FATFS_LFN_HEAP=y
CONFIG_FATFS_MAX_LFN=255
83 changes: 83 additions & 0 deletions projects/esp32/boardconfig/qmsk-esp32-lan87xx-v3-usbpd
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# 8MB flash in 80Mhz qio mode
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y

CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-8M.csv"
CONFIG_PARTITION_TABLE_FILENAME="partitions-8M.csv"

# i2c
CONFIG_I2C_MASTER_ENABLED=y
CONFIG_I2C_MASTER_SDA_IO_NUM=4
CONFIG_I2C_MASTER_SCL_IO_NUM=5
CONFIG_I2C_MASTER_CLK_SPEED=400000

CONFIG_I2C_GPIO_ENABLED=y
CONFIG_I2C_GPIO_TYPE_PCA9554=y
CONFIG_I2C_GPIO_ADDR_PCA9554=0
CONFIG_I2C_GPIO_INT_PIN=36

# qmsk-front-panel
CONFIG_STATUS_LEDS_GPIO_TYPE_I2C_GPIO_0=y

CONFIG_STATUS_LEDS_USER_MODE=y
CONFIG_STATUS_LEDS_USER_ENABLED=y
CONFIG_STATUS_LEDS_USER_GPIO_NUM=1
CONFIG_STATUS_LEDS_USER_GPIO_INVERTED=y

CONFIG_STATUS_LEDS_FLASH_MODE_ACTIVITY=y
CONFIG_STATUS_LEDS_FLASH_ENABLED=y
CONFIG_STATUS_LEDS_FLASH_GPIO_NUM=2
CONFIG_STATUS_LEDS_FLASH_GPIO_INVERTED=y

CONFIG_STATUS_LEDS_ALERT_MODE=y
CONFIG_STATUS_LEDS_ALERT_ENABLED=y
CONFIG_STATUS_LEDS_ALERT_GPIO_NUM=4
CONFIG_STATUS_LEDS_ALERT_GPIO_INVERTED=y

CONFIG_STATUS_LEDS_CONFIG_MODE=y
CONFIG_STATUS_LEDS_CONFIG_ENABLED=y
CONFIG_STATUS_LEDS_CONFIG_GPIO_NUM=0
CONFIG_STATUS_LEDS_CONFIG_GPIO_INVERTED=y

CONFIG_STATUS_LEDS_TEST_MODE=y
CONFIG_STATUS_LEDS_TEST_ENABLED=y
CONFIG_STATUS_LEDS_TEST_GPIO_NUM=3
CONFIG_STATUS_LEDS_TEST_GPIO_INVERTED=y

# qmsk-esp32-lan87xx
CONFIG_ETH_BOARD_QMSK_ESP32_LAN87XX=y
CONFIG_ETH_MODE_DEFAULT_AUTOCONF=y
CONFIG_ETH_IP_DEFAULT="2.0.0.0"
CONFIG_ETH_NETMASK_DEFAULT="255.0.0.0"
CONFIG_ETH_GW_DEFAULT="0.0.0.0"

# qmsk-artnet
CONFIG_ARTNET_ENABLED=y

# qmsk-usb-pd-sink
CONFIG_USB_PD_SINK_ENABLED=y
CONFIG_USB_PD_SINK_TYPE_STUSB4500=y
CONFIG_USB_PD_SINK_TYPE_STUSB4500_I2C_ADDR=0

CONFIG_STUSB4500_SNK_PDO_NUMB=3
CONFIG_STUSB4500_V_SNK_PDO2=15000
CONFIG_STUSB4500_V_SNK_PDO3=20000
CONFIG_STUSB4500_I_SNK_PDO1=1500
CONFIG_STUSB4500_I_SNK_PDO2=1500
CONFIG_STUSB4500_I_SNK_PDO3=1000
# CONFIG_STUSB4500_VBUS_DISCH_DISABLE is not set
CONFIG_STUSB4500_USB_COMM_CAPABLE=y
# CONFIG_STUSB4500_SNK_UNCONS_POWER is not set
CONFIG_STUSB4500_REQ_SRC_CURRENT=y
# CONFIG_STUSB4500_POWER_OK_CFG_1 is not set
CONFIG_STUSB4500_POWER_OK_CFG_2=y
# CONFIG_STUSB4500_POWER_OK_CFG_3 is not set
CONFIG_STUSB4500_POWER_OK_CFG=2
CONFIG_STUSB4500_POWER_ONLY_ABOVE_5V=y
# CONFIG_STUSB4500_GPIO_CFG_SW_CTRL_GPIO is not set
CONFIG_STUSB4500_GPIO_CFG_ERROR_RECOVERY=y
# CONFIG_STUSB4500_GPIO_CFG_DEBUG is not set
# CONFIG_STUSB4500_GPIO_CFG_SINK_POWER is not set
CONFIG_STUSB4500_GPIO_CFG=1
Loading