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:
parent
223d426663
commit
46592e6398
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include <st/stm32l475.dtsi>
|
||||
#include <st/l4/stm32l475Xg.dtsi>
|
||||
|
||||
/ {
|
||||
model = "STMicroelectronics B-L475E-IOT01Ax board";
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include <st/stm32l432.dtsi>
|
||||
#include <st/l4/stm32l432Xc.dtsi>
|
||||
|
||||
/ {
|
||||
model = "STMicroelectronics STM32L432KC-NUCLEO board";
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include <st/stm32l476.dtsi>
|
||||
#include <st/l4/stm32l476Xg.dtsi>
|
||||
|
||||
/ {
|
||||
model = "STMicroelectronics STM32L476RG-NUCLEO board";
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include <st/stm32l476.dtsi>
|
||||
#include <st/l4/stm32l476Xg.dtsi>
|
||||
|
||||
/ {
|
||||
model = "STMicroelectronics STM32L476G-DISCO board";
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include <st/stm32l496.dtsi>
|
||||
#include <st/l4/stm32l496Xg.dtsi>
|
||||
|
||||
/ {
|
||||
model = "STMicroelectronics STM32L496G-DISCO board";
|
||||
|
|
|
@ -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>;
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <st/stm32l4.dtsi>
|
||||
#include <st/l4/stm32l4.dtsi>
|
||||
|
||||
/ {
|
||||
soc {
|
21
dts/arm/st/l4/stm32l432Xc.dtsi
Normal file
21
dts/arm/st/l4/stm32l432Xc.dtsi
Normal 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)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
21
dts/arm/st/l4/stm32l433Xc.dtsi
Normal file
21
dts/arm/st/l4/stm32l433Xc.dtsi
Normal 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)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <st/stm32l4.dtsi>
|
||||
#include <st/l4/stm32l4.dtsi>
|
||||
|
||||
/ {
|
||||
soc {
|
21
dts/arm/st/l4/stm32l475Xg.dtsi
Normal file
21
dts/arm/st/l4/stm32l475Xg.dtsi
Normal 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)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
|
@ -4,4 +4,4 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <st/stm32l475.dtsi>
|
||||
#include <st/l4/stm32l475.dtsi>
|
21
dts/arm/st/l4/stm32l476Xg.dtsi
Normal file
21
dts/arm/st/l4/stm32l476Xg.dtsi
Normal 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)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <st/stm32l475.dtsi>
|
||||
#include <st/l4/stm32l475.dtsi>
|
||||
|
||||
/ {
|
||||
soc {
|
21
dts/arm/st/l4/stm32l496Xg.dtsi
Normal file
21
dts/arm/st/l4/stm32l496Xg.dtsi
Normal 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)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
Loading…
Reference in a new issue