Skip to content

Commit 5d22d03

Browse files
duynguyenxaquytranpzz
authored andcommitted
soc: renesas: Add initial support for RA6M3 SoC
Initial commit to support RA6M3 SoC Signed-off-by: Duy Phuong Hoang. Nguyen <[email protected]> Signed-off-by: Quy Tran <[email protected]>
1 parent beb4191 commit 5d22d03

File tree

12 files changed

+640
-0
lines changed

12 files changed

+640
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright (c) 2024 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <arm/renesas/ra/ra6/r7fa6m3ax.dtsi>
8+
9+
/ {
10+
soc {
11+
flash-controller@407e0000 {
12+
reg = <0x407e0000 0x1000>;
13+
#address-cells = <1>;
14+
#size-cells = <1>;
15+
flash0: flash@0 {
16+
compatible = "soc-nv-flash";
17+
reg = <0x0 DT_SIZE_M(2)>;
18+
};
19+
};
20+
};
21+
};
Lines changed: 219 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,219 @@
1+
/*
2+
* Copyright (c) 2024 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <arm/renesas/ra/ra6/ra6-cm4-common.dtsi>
8+
#include <zephyr/dt-bindings/clock/ra_clock.h>
9+
10+
/ {
11+
soc {
12+
sram0: memory@1ffe0000 {
13+
compatible = "mmio-sram";
14+
reg = <0x1ffe0000 DT_SIZE_K(640)>;
15+
};
16+
17+
ioport8: gpio@40040100 {
18+
compatible = "renesas,ra-gpio-ioport";
19+
reg = <0x40040100 0x20>;
20+
port = <8>;
21+
gpio-controller;
22+
#gpio-cells = <2>;
23+
ngpios = <16>;
24+
status = "disabled";
25+
};
26+
27+
ioport9: gpio@40040120 {
28+
compatible = "renesas,ra-gpio-ioport";
29+
reg = <0x40040120 0x20>;
30+
port = <9>;
31+
gpio-controller;
32+
#gpio-cells = <2>;
33+
ngpios = <16>;
34+
status = "disabled";
35+
};
36+
37+
ioporta: gpio@40040140 {
38+
compatible = "renesas,ra-gpio-ioport";
39+
reg = <0x40040140 0x20>;
40+
port = <10>;
41+
gpio-controller;
42+
#gpio-cells = <2>;
43+
ngpios = <16>;
44+
status = "disabled";
45+
};
46+
47+
ioportb: gpio@40040160 {
48+
compatible = "renesas,ra-gpio-ioport";
49+
reg = <0x40040160 0x20>;
50+
port = <11>;
51+
gpio-controller;
52+
#gpio-cells = <2>;
53+
ngpios = <16>;
54+
status = "disabled";
55+
};
56+
57+
sci5: sci5@400700a0 {
58+
compatible = "renesas,ra-sci";
59+
interrupts = <20 1>, <21 1>, <22 1>, <23 1>;
60+
interrupt-names = "rxi", "txi", "tei", "eri";
61+
reg = <0x400700a0 0x20>;
62+
clocks = <&pclka MSTPB 26>;
63+
status = "disabled";
64+
uart {
65+
compatible = "renesas,ra-sci-uart";
66+
channel = <5>;
67+
status = "disabled";
68+
};
69+
};
70+
71+
sci6: sci6@400700c0 {
72+
compatible = "renesas,ra-sci";
73+
interrupts = <24 1>, <25 1>, <26 1>, <27 1>;
74+
interrupt-names = "rxi", "txi", "tei", "eri";
75+
reg = <0x400700c0 0x20>;
76+
clocks = <&pclka MSTPB 25>;
77+
status = "disabled";
78+
uart {
79+
compatible = "renesas,ra-sci-uart";
80+
channel = <6>;
81+
status = "disabled";
82+
};
83+
};
84+
85+
sci7: sci7@400700e0 {
86+
compatible = "renesas,ra-sci";
87+
interrupts = <28 1>, <29 1>, <30 1>, <31 1>;
88+
interrupt-names = "rxi", "txi", "tei", "eri";
89+
reg = <0x400700e0 0x20>;
90+
clocks = <&pclka MSTPB 24>;
91+
status = "disabled";
92+
uart {
93+
compatible = "renesas,ra-sci-uart";
94+
channel = <7>;
95+
status = "disabled";
96+
};
97+
};
98+
};
99+
100+
clocks: clocks {
101+
xtal: clock-xtal {
102+
compatible = "renesas,ra-cgc-external-clock";
103+
clock-frequency = <DT_FREQ_M(24)>;
104+
#clock-cells = <0>;
105+
status = "disabled";
106+
};
107+
108+
hoco: clock-hoco {
109+
compatible = "fixed-clock";
110+
clock-frequency = <DT_FREQ_M(20)>;
111+
#clock-cells = <0>;
112+
};
113+
114+
moco: clock-moco {
115+
compatible = "fixed-clock";
116+
clock-frequency = <DT_FREQ_M(8)>;
117+
#clock-cells = <0>;
118+
};
119+
120+
loco: clock-loco {
121+
compatible = "fixed-clock";
122+
clock-frequency = <32768>;
123+
#clock-cells = <0>;
124+
};
125+
126+
subclk: clock-subclk {
127+
compatible = "renesas,ra-cgc-subclk";
128+
clock-frequency = <32768>;
129+
#clock-cells = <0>;
130+
status = "disabled";
131+
};
132+
133+
pll: pll {
134+
compatible = "renesas,ra-cgc-pll";
135+
#clock-cells = <0>;
136+
137+
/* PLL */
138+
source = <RA_PLL_SOURCE_MAIN_OSC>;
139+
div = <RA_PLL_DIV_2>;
140+
mul = <20 0>;
141+
status = "disabled";
142+
};
143+
144+
pclkblock: pclkblock {
145+
compatible = "renesas,ra-cgc-pclk-block";
146+
#clock-cells = <0>;
147+
sysclock-src = <RA_CLOCK_SOURCE_PLL>;
148+
status = "okay";
149+
150+
iclk: iclk {
151+
compatible = "renesas,ra-cgc-pclk";
152+
clk_div = <RA_SYS_CLOCK_DIV_2>;
153+
#clock-cells = <2>;
154+
status = "okay";
155+
};
156+
157+
pclka: pclka {
158+
compatible = "renesas,ra-cgc-pclk";
159+
clk_div = <RA_SYS_CLOCK_DIV_2>;
160+
#clock-cells = <2>;
161+
status = "okay";
162+
};
163+
164+
pclkb: pclkb {
165+
compatible = "renesas,ra-cgc-pclk";
166+
clk_div = <RA_SYS_CLOCK_DIV_4>;
167+
#clock-cells = <2>;
168+
status = "okay";
169+
};
170+
171+
pclkc: pclkc {
172+
compatible = "renesas,ra-cgc-pclk";
173+
clk_div = <RA_SYS_CLOCK_DIV_4>;
174+
#clock-cells = <2>;
175+
status = "okay";
176+
};
177+
178+
pclkd: pclkd {
179+
compatible = "renesas,ra-cgc-pclk";
180+
clk_div = <RA_SYS_CLOCK_DIV_2>;
181+
#clock-cells = <2>;
182+
status = "okay";
183+
};
184+
185+
bclk: bclk {
186+
compatible = "renesas,ra-cgc-pclk";
187+
clk_div = <RA_SYS_CLOCK_DIV_2>;
188+
bclkout: bclkout {
189+
compatible = "renesas,ra-cgc-busclk";
190+
clk_out_div = <2>;
191+
sdclk = <1>;
192+
#clock-cells = <0>;
193+
};
194+
#clock-cells = <2>;
195+
status = "okay";
196+
};
197+
198+
uclk: uclk {
199+
compatible = "renesas,ra-cgc-pclk";
200+
clk_div = <RA_USB_CLOCK_DIV_5>;
201+
#clock-cells = <2>;
202+
status = "okay";
203+
};
204+
205+
fclk: fclk {
206+
compatible = "renesas,ra-cgc-pclk";
207+
clk_div = <RA_SYS_CLOCK_DIV_4>;
208+
#clock-cells = <2>;
209+
status = "okay";
210+
};
211+
212+
clkout: clkout {
213+
compatible = "renesas,ra-cgc-pclk";
214+
#clock-cells = <2>;
215+
status = "disabled";
216+
};
217+
};
218+
};
219+
};

0 commit comments

Comments
 (0)