dts: arm: st: Remove use of CONFIG_SOC_* from STM32 F3 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 F3 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:09 -05:00 committed by Kumar Gala
commit 6ab22d4c56
11 changed files with 83 additions and 15 deletions

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f334.dtsi>
#include <st/f3/stm32f334X8.dtsi>
/ {
model = "STMicroelectronics STM32F334R8-NUCLEO board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f373.dtsi>
#include <st/f3/stm32f373Xc.dtsi>
/ {
model = "STMicroelectronics STM32373C-EVAL board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f303.dtsi>
#include <st/f3/stm32f303Xc.dtsi>
/ {
model = "STMicroelectronics STM32F3DISCOVERY board";

View file

@ -4,9 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/stm32f3-pinctrl.dtsi>
#include <st/f3/stm32f3-pinctrl.dtsi>
#include <arm/armv7-m.dtsi>
#include <st/mem.h>
#include <dt-bindings/clock/stm32_clock.h>
#include <dt-bindings/i2c/i2c.h>
#include <dt-bindings/gpio/gpio.h>
@ -26,7 +25,6 @@
sram0: memory@20000000 {
device_type = "memory";
compatible = "mmio-sram";
reg = <0x20000000 DT_SRAM_SIZE>;
};
soc {
@ -42,7 +40,6 @@
flash0: flash@8000000 {
compatible = "soc-nv-flash";
label = "FLASH_STM32";
reg = <0x08000000 DT_FLASH_SIZE>;
};
};

View file

@ -4,14 +4,9 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/stm32f3.dtsi>
#include <st/f3/stm32f3.dtsi>
/ {
ccm0: memory@10000000 {
compatible = "st,stm32-ccm";
reg = <0x10000000 DT_CCM_SIZE>;
};
soc {
i2c2: i2c@40005800 {
compatible = "st,stm32-i2c-v2";

View file

@ -0,0 +1,27 @@
/*
* Copyright (c) 2018 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <st/f3/stm32f303.dtsi>
/ {
ccm0: memory@10000000 {
compatible = "st,stm32-ccm";
reg = <0x10000000 DT_SIZE_K(8)>;
};
sram0: memory@20000000 {
reg = <0x20000000 DT_SIZE_K(40)>;
};
soc {
flash-controller@40022000 {
flash0: flash@8000000 {
reg = <0x08000000 DT_SIZE_K(256)>;
};
};
};
};

View file

@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/stm32f3.dtsi>
#include <st/f3/stm32f3.dtsi>
/ {
soc {

View file

@ -0,0 +1,27 @@
/*
* Copyright (c) 2018 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <st/f3/stm32f334.dtsi>
/ {
ccm0: memory@10000000 {
compatible = "st,stm32-ccm";
reg = <0x10000000 DT_SIZE_K(4)>;
};
sram0: memory@20000000 {
reg = <0x20000000 DT_SIZE_K(12)>;
};
soc {
flash-controller@40022000 {
flash0: flash@8000000 {
reg = <0x08000000 DT_SIZE_K(64)>;
};
};
};
};

View file

@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/stm32f3.dtsi>
#include <st/f3/stm32f3.dtsi>
/ {
soc {

View file

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