dts: arm: st: Remove use of CONFIG_SOC_* from STM32 F2 dts files

To move forward and remove use of Kconfig in dts files lets just create
SoC specific dtsi files that the boards can include.  We also seperate
out the F2 dtsi files into their own dir.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2018-09-27 08:23:03 -05:00 committed by Kumar Gala
commit fe86919cca
6 changed files with 46 additions and 6 deletions

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f207.dtsi>
#include <st/f2/stm32f207Xg.dtsi>
/ {
model = "STMicroelectronics STM32F207ZG-NUCLEO board";

View file

@ -5,8 +5,7 @@
*/
#include <arm/armv7-m.dtsi>
#include <st/mem.h>
#include <st/stm32f2-pinctrl.dtsi>
#include <st/f2/stm32f2-pinctrl.dtsi>
#include <dt-bindings/clock/stm32_clock.h>
#include <dt-bindings/gpio/gpio.h>
@ -25,7 +24,6 @@
sram0: memory@20000000 {
device_type = "memory";
compatible = "mmio-sram";
reg = <0x20000000 DT_SRAM_SIZE>;
};
soc {
@ -41,7 +39,6 @@
flash0: flash@8000000 {
compatible = "soc-nv-flash";
label = "FLASH_STM32";
reg = <0x08000000 DT_FLASH_SIZE>;
write-block-size = <1>;
};

View file

@ -4,4 +4,4 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/stm32f2.dtsi>
#include <st/f2/stm32f2.dtsi>

View file

@ -0,0 +1,21 @@
/*
* Copyright (c) 2018 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/f2/stm32f207.dtsi>
/ {
sram0: memory@20000000 {
reg = <0x20000000 DT_SIZE_K(128)>;
};
soc {
flash-controller@40023c00 {
flash0: flash@8000000 {
reg = <0x08000000 DT_SIZE_K(512)>;
};
};
};
};

View file

@ -0,0 +1,22 @@
/*
* Copyright (c) 2018 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <st/f2/stm32f207.dtsi>
/ {
sram0: memory@20000000 {
reg = <0x20000000 DT_SIZE_K(128)>;
};
soc {
flash-controller@40023c00 {
flash0: flash@8000000 {
reg = <0x08000000 DT_SIZE_K(1024)>;
};
};
};
};