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

New boards and shields #164

Merged
merged 16 commits into from
Nov 27, 2023
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
4 changes: 4 additions & 0 deletions boards/arm/waveshare_rp2040/Kconfig.board
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ config BOARD_WAVESHARE_RP2040_LCD_0_96
config BOARD_WAVESHARE_RP2040_PLUS
bool "Waveshare RP2040-Plus Board"
depends on SOC_RP2040

config BOARD_WAVESHARE_RP2040_GEEK
bool "Waveshare RP2040-Geek Board"
depends on SOC_RP2040
16 changes: 16 additions & 0 deletions boards/arm/waveshare_rp2040/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ config BOARD
default "waveshare_rp2040_eth" if BOARD_WAVESHARE_RP2040_ETH
default "waveshare_rp2040_lcd_0_96" if BOARD_WAVESHARE_RP2040_LCD_0_96
default "waveshare_rp2040_plus" if BOARD_WAVESHARE_RP2040_PLUS
default "waveshare_rp2040_geek" if BOARD_WAVESHARE_RP2040_GEEK
depends on BOARD_WAVESHARE_RP2040

config BOARD_WAVESHARE_RP2040_MINI
Expand All @@ -29,12 +30,14 @@ config BOARD_WAVESHARE_RP2040_PICO
config BOARD_WAVESHARE_RP2040_LCD
bool
default y if BOARD_WAVESHARE_RP2040_LCD_0_96
default y if BOARD_WAVESHARE_RP2040_GEEK
default n

config BOARD_WAVESHARE_RP2040
bool
default y if BOARD_WAVESHARE_RP2040_MINI
default y if BOARD_WAVESHARE_RP2040_PICO
default y if BOARD_WAVESHARE_RP2040_GEEK
default n

config RP2_FLASH_W25Q080
Expand All @@ -49,6 +52,10 @@ config GPIO
default y
depends on DT_HAS_RASPBERRYPI_PICO_GPIO_ENABLED

config REGULATOR
default y
depends on DT_HAS_REGULATOR_FIXED_ENABLED

choice WS2812_STRIP_DRIVER
default WS2812_STRIP_RPI_PICO_PIO
depends on DT_HAS_WORLDSEMI_WS2812_RPI_PICO_PIO_ENABLED
Expand All @@ -58,17 +65,25 @@ config I2C_DW_CLOCK_SPEED
default 125
depends on I2C_DW && BOARD_WAVESHARE_RP2040

choice ST7789V_PIXEL_FORMAT
default ST7789V_RGB565 if BOARD_WAVESHARE_RP2040_GEEK
depends on BOARD_WAVESHARE_RP2040_LCD && DISPLAY
endchoice

config LV_Z_BITS_PER_PIXEL
default 16 if BOARD_WAVESHARE_RP2040_LCD_0_96
default 16 if BOARD_WAVESHARE_RP2040_GEEK
depends on BOARD_WAVESHARE_RP2040_LCD && DISPLAY && LVGL

choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_16 if BOARD_WAVESHARE_RP2040_LCD_0_96
default LV_COLOR_DEPTH_16 if BOARD_WAVESHARE_RP2040_GEEK
depends on BOARD_WAVESHARE_RP2040_LCD && DISPLAY && LVGL
endchoice

config LV_COLOR_16_SWAP
default y if BOARD_WAVESHARE_RP2040_LCD_0_96
default y if BOARD_WAVESHARE_RP2040_GEEK
depends on BOARD_WAVESHARE_RP2040_LCD && DISPLAY && LVGL

config USB_SELF_POWERED
Expand All @@ -83,6 +98,7 @@ config USB_MAX_POWER
default 240 if BOARD_WAVESHARE_RP2040_ETH # 480mA
default 250 if BOARD_WAVESHARE_RP2040_LCD_0_96 # 500mA
default 250 if BOARD_WAVESHARE_RP2040_PLUS # 500mA
default 100 if BOARD_WAVESHARE_RP2040_GEEK # 200mA
depends on USB_DEVICE_STACK && BOARD_WAVESHARE_RP2040

# Workaround for not being able to have commas in macro arguments
Expand Down
Loading
Loading