1/*
2 * Copyright (c) 2024 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include "nrf54l15pdk_nrf54l15-pinctrl.dtsi"
8
9/ {
10	leds {
11		compatible = "gpio-leds";
12		led0: led_0 {
13			gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>;
14			label = "Green LED 0";
15		};
16		led1: led_1 {
17			gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
18			label = "Green LED 1";
19		};
20		led2: led_2 {
21			gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>;
22			label = "Green LED 2";
23		};
24		led3: led_3 {
25			gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
26			label = "Green LED 3";
27		};
28	};
29
30	pwmleds {
31		compatible = "pwm-leds";
32		/*
33		 * PWM signal can be exposed on GPIO pin only within same domain.
34		 * There is only one domain which contains both PWM and GPIO:
35		 * PWM20/21/22 and GPIO Port P1.
36		 * Only LEDs connected to P1 can work with PWM, for example LED1.
37		 */
38		pwm_led1: pwm_led_1 {
39			pwms = <&pwm20 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
40		};
41	};
42
43	buttons {
44		compatible = "gpio-keys";
45		button0: button_0 {
46			gpios = <&gpio1 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
47			label = "Push button 0";
48			zephyr,code = <INPUT_KEY_0>;
49		};
50		button1: button_1 {
51			gpios = <&gpio1 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
52			label = "Push button 1";
53			zephyr,code = <INPUT_KEY_1>;
54		};
55		button2: button_2 {
56			gpios = <&gpio1 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
57			label = "Push button 2";
58			zephyr,code = <INPUT_KEY_2>;
59		};
60		button3: button_3 {
61			gpios = <&gpio0 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
62			label = "Push button 3";
63			zephyr,code = <INPUT_KEY_3>;
64		};
65	};
66
67	aliases {
68		led0 = &led0;
69		led1 = &led1;
70		led2 = &led2;
71		led3 = &led3;
72		pwm-led0 = &pwm_led1;
73		sw0 = &button0;
74		sw1 = &button1;
75		sw2 = &button2;
76		sw3 = &button3;
77		watchdog0 = &wdt31;
78	};
79};
80
81&uart20 {
82	current-speed = <115200>;
83	pinctrl-0 = <&uart20_default>;
84	pinctrl-1 = <&uart20_sleep>;
85	pinctrl-names = "default", "sleep";
86};
87
88&uart30 {
89	current-speed = <115200>;
90	pinctrl-0 = <&uart30_default>;
91	pinctrl-1 = <&uart30_sleep>;
92	pinctrl-names = "default", "sleep";
93};
94
95&pwm20 {
96	status = "okay";
97	pinctrl-0 = <&pwm20_default>;
98	pinctrl-1 = <&pwm20_sleep>;
99	pinctrl-names = "default", "sleep";
100};
101