1/*
2 * Copyright (c) 2025 Renesas Electronics Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8
9#include <renesas/ra/ra2/ra2l1.dtsi>
10#include <renesas/ra/ra2/r7fa2l1xb.dtsi>
11#include <renesas/ra/ra2/r7fa2l1xxxxfp.dtsi>
12
13#include <zephyr/dt-bindings/gpio/gpio.h>
14#include <zephyr/dt-bindings/input/input-event-codes.h>
15#include "rssk_ra2l1-pinctrl.dtsi"
16
17/ {
18	model = "Renesas RSSK-RA2L1";
19	compatible = "renesas,r7fa2l1abxxfp", "renesas,ra2l1";
20
21	chosen {
22		zephyr,sram = &sram0;
23		zephyr,flash = &flash0;
24		zephyr,console = &uart9;
25		zephyr,shell-uart = &uart9;
26	};
27
28	leds {
29		compatible = "gpio-leds";
30
31		led2: led2 {
32			gpios = <&ioport3 5 GPIO_ACTIVE_HIGH>;
33			label = "LED2";
34		};
35
36		led3: led3 {
37			gpios = <&ioport3 4 GPIO_ACTIVE_HIGH>;
38			label = "LED3";
39		};
40	};
41
42	buttons {
43		compatible = "gpio-keys";
44
45		button0: s2 {
46			gpios = <&ioport2 6 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
47			label = "Push button switch 2";
48			zephyr,code = <INPUT_KEY_0>;
49		};
50
51		button1: s3 {
52			gpios = <&ioport2 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
53			label = "Push button switch 3";
54			zephyr,code = <INPUT_KEY_1>;
55		};
56	};
57
58	aliases {
59		led0 = &led2;
60		led1 = &led3;
61		sw0 = &button0;
62		sw1 = &button1;
63		watchdog0 = &wdt;
64	};
65};
66
67&ioport2 {
68	status = "okay";
69};
70
71&ioport3 {
72	status = "okay";
73};
74
75&port_irq0 {
76	interrupts = <8 3>;
77	status = "okay";
78};
79
80&port_irq1 {
81	interrupts = <9 3>;
82	status = "okay";
83};
84
85&sci9 {
86	pinctrl-0 = <&sci9_default>;
87	pinctrl-names = "default";
88	interrupts = <0 3>, <1 3>, <2 3>, <3 3>;
89	interrupt-names = "rxi", "txi", "tei", "eri";
90	status = "okay";
91
92	uart9: uart {
93		current-speed = <115200>;
94		status = "okay";
95	};
96};
97
98&wdt {
99	status = "okay";
100};
101