diff options
author | Brian J. Nemec <bnemec@google.com> | 2023-01-30 09:05:35 -0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-01-30 21:54:48 +0000 |
commit | f928663d4f076225030a9cd8442086074988a867 (patch) | |
tree | b454bbfb90b1edf4046337af6eee212a36da538d | |
parent | b9c7a21328b3ec7001b4072c46b33af27453525e (diff) | |
download | chrome-ec-f928663d4f076225030a9cd8442086074988a867.tar.gz |
Zephyr: Add STM32G473 chipset
Adds board files for the STM32G473 chipset.
BUG=b:243700103
BRANCH=None
TEST=None
Change-Id: I428274d65c4acbccee9973b6364bad64f8ac3cf0
Signed-off-by: Brian Nemec <bnemec@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4201464
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r-- | zephyr/boards/arm/stm32g4/Kconfig.board | 10 | ||||
-rw-r--r-- | zephyr/boards/arm/stm32g4/Kconfig.defconfig | 6 | ||||
-rw-r--r-- | zephyr/boards/arm/stm32g4/stm32g473.dts | 18 | ||||
-rw-r--r-- | zephyr/boards/arm/stm32g4/stm32g473_defconfig | 32 |
4 files changed, 66 insertions, 0 deletions
diff --git a/zephyr/boards/arm/stm32g4/Kconfig.board b/zephyr/boards/arm/stm32g4/Kconfig.board new file mode 100644 index 0000000000..115115b5fc --- /dev/null +++ b/zephyr/boards/arm/stm32g4/Kconfig.board @@ -0,0 +1,10 @@ +# Copyright 2023 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +config BOARD_STM32G4_G473 + bool "STM32G473" + depends on SOC_STM32G473XX + # Enables support for the STM32 HAL drivers + select HAS_STM32CUBE + select USE_STM32_HAL_CORTEX diff --git a/zephyr/boards/arm/stm32g4/Kconfig.defconfig b/zephyr/boards/arm/stm32g4/Kconfig.defconfig new file mode 100644 index 0000000000..f22cbf7879 --- /dev/null +++ b/zephyr/boards/arm/stm32g4/Kconfig.defconfig @@ -0,0 +1,6 @@ +# Copyright 2023 The ChromiumOS Authors +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +config BOARD + default "stm32g473" if BOARD_STM32G4_G473 diff --git a/zephyr/boards/arm/stm32g4/stm32g473.dts b/zephyr/boards/arm/stm32g4/stm32g473.dts new file mode 100644 index 0000000000..0c8c63f936 --- /dev/null +++ b/zephyr/boards/arm/stm32g4/stm32g473.dts @@ -0,0 +1,18 @@ +/* Copyright 2023 The ChromiumOS Authors + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +/dts-v1/; + +#include <st/g4/stm32g473Xc.dtsi> +#include <st/g4/stm32g473m(b-c-e)tx-pinctrl.dtsi> + +/ { + model = "STMicroelectronics STM32G473"; + compatible = "st,stm32g473"; + + chosen { + zephyr,sram = &sram0; + }; +}; diff --git a/zephyr/boards/arm/stm32g4/stm32g473_defconfig b/zephyr/boards/arm/stm32g4/stm32g473_defconfig new file mode 100644 index 0000000000..5df31bb6f0 --- /dev/null +++ b/zephyr/boards/arm/stm32g4/stm32g473_defconfig @@ -0,0 +1,32 @@ +# Copyright 2023 The ChromiumOS Authors +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + + +# SOC Config +CONFIG_ARM_MPU=y +CONFIG_SOC_SERIES_STM32G4X=y +CONFIG_SOC_STM32G473XX=y + +# Pinctrl Driver +CONFIG_PINCTRL=y + +# GPIO Controller +CONFIG_GPIO=y + +# Enable sys_reboot +CONFIG_REBOOT=y + +# Clock configuration +CONFIG_CLOCK_CONTROL=y + +# Watchdog configuration +CONFIG_WATCHDOG=y + +# Enable HW Stack protection +CONFIG_HW_STACK_PROTECTION=y + +# USB configuration +CONFIG_USB_DEVICE_MANUFACTURER="Google Inc." +CONFIG_USB_DEVICE_VID=0x18d1 + |