Skip to content

Commit

Permalink
[nrf fromtree] soc: arm: nordic_nrf: nrf91: add nRF9151 LACA
Browse files Browse the repository at this point in the history
This patch adds definitions for the nRF9151,
which is software-compatible with nRF9161.

Signed-off-by: Maximilian Deubel <[email protected]>
(cherry picked from commit efa030b32c874ea6840d509b1a80002497239bc7)
  • Loading branch information
maxd-nordic committed Jan 18, 2024
1 parent 47a6777 commit 1f96744
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 0 deletions.
23 changes: 23 additions & 0 deletions dts/arm/nordic/nrf9151_laca.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright (c) 2023 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/

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

&flash0 {
reg = <0x00000000 DT_SIZE_K(1024)>;
};

&sram0 {
reg = <0x20000000 DT_SIZE_K(256)>;
};

/ {
soc {
compatible = "nordic,nrf9151-laca", "nordic,nrf9120",
"nordic,nrf91", "simple-bus";
};
};
23 changes: 23 additions & 0 deletions dts/arm/nordic/nrf9151ns_laca.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright (c) 2023 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/

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

&flash0 {
reg = <0x00000000 DT_SIZE_K(1024)>;
};

&sram0 {
reg = <0x20000000 DT_SIZE_K(256)>;
};

/ {
soc {
compatible = "nordic,nrf9151-laca", "nordic,nrf9120",
"nordic,nrf91", "simple-bus";
};
};
14 changes: 14 additions & 0 deletions soc/arm/nordic_nrf/nrf91/Kconfig.defconfig.nrf9151_LACA
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Nordic Semiconductor nRF9151 MCU

# Copyright (c) 2023 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

if SOC_NRF9151_LACA

config SOC
default "nRF9151_LACA"

config NUM_IRQS
default 65

endif # SOC_NRF9151_LACA
4 changes: 4 additions & 0 deletions soc/arm/nordic_nrf/nrf91/Kconfig.soc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ config SOC_NRF9131_LACA
bool "NRF9131_LACA"
select SOC_NRF9120

config SOC_NRF9151_LACA
bool "NRF9151_LACA"
select SOC_NRF9120

endchoice

config NRF_ENABLE_ICACHE
Expand Down

0 comments on commit 1f96744

Please sign in to comment.