dts: arm: st: Remove use of CONFIG_SOC_* from STM32 F4 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 F4 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:16 -05:00 committed by Kumar Gala
commit 52646287fd
45 changed files with 326 additions and 40 deletions

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f412.dtsi>
#include <st/f4/stm32f412cg.dtsi>
/ {
model = "Tocoding Argonkey 96boards";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f401.dtsi>
#include <st/f4/stm32f401Xe.dtsi>
/ {
model = "Seeed Studio Carbon 96boards";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f411.dtsi>
#include <st/f4/stm32f411Xe.dtsi>
/ {
model = "Tocoding Neonkey 96boards";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f401.dtsi>
#include <st/f4/stm32f401Xe.dtsi>
/ {
model = "STMicroelectronics STM32F401RE-NUCLEO board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f411.dtsi>
#include <st/f4/stm32f411Xe.dtsi>
/ {
model = "STMicroelectronics STM32F411RE-NUCLEO board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f412.dtsi>
#include <st/f4/stm32f412zg.dtsi>
/ {
model = "STMicroelectronics STM32F412ZG-NUCLEO board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f413.dtsi>
#include <st/f4/stm32f413Xh.dtsi>
/ {
model = "STMicroelectronics STM32F413ZH-NUCLEO board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f429.dtsi>
#include <st/f4/stm32f429Xi.dtsi>
/ {
model = "STMicroelectronics STM32F429ZI-NUCLEO board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f446.dtsi>
#include <st/f4/stm32f446Xe.dtsi>
/ {
model = "STMicroelectronics STM32F446RE-NUCLEO board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f407.dtsi>
#include <st/f4/stm32f407Xg.dtsi>
/ {
model = "Olimex STM32-E407 board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f407.dtsi>
#include <st/f4/stm32f407Xg.dtsi>
/ {
model = "Olimex STM32-H407 board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f405.dtsi>
#include <st/f4/stm32f405Xg.dtsi>
/ {
model = "Olimex STM32-P405 board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f411.dtsi>
#include <st/f4/stm32f411Xe.dtsi>
/ {
model = "STMicroelectronics STM32F411E-DISCO board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f412.dtsi>
#include <st/f4/stm32f412zg.dtsi>
/ {
model = "STMicroelectronics STM32F412G-DISCO board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f429.dtsi>
#include <st/f4/stm32f429Xi.dtsi>
/ {
model = "STMicroelectronics STM32F429I_DISC1 board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f469.dtsi>
#include <st/f4/stm32f469Xi.dtsi>
/ {
model = "STMicroelectronics STM32F469I-DISCO board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f407.dtsi>
#include <st/f4/stm32f407Xg.dtsi>
/ {
model = "STMicroelectronics STM32F4DISCOVERY board";

View file

@ -5,8 +5,7 @@
*/
#include <arm/armv7-m.dtsi>
#include <st/stm32f4-pinctrl.dtsi>
#include <st/mem.h>
#include <st/f4/stm32f4-pinctrl.dtsi>
#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>;
write-block-size = <1>;
};

View file

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

View file

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

View file

@ -4,15 +4,10 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/stm32f405-pinctrl.dtsi>
#include <st/stm32f401.dtsi>
#include <st/f4/stm32f405-pinctrl.dtsi>
#include <st/f4/stm32f401.dtsi>
/ {
ccm0: memory@10000000 {
compatible = "st,stm32-ccm";
reg = <0x10000000 DT_CCM_SIZE>;
};
soc {
pinctrl: pin-controller@40020000 {
reg = <0x40020000 0x2400>;

View file

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

View file

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

View file

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

View file

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

View file

@ -0,0 +1,22 @@
/*
* Copyright (c) 2018 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <st/f4/stm32f411.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

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/stm32f412-pinctrl.dtsi>
#include <st/stm32f411.dtsi>
#include <st/f4/stm32f412-pinctrl.dtsi>
#include <st/f4/stm32f411.dtsi>
/ {
soc {

View file

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

View file

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

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/stm32f413-pinctrl.dtsi>
#include <st/stm32f411.dtsi>
#include <st/f4/stm32f413-pinctrl.dtsi>
#include <st/f4/stm32f411.dtsi>
/ {
soc {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -14,7 +14,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/stm32f429.dtsi>
#include <st/f4/stm32f429.dtsi>
/delete-node/ &spi5;

View file

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

View file

@ -0,0 +1,22 @@
/*
* Copyright (c) 2018 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <st/f4/stm32f446.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

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

View file

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