dts: arm: st: Remove use of CONFIG_SOC_* from STM32 F0 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 F0 dtsi files into their own dir.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2018-09-25 22:06:34 -05:00 committed by Kumar Gala
commit ebd0ff9f28
19 changed files with 110 additions and 18 deletions

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f030X8.dtsi>
#include <st/f0/stm32f030X8.dtsi>
/ {
model = "STMicroelectronics STM32F030R8-NUCLEO board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f070.dtsi>
#include <st/f0/stm32f070Xb.dtsi>
/ {
model = "STMicroelectronics NUCLEO-F070RB board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f091.dtsi>
#include <st/f0/stm32f091Xc.dtsi>
/ {
model = "STMicroelectronics STM32F091RC-NUCLEO board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f072.dtsi>
#include <st/f0/stm32f072Xb.dtsi>
/ {
model = "STMicroelectronics STM32F072-EVAL board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f072.dtsi>
#include <st/f0/stm32f072Xb.dtsi>
/ {
model = "STMicroelectronics STM32F072B-DISCO board";

View file

@ -5,7 +5,7 @@
*/
/dts-v1/;
#include <st/stm32f051.dtsi>
#include <st/f0/stm32f051X8.dtsi>
/ {
model = "STMicroelectronics STM32F0DISCOVERY board";

View file

@ -4,9 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/stm32f0-pinctrl.dtsi>
#include <st/f0/stm32f0-pinctrl.dtsi>
#include <arm/armv6-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>;
write-block-size = <2>;
};

View file

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

View file

@ -3,11 +3,21 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/stm32f030.dtsi>
#include <mem.h>
#include <st/f0/stm32f030.dtsi>
/ {
sram0: memory@20000000 {
reg = <0x20000000 DT_SIZE_K(8)>;
};
soc {
flash-controller@40022000 {
flash0: flash@8000000 {
reg = <0x08000000 DT_SIZE_K(64)>;
};
};
spi2: spi@40003800 {
compatible = "st,stm32-spi-fifo";
#address-cells = <1>;

View file

@ -4,7 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/stm32f030.dtsi>
#include <mem.h>
#include <st/f0/stm32f030.dtsi>
/ {
soc {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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