summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zephyr/boards/arm/stm32g4/Kconfig.board10
-rw-r--r--zephyr/boards/arm/stm32g4/Kconfig.defconfig6
-rw-r--r--zephyr/boards/arm/stm32g4/stm32g473.dts18
-rw-r--r--zephyr/boards/arm/stm32g4/stm32g473_defconfig32
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
+