1/*
2 * Copyright (c) 2023 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include <renesas/ra/r7fa4m1ab3cfm.dtsi>
9#include <zephyr/dt-bindings/gpio/gpio.h>
10
11/ {
12	model = "Arduino Uno R4 Board";
13	compatible = "renesas,r7fa4m1ab3cfm";
14
15	chosen {
16		zephyr,console = &uart2;
17		zephyr,shell-uart = &uart2;
18		zephyr,sram = &sram0;
19		zephyr,flash = &flash0;
20		zephyr,code-partition = &code_partition;
21	};
22};
23
24&sci2 {
25	status = "okay";
26	pinctrl-0 = <&sci2_default>;
27	pinctrl-names = "default";
28	uart2: uart {
29		current-speed = <115200>;
30		status = "okay";
31	};
32};
33
34&ioport1 {
35	status = "okay";
36};
37
38&flash0 {
39	partitions {
40		compatible = "fixed-partitions";
41		#address-cells = <1>;
42		#size-cells = <1>;
43
44		boot_partition: partition@0 {
45			label = "bootloader";
46			reg = <0x00000000 0x4000>;
47			read-only;
48		};
49
50		code_partition: partition@4000 {
51			label = "code";
52			reg = <0x4000 0x3C000>;
53			read-only;
54		};
55	};
56};
57
58&fcu {
59	status = "okay";
60};
61
62&hoco {
63	status = "okay";
64	clock-frequency = <48000000>;
65};
66
67&pclkblock {
68	clocks = <&hoco>;
69};
70
71&iclk {
72	div = <1>;
73};
74
75&pclka {
76	div = <1>;
77};
78
79&pclkb {
80	div = <2>;
81};
82
83&pclkc {
84	div = <1>;
85};
86
87&pclkd {
88	div = <1>;
89};
90
91&fclk {
92	div = <2>;
93};
94