dts: arm: st: Remove use of CONFIG_SOC_* from STM32 L4 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 L4 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:21:55 -05:00 committed by Kumar Gala
parent 223d426663
commit 46592e6398
16 changed files with 115 additions and 13 deletions

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32l475.dtsi>
#include <st/l4/stm32l475Xg.dtsi>
/ {
model = "STMicroelectronics B-L475E-IOT01Ax board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32l432.dtsi>
#include <st/l4/stm32l432Xc.dtsi>
/ {
model = "STMicroelectronics STM32L432KC-NUCLEO board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32l476.dtsi>
#include <st/l4/stm32l476Xg.dtsi>
/ {
model = "STMicroelectronics STM32L476RG-NUCLEO board";

View file

@ -9,7 +9,7 @@
*/
/dts-v1/;
#include <st/stm32l476.dtsi>
#include <st/l4/stm32l476Xg.dtsi>
/ {
model = "STMicroelectronics STM32L476G-DISCO board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32l496.dtsi>
#include <st/l4/stm32l496Xg.dtsi>
/ {
model = "STMicroelectronics STM32L496G-DISCO board";

View file

@ -4,10 +4,9 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/stm32l4-pinctrl.dtsi>
#include <st/l4/stm32l4-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>
@ -27,7 +26,6 @@
sram0: memory@20000000 {
device_type = "memory";
compatible = "mmio-sram";
reg = <0x20000000 DT_SRAM_SIZE>;
};
soc {
@ -43,7 +41,6 @@
flash0: flash@8000000 {
compatible = "soc-nv-flash";
label = "FLASH_STM32";
reg = <0x08000000 DT_FLASH_SIZE>;
write-block-size = <8>;
erase-block-size = <2048>;

View file

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

View file

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

View file

@ -0,0 +1,21 @@
/*
* Copyright (c) 2018 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <st/l4/stm32l433.dtsi>
/ {
sram0: memory@20000000 {
reg = <0x20000000 DT_SIZE_K(64)>;
};
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/stm32l4.dtsi>
#include <st/l4/stm32l4.dtsi>
/ {
soc {

View file

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

View file

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

View file

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

View file

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

View file

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