1/*
2 * Copyright (c) 2023 Antmicro <www.antmicro.com>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include <dt-bindings/pinctrl/renesas-rzt2m-pinctrl.h>
9#include <arm/renesas/rz/rzt2m.dtsi>
10#include <zephyr/dt-bindings/input/input-event-codes.h>
11
12/ {
13	model = "RZT/2M Starter Kit";
14	compatible = "renesas,rzt2m_starter_kit";
15
16	chosen {
17		zephyr,sram = &cpu0_atcm;
18		zephyr,console = &uart0;
19		zephyr,shell-uart = &uart0;
20	};
21
22	aliases {
23		led0 = &led0;
24		sw0 = &sw1;
25	};
26
27	leds {
28		compatible = "gpio-leds";
29		led0: led0 {
30			gpios = <&gpio19 6 0>;
31			label = "led0";
32		};
33		led1: led1 {
34			gpios = <&gpio19 4 0>;
35			label = "led1";
36		};
37		led2: led2 {
38			gpios = <&gpio20 0 0>;
39			label = "led2";
40		};
41		led3: led3 {
42			gpios = <&gpio23 4 0>;
43			label = "led3";
44		};
45	};
46
47	gpio_keys {
48		compatible = "gpio-keys";
49		sw1: sw1 {
50			label = "sw1";
51			gpios = <&gpio10 5 0>;
52			zephyr,code = <INPUT_KEY_0>;
53		};
54		sw2: sw2 {
55			label = "sw2";
56			gpios = <&gpio16 3 0>;
57			zephyr,code = <INPUT_KEY_1>;
58		};
59	};
60};
61
62
63&pinctrl {
64	uart0_default: uart0_default {
65		group1 {
66			pinmux = <UART0TX_P16_5>;
67		};
68		group2 {
69			pinmux = <UART0RX_P16_6>;
70			input-enable;
71		};
72	};
73	uart3_default: uart3_default {
74		group1 {
75			pinmux = <UART3TX_P18_0>;
76		};
77		group2 {
78			pinmux = <UART3RX_P17_7>;
79			input-enable;
80		};
81	};
82};
83
84&uart0 {
85	status = "okay";
86	pinctrl-0 = <&uart0_default>;
87	pinctrl-names = "default";
88};
89
90&uart3 {
91	status = "okay";
92	pinctrl-0 = <&uart3_default>;
93	pinctrl-names = "default";
94};
95