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/r7fa6e2bb3cfm.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 "fpb_ra6e2-pinctrl.dtsi"
14
15/ {
16	model = "Renesas FPB-RA6E2";
17	compatible = "renesas,ra6e2", "renesas,ra";
18
19	chosen {
20		zephyr,sram = &sram0;
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		led1: led1 {
30			gpios = <&ioport2 7 GPIO_ACTIVE_HIGH>;
31			label = "LED1";
32		};
33		led2: led2 {
34			gpios = <&ioport2 6 GPIO_ACTIVE_HIGH>;
35			label = "LED2";
36		};
37	};
38
39	buttons {
40		compatible = "gpio-keys";
41		button0: s1 {
42			gpios = <&ioport3 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
43			label = "Push button switch 1";
44			zephyr,code = <INPUT_KEY_0>;
45		};
46	};
47
48	aliases {
49		led0 = &led1;
50		led1 = &led2;
51		sw0 = &button0;
52	};
53};
54
55&sci0 {
56	pinctrl-0 = <&sci0_default>;
57	pinctrl-names = "default";
58	status = "okay";
59	uart0: uart {
60		current-speed = <115200>;
61		status = "okay";
62	};
63};
64
65&spi0 {
66	pinctrl-0 = <&spi0_default>;
67	pinctrl-names = "default";
68	status = "okay";
69};
70
71&ioport2 {
72	status = "okay";
73};
74
75&ioport3 {
76	status = "okay";
77};
78
79&flash0 {
80	partitions {
81		compatible = "fixed-partitions";
82		#address-cells = <1>;
83		#size-cells = <1>;
84
85		boot_partition: partition@0 {
86			label = "application";
87			reg = <0x00000000 DT_SIZE_K(128)>;
88		};
89
90		storage_partition: partition@20000 {
91			label = "storage";
92			reg = <0x20000 DT_SIZE_K(128)>;
93		};
94	};
95};
96
97&subclk {
98	status = "okay";
99};
100
101&pll {
102	clocks = <&hoco>;
103	div = <1>;
104	mul = <10 0>;
105	status = "okay";
106};
107
108&adc0 {
109	status = "okay";
110	pinctrl-0 = <&adc0_default>;
111	pinctrl-names = "default";
112};
113
114&port_irq9 {
115	interrupts = <41 12>;
116	status = "okay";
117};
118
119&pwm1 {
120	pinctrl-0 = <&pwm1_default>;
121	pinctrl-names = "default";
122	interrupts = <63 1>, <64 1>;
123	interrupt-names = "gtioca", "overflow";
124	divider = <RA_PWM_SOURCE_DIV_256>;
125	status = "okay";
126};
127
128&trng {
129	status ="okay";
130};
131