Skip to content

Commit

Permalink
dts: arm: silabs: Remove use of CONFIG_SOC_* from Silabs SoC dts files
Browse files Browse the repository at this point in the history
To move forward and remove use of Kconfig in dts files lets just create
SoC specific dtsi files that the boards can include.  This lets us
remove:

CONFIG_SOC_PART_NUMBER_EFM32WG990F256
CONFIG_SOC_PART_NUMBER_EFR32FG1P133F256GM48

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
  • Loading branch information
galak committed Sep 14, 2018
1 parent 52ebc02 commit 912b4a2
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 30 deletions.
2 changes: 1 addition & 1 deletion boards/arm/efm32wg_stk3800/efm32wg_stk3800.dts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/dts-v1/;
#include <silabs/efm32wg.dtsi>
#include <silabs/efm32wg990f256.dtsi>

/ {
model = "Silicon Labs EFM32WG STK3800 board";
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/efr32_slwstk6061a/efr32_slwstk6061a.dts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/dts-v1/;
#include <silabs/efr32fg1p.dtsi>
#include <silabs/efr32fg1p133f256gm48.dtsi>

/ {
model = "Silicon Labs EFR32 SLWSTK6061A board";
Expand Down
6 changes: 0 additions & 6 deletions dts/arm/silabs/efm32wg.dtsi
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <arm/armv7-m.dtsi>
#include <silabs/mem.h>

/ {
cpus {
Expand All @@ -11,11 +10,6 @@
flash0: flash {
compatible = "soc-nv-flash";
label = "FLASH_0";
reg = <0 DT_FLASH_SIZE>;
};

sram0: memory {
reg = <0x20000000 DT_SRAM_SIZE>;
};

soc {
Expand Down
18 changes: 18 additions & 0 deletions dts/arm/silabs/efm32wg990f256.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (c) 2018 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <mem.h>
#include <silabs/efm32wg.dtsi>

/ {
flash {
reg = <0 DT_SIZE_K(256)>;
};

sram0: memory {
reg = <0x20000000 DT_SIZE_K(32)>;
};
};
6 changes: 0 additions & 6 deletions dts/arm/silabs/efr32fg1p.dtsi
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <arm/armv7-m.dtsi>
#include <silabs/mem.h>

/ {
cpus {
Expand All @@ -11,11 +10,6 @@
flash0: flash {
compatible = "soc-nv-flash";
label = "FLASH_0";
reg = <0 DT_FLASH_SIZE>;
};

sram0: memory {
reg = <0x20000000 DT_SRAM_SIZE>;
};

soc {
Expand Down
18 changes: 18 additions & 0 deletions dts/arm/silabs/efr32fg1p133f256gm48.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (c) 2018 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <mem.h>
#include <silabs/efr32fg1p.dtsi>

/ {
flash {
reg = <0 DT_SIZE_K(256)>;
};

sram0: memory {
reg = <0x20000000 DT_SIZE_K(32)>;
};
};
16 changes: 0 additions & 16 deletions dts/arm/silabs/mem.h

This file was deleted.

0 comments on commit 912b4a2

Please sign in to comment.