Skip to content

Commit a3810b8

Browse files
committed
dts: renesas ra: RA4M3 series R7FA4M3AF3CFB.
Signed-off-by: Piotr Rak <[email protected]>
1 parent c65218f commit a3810b8

File tree

3 files changed

+95
-0
lines changed

3 files changed

+95
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
/*
3+
* Copyright (c) 2024 Piotr Rak <[email protected]>
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
8+
#define RA_SOC_PINS 144
9+
10+
#include <renesas/ra/ra4mxxf-common-sp-flash-1MB.dtsi>
11+
#include <renesas/ra/ra4m-cm33-common.dtsi>
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
#include <mem.h>
2+
#include <freq.h>
3+
#include <arm/armv8-m.dtsi>
4+
#include <zephyr/dt-bindings/interrupt-controller/renesas-ra-icu.h>
5+
6+
/ {
7+
cpus {
8+
#address-cells = <1>;
9+
#size-cells = <0>;
10+
11+
cpu@0 {
12+
device_type = "cpu";
13+
compatible = "arm,cortex-m33";
14+
reg = <0>;
15+
};
16+
};
17+
18+
sram0: memory0@20000000 {
19+
compatible = "mmio-sram";
20+
reg = <0x20000000 DT_SIZE_K(128)>;
21+
};
22+
23+
soc {
24+
interrupt-parent = <&icu>;
25+
icu: interrupt-controller@40006000 {
26+
compatible = "renesas,ra-interrupt-controller-unit";
27+
reg = <0x40006000 0x40>;
28+
reg-names = "icu";
29+
interrupt-controller;
30+
#interrupt-cells = <3>;
31+
};
32+
33+
ioport0: gpio@40080000 {
34+
compatible = "renesas,ra-gpio";
35+
reg = <0x40080000 0x20>;
36+
37+
gpio-controller;
38+
#gpio-cells = <2>;
39+
ngpios = <16>;
40+
status = "disabled";
41+
};
42+
43+
ioport4: gpio@40080080 {
44+
compatible = "renesas,ra-gpio";
45+
reg = <0x40080080 0x20>;
46+
47+
gpio-controller;
48+
#gpio-cells = <2>;
49+
ngpios = <16>;
50+
status = "disabled";
51+
};
52+
53+
54+
pinctrl: pinctrl@40080800 {
55+
compatible = "renesas,ra-pinctrl";
56+
reg = <0x40080800 0x500 0x40080d03 0x1>;
57+
reg-names = "pfs", "pmisc_pwpr";
58+
status = "okay";
59+
};
60+
};
61+
};
62+
63+
&nvic {
64+
arm,num-irq-priority-bits = <4>;
65+
};
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#include <mem.h>
2+
3+
/ {
4+
soc {
5+
fcu: flash-controller@4001c100 {
6+
compatible = "renesas,ra-flash-controller";
7+
reg = <0x4001c100 0x42>;
8+
reg-names = "fcache";
9+
10+
#address-cells = <1>;
11+
#size-cells = <1>;
12+
13+
flash0: flash0@0 {
14+
compatible = "soc-nv-flash";
15+
reg = <0x00000000 DT_SIZE_K(1024)>;
16+
};
17+
};
18+
};
19+
};

0 commit comments

Comments
 (0)