dts: arm: st: Remove use of CONFIG_SOC_* from STM32 F2 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 F2 dtsi files into their own dir. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
5dc584975b
commit
fe86919cca
6 changed files with 46 additions and 6 deletions
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include <st/stm32f207.dtsi>
|
||||
#include <st/f2/stm32f207Xg.dtsi>
|
||||
|
||||
/ {
|
||||
model = "STMicroelectronics STM32F207ZG-NUCLEO board";
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <arm/armv7-m.dtsi>
|
||||
#include <st/mem.h>
|
||||
#include <st/stm32f2-pinctrl.dtsi>
|
||||
#include <st/f2/stm32f2-pinctrl.dtsi>
|
||||
#include <dt-bindings/clock/stm32_clock.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
|
@ -25,7 +24,6 @@
|
|||
sram0: memory@20000000 {
|
||||
device_type = "memory";
|
||||
compatible = "mmio-sram";
|
||||
reg = <0x20000000 DT_SRAM_SIZE>;
|
||||
};
|
||||
|
||||
soc {
|
||||
|
@ -41,7 +39,6 @@
|
|||
flash0: flash@8000000 {
|
||||
compatible = "soc-nv-flash";
|
||||
label = "FLASH_STM32";
|
||||
reg = <0x08000000 DT_FLASH_SIZE>;
|
||||
|
||||
write-block-size = <1>;
|
||||
};
|
|
@ -4,4 +4,4 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <st/stm32f2.dtsi>
|
||||
#include <st/f2/stm32f2.dtsi>
|
21
dts/arm/st/f2/stm32f207Xe.dtsi
Normal file
21
dts/arm/st/f2/stm32f207Xe.dtsi
Normal file
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* Copyright (c) 2018 Linaro Limited
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <st/f2/stm32f207.dtsi>
|
||||
|
||||
/ {
|
||||
sram0: memory@20000000 {
|
||||
reg = <0x20000000 DT_SIZE_K(128)>;
|
||||
};
|
||||
|
||||
soc {
|
||||
flash-controller@40023c00 {
|
||||
flash0: flash@8000000 {
|
||||
reg = <0x08000000 DT_SIZE_K(512)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
22
dts/arm/st/f2/stm32f207Xg.dtsi
Normal file
22
dts/arm/st/f2/stm32f207Xg.dtsi
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* Copyright (c) 2018 Linaro Limited
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <mem.h>
|
||||
#include <st/f2/stm32f207.dtsi>
|
||||
|
||||
/ {
|
||||
sram0: memory@20000000 {
|
||||
reg = <0x20000000 DT_SIZE_K(128)>;
|
||||
};
|
||||
|
||||
soc {
|
||||
flash-controller@40023c00 {
|
||||
flash0: flash@8000000 {
|
||||
reg = <0x08000000 DT_SIZE_K(1024)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue