From a67ca8f20252876f78fb71f4bd10fee6b96d4b39 Mon Sep 17 00:00:00 2001 From: Moonkwun Jung Date: Fri, 17 Jan 2020 15:41:39 +0900 Subject: [PATCH] dts: arm: st: h7: fix stm32h7 separate cores Currently, only the stm32h747 soc is supported in the h7 foler. The h7 series comes with both single core and dual core products. This change moves C-M4 core out of stm32h7.dtsi so that it can be included by single core STM32H7 soc description. Signed-off-by: Moonkwun Jung --- dts/arm/st/h7/stm32h7.dtsi | 5 ----- dts/arm/st/h7/stm32h747.dtsi | 2 +- dts/arm/st/h7/stm32h7_dualcore.dtsi | 17 +++++++++++++++++ 3 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 dts/arm/st/h7/stm32h7_dualcore.dtsi diff --git a/dts/arm/st/h7/stm32h7.dtsi b/dts/arm/st/h7/stm32h7.dtsi index b45e3565476..8e1ee7b2d09 100644 --- a/dts/arm/st/h7/stm32h7.dtsi +++ b/dts/arm/st/h7/stm32h7.dtsi @@ -27,11 +27,6 @@ arm,num-mpu-regions = <8>; }; }; - cpu@1 { - device_type = "cpu"; - compatible = "arm,cortex-m4f"; - reg = <1>; - }; }; soc { diff --git a/dts/arm/st/h7/stm32h747.dtsi b/dts/arm/st/h7/stm32h747.dtsi index 4343a0cfc2c..1522c532806 100644 --- a/dts/arm/st/h7/stm32h747.dtsi +++ b/dts/arm/st/h7/stm32h747.dtsi @@ -4,4 +4,4 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include +#include diff --git a/dts/arm/st/h7/stm32h7_dualcore.dtsi b/dts/arm/st/h7/stm32h7_dualcore.dtsi new file mode 100644 index 00000000000..4a2bdb602ff --- /dev/null +++ b/dts/arm/st/h7/stm32h7_dualcore.dtsi @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2020 Moonkwun Jung + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include + +/ { + cpus { + cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-m4f"; + reg = <1>; + }; + }; +};