1/*
2 * Copyright (c) 2025 Renesas Electronics Corporation
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6/dts-v1/;
7
8#include <renesas/ra/ra4/r7fa4e10d2cfm.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#include "fpb_ra4e1-pinctrl.dtsi"
13
14/ {
15	model = "Renesas FPB-RA4E1";
16	compatible = "renesas,ra4e1", "renesas,ra";
17
18	chosen {
19		zephyr,sram = &sram0;
20		zephyr,flash-controller = &flash1;
21		zephyr,flash = &flash0;
22		zephyr,console = &uart0;
23		zephyr,shell-uart = &uart0;
24		zephyr,entropy = &trng;
25	};
26
27	leds {
28		compatible = "gpio-leds";
29
30		led1: led1 {
31			gpios = <&ioport4 8 GPIO_ACTIVE_HIGH>;
32			label = "LED1";
33		};
34
35		led2: led2 {
36			gpios = <&ioport4 7 GPIO_ACTIVE_HIGH>;
37			label = "LED2";
38		};
39	};
40
41	buttons {
42		compatible = "gpio-keys";
43
44		button0: s1 {
45			gpios = <&ioport2 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
46			label = "Push button switch 1";
47			zephyr,code = <INPUT_KEY_0>;
48		};
49	};
50
51	aliases {
52		led0 = &led1;
53		sw0 = &button0;
54		watchdog0 = &wdt;
55	};
56};
57
58&subclk {
59	status = "okay";
60};
61
62&pll {
63	clocks = <&hoco>;
64	div = <2>;
65	mul = <20 0>;
66	status = "okay";
67};
68
69&sci0 {
70	pinctrl-0 = <&sci0_default>;
71	pinctrl-names = "default";
72	status = "okay";
73
74	uart0: uart {
75		current-speed = <115200>;
76		status = "okay";
77	};
78};
79
80&ioport0 {
81	status = "okay";
82};
83
84&ioport1 {
85	status = "okay";
86};
87
88&ioport2 {
89	status = "okay";
90};
91
92&ioport3 {
93	status = "okay";
94};
95
96&ioport4 {
97	status = "okay";
98};
99
100&spi0 {
101	pinctrl-0 = <&spi0_default>;
102	pinctrl-names = "default";
103	status = "okay";
104};
105
106&iic0 {
107	status = "okay";
108	#address-cells = <1>;
109	#size-cells = <0>;
110	interrupts = <91 1>, <92 1>, <93 1>, <94 1>;
111	interrupt-names = "rxi", "txi", "tei", "eri";
112	clock-frequency = <DT_FREQ_M(1)>;
113	pinctrl-0 = <&iic0_default>;
114	pinctrl-names = "default";
115};
116
117&adc0 {
118	status = "okay";
119	pinctrl-0 = <&adc0_default>;
120	pinctrl-names = "default";
121};
122
123&dac0 {
124	pinctrl-0 = <&dac0_default>;
125	pinctrl-names = "default";
126	status = "okay";
127};
128
129&port_irq1 {
130	interrupts = <41 12>;
131	status = "okay";
132};
133
134&pwm1 {
135	pinctrl-0 = <&pwm1_default>;
136	pinctrl-names = "default";
137	interrupts = <63 1>, <64 1>;
138	interrupt-names = "gtioca", "overflow";
139	status = "okay";
140};
141
142&trng {
143	status = "okay";
144};
145
146&flash1 {
147	partitions {
148		compatible = "fixed-partitions";
149		#address-cells = <1>;
150		#size-cells = <1>;
151
152		storage_partition: partition@0 {
153			label = "storage";
154			reg = <0X0 DT_SIZE_K(8)>;
155		};
156	};
157};
158
159&wdt {
160	status = "okay";
161};
162