dts: arm: st: Remove use of CONFIG_SOC_* from STM32 F3 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 F3 dtsi files into their own dir. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
fe86919cca
commit
6ab22d4c56
11 changed files with 83 additions and 15 deletions
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include <st/stm32f334.dtsi>
|
||||
#include <st/f3/stm32f334X8.dtsi>
|
||||
|
||||
/ {
|
||||
model = "STMicroelectronics STM32F334R8-NUCLEO board";
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include <st/stm32f373.dtsi>
|
||||
#include <st/f3/stm32f373Xc.dtsi>
|
||||
|
||||
/ {
|
||||
model = "STMicroelectronics STM32373C-EVAL board";
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include <st/stm32f303.dtsi>
|
||||
#include <st/f3/stm32f303Xc.dtsi>
|
||||
|
||||
/ {
|
||||
model = "STMicroelectronics STM32F3DISCOVERY board";
|
||||
|
|
|
@ -4,9 +4,8 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <st/stm32f3-pinctrl.dtsi>
|
||||
#include <st/f3/stm32f3-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>
|
||||
|
@ -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>;
|
||||
};
|
||||
};
|
||||
|
|
@ -4,14 +4,9 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <st/stm32f3.dtsi>
|
||||
#include <st/f3/stm32f3.dtsi>
|
||||
|
||||
/ {
|
||||
ccm0: memory@10000000 {
|
||||
compatible = "st,stm32-ccm";
|
||||
reg = <0x10000000 DT_CCM_SIZE>;
|
||||
};
|
||||
|
||||
soc {
|
||||
i2c2: i2c@40005800 {
|
||||
compatible = "st,stm32-i2c-v2";
|
27
dts/arm/st/f3/stm32f303Xc.dtsi
Normal file
27
dts/arm/st/f3/stm32f303Xc.dtsi
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* Copyright (c) 2018 Linaro Limited
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <mem.h>
|
||||
#include <st/f3/stm32f303.dtsi>
|
||||
|
||||
/ {
|
||||
ccm0: memory@10000000 {
|
||||
compatible = "st,stm32-ccm";
|
||||
reg = <0x10000000 DT_SIZE_K(8)>;
|
||||
};
|
||||
|
||||
sram0: memory@20000000 {
|
||||
reg = <0x20000000 DT_SIZE_K(40)>;
|
||||
};
|
||||
|
||||
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/stm32f3.dtsi>
|
||||
#include <st/f3/stm32f3.dtsi>
|
||||
|
||||
/ {
|
||||
soc {
|
27
dts/arm/st/f3/stm32f334X8.dtsi
Normal file
27
dts/arm/st/f3/stm32f334X8.dtsi
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* Copyright (c) 2018 Linaro Limited
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <mem.h>
|
||||
#include <st/f3/stm32f334.dtsi>
|
||||
|
||||
/ {
|
||||
ccm0: memory@10000000 {
|
||||
compatible = "st,stm32-ccm";
|
||||
reg = <0x10000000 DT_SIZE_K(4)>;
|
||||
};
|
||||
|
||||
sram0: memory@20000000 {
|
||||
reg = <0x20000000 DT_SIZE_K(12)>;
|
||||
};
|
||||
|
||||
soc {
|
||||
flash-controller@40022000 {
|
||||
flash0: flash@8000000 {
|
||||
reg = <0x08000000 DT_SIZE_K(64)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <st/stm32f3.dtsi>
|
||||
#include <st/f3/stm32f3.dtsi>
|
||||
|
||||
/ {
|
||||
soc {
|
22
dts/arm/st/f3/stm32f373Xc.dtsi
Normal file
22
dts/arm/st/f3/stm32f373Xc.dtsi
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* Copyright (c) 2018 Linaro Limited
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <mem.h>
|
||||
#include <st/f3/stm32f373.dtsi>
|
||||
|
||||
/ {
|
||||
sram0: memory@20000000 {
|
||||
reg = <0x20000000 DT_SIZE_K(32)>;
|
||||
};
|
||||
|
||||
soc {
|
||||
flash-controller@40022000 {
|
||||
flash0: flash@8000000 {
|
||||
reg = <0x08000000 DT_SIZE_K(256)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue