Skip to content

Commit

Permalink
dts: arm: nrf: Remove use of CONFIG_SOC_* from Nordic 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_NRF51822_QFAA
CONFIG_SOC_NRF51822_QFAB
CONFIG_SOC_NRF51822_QFAC
CONFIG_SOC_NRF52810_QFAA
CONFIG_SOC_NRF52832_QFAA
CONFIG_SOC_NRF52832_CIAA
CONFIG_SOC_NRF52832_QFAB
CONFIG_SOC_NRF52840_QIAA

Signed-off-by: Kumar Gala <[email protected]>
  • Loading branch information
galak committed Sep 15, 2018
1 parent 8461217 commit 236a2d6
Show file tree
Hide file tree
Showing 33 changed files with 180 additions and 71 deletions.
2 changes: 1 addition & 1 deletion boards/arm/96b_carbon_nrf51/96b_carbon_nrf51.dts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/dts-v1/;
#include <nordic/nrf51822.dtsi>
#include <nordic/nrf51822_qfac.dtsi>

/ {
model = "Seeed Studio Carbon nRF51 96board";
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/96b_nitrogen/96b_nitrogen.dts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/dts-v1/;
#include <nordic/nrf52832.dtsi>
#include <nordic/nrf52832_qfaa.dtsi>

/ {
model = "Seeed Studio Nitrogen 96board";
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/bbc_microbit/bbc_microbit.dts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/dts-v1/;
#include <nordic/nrf51822.dtsi>
#include <nordic/nrf51822_qfaa.dtsi>

/ {
model = "BBC Micro:bit";
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/curie_ble/curie_ble.dts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/dts-v1/;
#include <nordic/nrf51822.dtsi>
#include <nordic/nrf51822_qfaa.dtsi>

/ {
model = "Intel Curie BLE";
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/nrf51_ble400/nrf51_ble400.dts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/dts-v1/;
#include <nordic/nrf51822.dtsi>
#include <nordic/nrf51822_qfaa.dtsi>

/ {
model = "Waveshare BLE400";
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/nrf51_blenano/nrf51_blenano.dts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/dts-v1/;
#include <nordic/nrf51822.dtsi>
#include <nordic/nrf51822_qfaa.dtsi>

/ {
model = "Redbear BLE Nano";
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/nrf51_pca10028/nrf51_pca10028.dts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/dts-v1/;
#include <nordic/nrf51822.dtsi>
#include <nordic/nrf51822_qfac.dtsi>

/ {
model = "Nordic PCA10028 Dev Kit";
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/nrf51_vbluno51/nrf51_vbluno51.dts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/dts-v1/;
#include <nordic/nrf51822.dtsi>
#include <nordic/nrf51822_qfac.dtsi>

/ {
model = "VNG VBLUno51 BLE board";
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/nrf52810_pca10040/nrf52810_pca10040.dts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

/dts-v1/;
#include <nordic/nrf52810.dtsi>
#include <nordic/nrf52810_qfaa.dtsi>

/ {
model = "Nordic PCA10040 Dev Kit";
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/nrf52840_pca10056/nrf52840_pca10056.dts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/dts-v1/;
#include <nordic/nrf52840.dtsi>
#include <nordic/nrf52840_qiaa.dtsi>

/ {
model = "Nordic PCA10056 Dev Kit";
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/nrf52840_pca10059/nrf52840_pca10059.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

/dts-v1/;
#include <nordic/nrf52840.dtsi>
#include <nordic/nrf52840_qiaa.dtsi>

/ {
model = "Nordic PCA10059 Dev Kit";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

/dts-v1/;
#include <nordic/nrf52832.dtsi>
#include <nordic/nrf52832_qfaa.dtsi>

/ {
model = "nRF52 Adafruit Feather";
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/nrf52_blenano2/nrf52_blenano2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/dts-v1/;
#include <nordic/nrf52832.dtsi>
#include <nordic/nrf52832_qfaa.dtsi>

/ {
model = "Redbear BLE Nano 2";
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/nrf52_pca10040/nrf52_pca10040.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

/dts-v1/;
#include <nordic/nrf52832.dtsi>
#include <nordic/nrf52832_qfaa.dtsi>

/ {
model = "Nordic PCA10040 Dev Kit";
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/nrf52_pca20020/nrf52_pca20020.dts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

/dts-v1/;
#include <nordic/nrf52832.dtsi>
#include <nordic/nrf52832_qfaa.dtsi>

/ {
model = "Nordic PCA20020 Dev Kit";
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/nrf52_sparkfun/nrf52_sparkfun.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

/dts-v1/;
#include <nordic/nrf52832.dtsi>
#include <nordic/nrf52832_qfaa.dtsi>

/ {
model = "Sparkfun nRF52832 Breakout";
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/nrf52_vbluno52/nrf52_vbluno52.dts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/dts-v1/;
#include <nordic/nrf52832.dtsi>
#include <nordic/nrf52832_qfaa.dtsi>

/ {
model = "VNG VBLUno52 BLE 5.0 board";
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/quark_se_c1000_ble/quark_se_c1000_ble.dts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/dts-v1/;
#include <nordic/nrf51822.dtsi>
#include <nordic/nrf51822_qfaa.dtsi>

/ {
model = "Intel Quark SE C1000 BLE";
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/reel_board/reel_board.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

/dts-v1/;
#include <nordic/nrf52840.dtsi>
#include <nordic/nrf52840_qiaa.dtsi>

/ {
model = "reel board";
Expand Down
39 changes: 0 additions & 39 deletions dts/arm/nordic/mem.h

This file was deleted.

3 changes: 0 additions & 3 deletions dts/arm/nordic/nrf51822.dtsi
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <arm/armv6-m.dtsi>
#include <dt-bindings/i2c/i2c.h>
#include <dt-bindings/gpio/gpio.h>
#include <nordic/mem.h>

/ {
cpus {
Expand All @@ -27,7 +26,6 @@
flash0: flash@0 {
compatible = "soc-nv-flash";
label = "NRF_FLASH";
reg = <0x00000000 DT_FLASH_SIZE>;
erase-block-size = <1024>;
write-block-size = <4>;
};
Expand All @@ -36,7 +34,6 @@
sram0: memory@20000000 {
device_type = "memory";
compatible = "mmio-sram";
reg = <0x20000000 DT_SRAM_SIZE>;
};

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

#include <mem.h>
#include <nordic/nrf51822.dtsi>

/ {
flash-controller@4001E000 {
flash0: flash@0 {
reg = <0x00000000 DT_SIZE_K(256)>;
};
};

sram0: memory@20000000 {
reg = <0x20000000 DT_SIZE_K(16)>;
};
};
20 changes: 20 additions & 0 deletions dts/arm/nordic/nrf51822_qfab.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) 2018 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <mem.h>
#include <nordic/nrf51822.dtsi>

/ {
flash-controller@4001E000 {
flash0: flash@0 {
reg = <0x00000000 DT_SIZE_K(128)>;
};
};

sram0: memory@20000000 {
reg = <0x20000000 DT_SIZE_K(16)>;
};
};
20 changes: 20 additions & 0 deletions dts/arm/nordic/nrf51822_qfac.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) 2018 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <mem.h>
#include <nordic/nrf51822.dtsi>

/ {
flash-controller@4001E000 {
flash0: flash@0 {
reg = <0x00000000 DT_SIZE_K(256)>;
};
};

sram0: memory@20000000 {
reg = <0x20000000 DT_SIZE_K(32)>;
};
};
3 changes: 0 additions & 3 deletions dts/arm/nordic/nrf52810.dtsi
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <arm/armv7-m.dtsi>
#include <dt-bindings/i2c/i2c.h>
#include <dt-bindings/gpio/gpio.h>
#include <nordic/mem.h>

/ {
cpus {
Expand All @@ -27,15 +26,13 @@
flash0: flash@0 {
compatible = "soc-nv-flash";
label = "NRF_FLASH";
reg = <0x00000000 DT_FLASH_SIZE>;
write-block-size = <4>;
};
};

sram0: memory@20000000 {
device_type = "memory";
compatible = "mmio-sram";
reg = <0x20000000 DT_SRAM_SIZE>;
};

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

#include <mem.h>
#include <nordic/nrf52810.dtsi>

/ {
flash-controller@4001E000 {
flash0: flash@0 {
reg = <0x00000000 DT_SIZE_K(192)>;
};
};

sram0: memory@20000000 {
reg = <0x20000000 DT_SIZE_K(24)>;
};
};
3 changes: 0 additions & 3 deletions dts/arm/nordic/nrf52832.dtsi
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <arm/armv7-m.dtsi>
#include <dt-bindings/i2c/i2c.h>
#include <dt-bindings/gpio/gpio.h>
#include <nordic/mem.h>

/ {
cpus {
Expand All @@ -27,7 +26,6 @@
flash0: flash@0 {
compatible = "soc-nv-flash";
label = "NRF_FLASH";
reg = <0x00000000 DT_FLASH_SIZE>;
erase-block-size = <4096>;
write-block-size = <4>;
};
Expand All @@ -36,7 +34,6 @@
sram0: memory@20000000 {
device_type = "memory";
compatible = "mmio-sram";
reg = <0x20000000 DT_SRAM_SIZE>;
};

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

#include <mem.h>
#include <nordic/nrf52832.dtsi>

/ {
flash-controller@4001E000 {
flash0: flash@0 {
reg = <0x00000000 DT_SIZE_K(512)>;
};
};

sram0: memory@20000000 {
reg = <0x20000000 DT_SIZE_K(64)>;
};
};
Loading

0 comments on commit 236a2d6

Please sign in to comment.