xref: /linux/arch/arm/mach-stm32/board-dt.c (revision e0302638a3b43c83ff26840df6e496d60c56cbbd)
161ea291cSBenjamin Gaignard // SPDX-License-Identifier: GPL-2.0
29b799b78SMaxime Coquelin /*
39b799b78SMaxime Coquelin  * Copyright (C) Maxime Coquelin 2015
461ea291cSBenjamin Gaignard  * Copyright (C) STMicroelectronics 2017
59b799b78SMaxime Coquelin  * Author:  Maxime Coquelin <mcoquelin.stm32@gmail.com>
69b799b78SMaxime Coquelin  */
79b799b78SMaxime Coquelin 
89b799b78SMaxime Coquelin #include <linux/kernel.h>
99b799b78SMaxime Coquelin #include <asm/mach/arch.h>
102092e3adSBenjamin Gaignard #ifdef CONFIG_ARM_SINGLE_ARMV7M
112092e3adSBenjamin Gaignard #include <asm/v7m.h>
122092e3adSBenjamin Gaignard #endif
139b799b78SMaxime Coquelin 
149b799b78SMaxime Coquelin static const char *const stm32_compat[] __initconst = {
159b799b78SMaxime Coquelin 	"st,stm32f429",
166391503bSLee Jones 	"st,stm32f469",
17a77e393cSAlexandre TORGUE 	"st,stm32f746",
1885beb77fSAlexandre Torgue 	"st,stm32f769",
19c6ed0f31SAlexandre TORGUE 	"st,stm32h743",
2040ddb537Sdillon min 	"st,stm32h750",
21*e0302638SAlexandre Torgue 	"st,stm32mp131",
22*e0302638SAlexandre Torgue 	"st,stm32mp133",
23*e0302638SAlexandre Torgue 	"st,stm32mp135",
24f7dcb044SLudovic Barre 	"st,stm32mp157",
259b799b78SMaxime Coquelin 	NULL
269b799b78SMaxime Coquelin };
279b799b78SMaxime Coquelin 
289b799b78SMaxime Coquelin DT_MACHINE_START(STM32DT, "STM32 (Device Tree Support)")
299b799b78SMaxime Coquelin 	.dt_compat = stm32_compat,
302092e3adSBenjamin Gaignard #ifdef CONFIG_ARM_SINGLE_ARMV7M
312092e3adSBenjamin Gaignard 	.restart = armv7m_restart,
322092e3adSBenjamin Gaignard #endif
339b799b78SMaxime Coquelin MACHINE_END
34