Simplify board configuration following candlelight example

- Minimal defconfig like candlelight (only GPIO and CAN)
- Remove SOC and clock configs that are auto-detected
- Change vendor from 'ews' to 'others' like candlelight
- Let Zephyr auto-configure SOC and clock settings
This commit is contained in:
Eduard Iten 2025-12-08 11:57:14 +01:00
parent 0d26789e6a
commit 05a25c3900
2 changed files with 1 additions and 16 deletions

View File

@ -1,5 +1,5 @@
board:
name: ews
vendor: ews
vendor: others
socs:
- name: stm32g0b1xx

View File

@ -1,20 +1,5 @@
# EWS Board Configuration
CONFIG_SOC_SERIES_STM32G0X=y
CONFIG_SOC_STM32G0B1XX=y
# Clock configuration - USB clock sync, no external crystal
CONFIG_CLOCK_CONTROL=y
CONFIG_CLOCK_STM32_HSI=y
CONFIG_CLOCK_STM32_PLL_SRC_HSI=y
CONFIG_CLOCK_STM32_PLL_M_DIVISOR=1
CONFIG_CLOCK_STM32_PLL_N_MULTIPLIER=8
CONFIG_CLOCK_STM32_PLL_Q_DIVISOR=2
CONFIG_CLOCK_STM32_PLL_R_DIVISOR=2
# USB 48MHz from PLL
CONFIG_CLOCK_STM32_PLL_Q_DIVISOR=2
# Enable GPIO
CONFIG_GPIO=y