1/*
2 * Copyright (c) 2024 Renesas Electronics Corporation
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6/dts-v1/;
7
8#include <renesas/ra/ra6/r7fa6m1ad3cfp.dtsi>
9#include <dt-bindings/gpio/gpio.h>
10#include <dt-bindings/input/input-event-codes.h>
11#include <zephyr/dt-bindings/adc/adc.h>
12
13#include "ek_ra6m1-pinctrl.dtsi"
14
15/ {
16	model = "Renesas EK-RA6M1";
17	compatible = "renesas,ra6m1", "renesas,ra";
18
19	chosen {
20		zephyr,sram = &sram0;
21		zephyr,flash = &flash0;
22		zephyr,console = &uart8;
23		zephyr,shell-uart = &uart8;
24		zephyr,entropy = &trng;
25	};
26
27	leds {
28		compatible = "gpio-leds";
29		led1: led1 {
30			gpios = <&ioport1 12 GPIO_ACTIVE_HIGH>;
31			label = "LED1";
32		};
33	};
34
35	buttons {
36		compatible = "gpio-keys";
37		button0: s1 {
38			gpios = <&ioport4 15 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
39			label = "Push button switch 1";
40			zephyr,code = <INPUT_KEY_0>;
41		};
42	};
43
44	aliases {
45		led0 = &led1;
46		sw0 = &button0;
47	};
48};
49
50&sci8 {
51	pinctrl-0 = <&sci8_default>;
52	pinctrl-names = "default";
53	status = "okay";
54	uart8: uart {
55		current-speed = <115200>;
56		status = "okay";
57	};
58};
59
60&iic0 {
61	status = "okay";
62	#address-cells = <1>;
63	#size-cells = <0>;
64	interrupts = <91 1>, <92 1>, <93 1>, <94 1>;
65	interrupt-names = "rxi", "txi", "tei", "eri";
66	clock-frequency = <DT_FREQ_M(1)>;
67	pinctrl-0 = <&iic0_default>;
68	pinctrl-names = "default";
69};
70
71&spi0 {
72	pinctrl-0 = <&spi0_default>;
73	pinctrl-names = "default";
74	status = "okay";
75};
76
77&ioport1 {
78	status = "okay";
79};
80
81&ioport4 {
82	status = "okay";
83};
84
85&xtal {
86	clock-frequency = <DT_FREQ_M(12)>;
87	mosel = <0>;
88	#clock-cells = <0>;
89	status = "okay";
90};
91
92&subclk {
93	status = "okay";
94};
95
96&pll {
97	clocks = <&xtal>;
98	div = <1>;
99	mul = <20 0>;
100	status = "okay";
101};
102
103&trng {
104	status ="okay";
105};
106
107&adc0 {
108	status = "okay";
109	pinctrl-0 = <&adc0_default>;
110	pinctrl-names = "default";
111};
112
113&port_irq8 {
114	interrupts = <41 12>;
115	status = "okay";
116};
117
118&pwm1 {
119	pinctrl-0 = <&pwm1_default>;
120	pinctrl-names = "default";
121	interrupts = <63 1>, <64 1>;
122	interrupt-names = "gtioca", "overflow";
123	status = "okay";
124};
125