Skip to content

Commit 0f852cf

Browse files
committed
Revert "[nrf noup] boards: nordic: 54L: Complete rewrite of the 54l_ns DT"
This reverts commit e02f019. Signed-off-by: Grzegorz Swiderski <[email protected]>
1 parent 270dd8c commit 0f852cf

File tree

2 files changed

+148
-9
lines changed

2 files changed

+148
-9
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
&pinctrl {
8+
uart20_default: uart20_default {
9+
group1 {
10+
psels = <NRF_PSEL(UART_TX, 1, 4)>,
11+
<NRF_PSEL(UART_RX, 1, 5)>;
12+
};
13+
};
14+
15+
uart20_sleep: uart20_sleep {
16+
group1 {
17+
psels = <NRF_PSEL(UART_TX, 1, 4)>,
18+
<NRF_PSEL(UART_RX, 1, 5)>;
19+
low-power-enable;
20+
};
21+
};
22+
23+
uart30_default: uart30_default {
24+
group1 {
25+
psels = <NRF_PSEL(UART_TX, 0, 0)>,
26+
<NRF_PSEL(UART_RX, 0, 1)>;
27+
};
28+
};
29+
30+
uart30_sleep: uart30_sleep {
31+
group1 {
32+
psels = <NRF_PSEL(UART_TX, 0, 0)>,
33+
<NRF_PSEL(UART_RX, 0, 1)>;
34+
low-power-enable;
35+
};
36+
};
37+
38+
};
Lines changed: 110 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,90 @@
11
/*
22
* Copyright (c) 2024 Nordic Semiconductor ASA
33
*
4-
* SPDX-License-Identifier: Apache-2.0
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

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

9-
#define USE_NON_SECURE_ADDRESS_MAP 1
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+
};
1023

11-
#include "nrf54l15_cpuapp_common.dtsi"
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+
};
1243

13-
/ {
14-
compatible = "nordic,nrf54l15pdk_nrf54l15-cpuapp";
15-
model = "Nordic nRF54L15 PDK nRF54L15 Application MCU";
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+
};
1667

17-
chosen {
18-
zephyr,code-partition = &slot0_partition;
19-
zephyr,sram = &cpuapp_sram;
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;
2077
};
2178
};
2279

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+
2388
&uart30 {
2489
/* Disable so that TF-M can use this UART */
2590
status = "disabled";
@@ -29,3 +94,39 @@
2994
pinctrl-1 = <&uart30_sleep>;
3095
pinctrl-names = "default", "sleep";
3196
};
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)