Skip to content

Commit 5e11b5f

Browse files
SebastianBoerlubos
authored andcommitted
[nrf noup] boards: nordic: 54L: Complete rewrite of the 54l_ns DT
Complete rewrite of the 54l_ns DT board definition. Now the secure board and non-secure board re-use a lot more code, giving us a more maintainable solution. Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
1 parent f24cfb1 commit 5e11b5f

File tree

2 files changed

+9
-148
lines changed

2 files changed

+9
-148
lines changed

boards/nordic/nrf54l15pdk/nrf54l15pdk_nrf54l15_cpuapp_ns-pinctrl.dtsi

Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 9 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,25 @@
11
/*
22
* Copyright (c) 2024 Nordic Semiconductor ASA
33
*
4-
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
4+
* SPDX-License-Identifier: Apache-2.0
55
*/
66

77
/dts-v1/;
8-
#include <nordic/nrf54l15_cpuapp_ns.dtsi>
9-
#include "nrf54l15pdk_nrf54l15_cpuapp_ns-pinctrl.dtsi"
108

11-
/ {
12-
chosen {
13-
zephyr,console = &uart20;
14-
/* TODO: NCSDK-24862: We don't support configuring RRAM and SRAM
15-
* regions in the DTS file yet. The partition manager configures
16-
* these regions now.
17-
*/
18-
zephyr,shell-uart = &uart20;
19-
zephyr,flash = &rram0;
20-
zephyr,sram = &sram0;
21-
zephyr,ieee802154 = &ieee802154;
22-
};
9+
#define USE_NON_SECURE_ADDRESS_MAP 1
2310

24-
leds {
25-
compatible = "gpio-leds";
26-
led0: led_0 {
27-
gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
28-
label = "Green LED 0";
29-
};
30-
led1: led_1 {
31-
gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
32-
label = "Green LED 1";
33-
};
34-
led2: led_2 {
35-
gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
36-
label = "Green LED 2";
37-
};
38-
led3: led_3 {
39-
gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
40-
label = "Green LED 3";
41-
};
42-
};
11+
#include "nrf54l15_cpuapp_common.dtsi"
4312

44-
buttons {
45-
compatible = "gpio-keys";
46-
button0: button_0 {
47-
gpios = <&gpio1 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
48-
label = "Push button 0";
49-
zephyr,code = <INPUT_KEY_0>;
50-
};
51-
button1: button_1 {
52-
gpios = <&gpio1 10 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
53-
label = "Push button 1";
54-
zephyr,code = <INPUT_KEY_1>;
55-
};
56-
button2: button_2 {
57-
gpios = <&gpio2 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
58-
label = "Push button 2";
59-
zephyr,code = <INPUT_KEY_2>;
60-
};
61-
button3: button_3 {
62-
gpios = <&gpio2 10 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
63-
label = "Push button 3";
64-
zephyr,code = <INPUT_KEY_3>;
65-
};
66-
};
13+
/ {
14+
compatible = "nordic,nrf54l15pdk_nrf54l15-cpuapp";
15+
model = "Nordic nRF54L15 PDK nRF54L15 Application MCU";
6716

68-
aliases {
69-
led0 = &led0;
70-
led1 = &led1;
71-
led2 = &led2;
72-
led3 = &led3;
73-
sw0 = &button0;
74-
sw1 = &button1;
75-
sw2 = &button2;
76-
sw3 = &button3;
17+
chosen {
18+
zephyr,code-partition = &slot0_partition;
19+
zephyr,sram = &cpuapp_sram;
7720
};
7821
};
7922

80-
&uart20 {
81-
status = "okay";
82-
current-speed = <115200>;
83-
pinctrl-0 = <&uart20_default>;
84-
pinctrl-1 = <&uart20_sleep>;
85-
pinctrl-names = "default", "sleep";
86-
};
87-
8823
&uart30 {
8924
/* Disable so that TF-M can use this UART */
9025
status = "disabled";
@@ -94,39 +29,3 @@
9429
pinctrl-1 = <&uart30_sleep>;
9530
pinctrl-names = "default", "sleep";
9631
};
97-
98-
&grtc {
99-
status = "okay";
100-
};
101-
102-
&gpio0 {
103-
status = "okay";
104-
};
105-
106-
&gpio1 {
107-
status = "okay";
108-
};
109-
110-
&gpio2 {
111-
status = "okay";
112-
};
113-
114-
&gpiote20 {
115-
status = "okay";
116-
};
117-
118-
&gpiote30 {
119-
status = "okay";
120-
};
121-
122-
&ieee802154 {
123-
status = "okay";
124-
};
125-
126-
&temp {
127-
status = "okay";
128-
};
129-
130-
&clock {
131-
status = "okay";
132-
};

0 commit comments

Comments
 (0)