73 lines
1.4 KiB
Plaintext
73 lines
1.4 KiB
Plaintext
/*
|
|
* Copyright (c) 2024 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include "nrf54l20pdk_nrf54l20-pinctrl.dtsi"
|
|
|
|
/ {
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
led0: led_0 {
|
|
gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>;
|
|
label = "Green LED 0";
|
|
};
|
|
led1: led_1 {
|
|
gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
|
|
label = "Green LED 1";
|
|
};
|
|
led2: led_2 {
|
|
gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
|
|
label = "Green LED 2";
|
|
};
|
|
led3: led_3 {
|
|
gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
|
|
label = "Green LED 3";
|
|
};
|
|
};
|
|
|
|
buttons {
|
|
compatible = "gpio-keys";
|
|
button0: button_0 {
|
|
gpios = <&gpio1 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
|
label = "Push button 0";
|
|
zephyr,code = <INPUT_KEY_0>;
|
|
};
|
|
button1: button_1 {
|
|
gpios = <&gpio1 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
|
label = "Push button 1";
|
|
zephyr,code = <INPUT_KEY_1>;
|
|
};
|
|
button2: button_2 {
|
|
gpios = <&gpio1 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
|
label = "Push button 2";
|
|
zephyr,code = <INPUT_KEY_2>;
|
|
};
|
|
button3: button_3 {
|
|
gpios = <&gpio0 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
|
label = "Push button 3";
|
|
zephyr,code = <INPUT_KEY_3>;
|
|
};
|
|
};
|
|
|
|
aliases {
|
|
led0 = &led0;
|
|
led1 = &led1;
|
|
led2 = &led2;
|
|
led3 = &led3;
|
|
sw0 = &button0;
|
|
sw1 = &button1;
|
|
sw2 = &button2;
|
|
sw3 = &button3;
|
|
watchdog0 = &wdt31;
|
|
};
|
|
};
|
|
|
|
&uart20 {
|
|
current-speed = <115200>;
|
|
pinctrl-0 = <&uart20_default>;
|
|
pinctrl-1 = <&uart20_sleep>;
|
|
pinctrl-names = "default", "sleep";
|
|
};
|