Skip to content

Commit fb959db

Browse files
mstasiaknordicrlubos
authored andcommitted
boards: nordic: nrf54lm20apdk: Add 0.2.0.csp board revision
Added board revision 0.2.0.csp with wider access to GPIOs and changed pin assignement for UART20, LEDs and buttons. Signed-off-by: Michał Stasiak <[email protected]>
1 parent ec78066 commit fb959db

File tree

4 files changed

+120
-1
lines changed

4 files changed

+120
-1
lines changed

boards/nordic/nrf54lm20apdk/board.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ board:
55
socs:
66
- name: nrf54lm20a
77
revision:
8-
format: major.minor.patch
8+
format: custom
99
default: "0.0.0"
1010
revisions:
1111
- name: "0.0.0"
1212
- name: "0.2.0"
13+
- name: "0.2.0.csp"
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/ {
8+
leds {
9+
compatible = "gpio-leds";
10+
11+
led0: led_0 {
12+
gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
13+
};
14+
15+
led1: led_1 {
16+
gpios = <&gpio1 25 GPIO_ACTIVE_HIGH>;
17+
};
18+
19+
led2: led_2 {
20+
gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>;
21+
};
22+
23+
led3: led_3 {
24+
gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
25+
};
26+
};
27+
28+
buttons {
29+
compatible = "gpio-keys";
30+
31+
button0: button_0 {
32+
gpios = <&gpio1 26 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
33+
};
34+
35+
button1: button_1 {
36+
gpios = <&gpio1 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
37+
};
38+
39+
button2: button_2 {
40+
gpios = <&gpio1 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
41+
};
42+
43+
button3: button_3 {
44+
gpios = <&gpio0 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
45+
};
46+
};
47+
};
48+
49+
&hfpll {
50+
clock-frequency = <DT_FREQ_M(128)>;
51+
};
52+
53+
&pinctrl {
54+
/omit-if-no-ref/ uart20_default: uart20_default {
55+
group1 {
56+
psels = <NRF_PSEL(UART_TX, 1, 16)>;
57+
};
58+
59+
group2 {
60+
psels = <NRF_PSEL(UART_RX, 1, 17)>;
61+
bias-pull-up;
62+
};
63+
};
64+
65+
/omit-if-no-ref/ uart20_sleep: uart20_sleep {
66+
group1 {
67+
psels = <NRF_PSEL(UART_TX, 1, 16)>,
68+
<NRF_PSEL(UART_RX, 1, 17)>;
69+
low-power-enable;
70+
};
71+
};
72+
/omit-if-no-ref/ pwm20_default: pwm20_default {
73+
group1 {
74+
psels = <NRF_PSEL(PWM_OUT0, 1, 25)>;
75+
};
76+
};
77+
78+
/omit-if-no-ref/ pwm20_sleep: pwm20_sleep {
79+
group1 {
80+
psels = <NRF_PSEL(PWM_OUT0, 1, 25)>;
81+
low-power-enable;
82+
};
83+
};
84+
};
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright (c) 2025 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
3+
4+
identifier: [email protected]/nrf54lm20a/cpuapp
5+
name: nRF54LM20A-PDK-nRF54LM20A-Application (rev. 0.2.0.csp)
6+
type: mcu
7+
arch: arm
8+
toolchain:
9+
- gnuarmemb
10+
- zephyr
11+
sysbuild: true
12+
ram: 512
13+
flash: 449
14+
supported:
15+
- adc
16+
- counter
17+
- dmic
18+
- gpio
19+
- i2c
20+
- i2s
21+
- pwm
22+
- spi
23+
- watchdog
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright (c) 2025 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
3+
4+
set(REVISIONS "0.0.0" "0.2.0" "0.2.0.csp")
5+
if(NOT DEFINED BOARD_REVISION)
6+
set(BOARD_REVISION "0.0.0")
7+
else()
8+
if(NOT BOARD_REVISION IN_LIST REVISIONS)
9+
message(FATAL_ERROR "${BOARD_REVISION} is not a valid nRF54LM20A PDK board revision. Accepted revisions: ${REVISIONS}")
10+
endif()
11+
endif()

0 commit comments

Comments
 (0)