Skip to content

Commit 90ab750

Browse files
khoa-nguyen-18cfriedt
authored andcommitted
dts: arm: renesas: ra: Add support MRAM node on SoC dts layer
- Add support MRAM node on Renesas SoC dts layer for RA8P1, RA8T2 - Move the MRAM and SRAM resource defination to SoC dts layer Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
1 parent cf66b0c commit 90ab750

File tree

5 files changed

+39
-32
lines changed

5 files changed

+39
-32
lines changed

boards/renesas/ek_ra8p1/ek_ra8p1.dtsi

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -113,28 +113,6 @@
113113
};
114114
};
115115

116-
&flash {
117-
flash0: flash@2000000 {
118-
compatible = "soc-nv-flash";
119-
reg = <0x2000000 0x80000>;
120-
};
121-
122-
flash1: flash@2080000 {
123-
compatible = "soc-nv-flash";
124-
reg = <0x2080000 0x80000>;
125-
};
126-
};
127-
128-
&sram {
129-
sram0: sram@22000000 {
130-
reg = <0x22000000 0xea000>;
131-
};
132-
133-
sram1: sram@220ea000 {
134-
reg = <0x220ea000 0xea000>;
135-
};
136-
};
137-
138116
&sciclk {
139117
clocks = <&pll2r>;
140118
div = <4>;

boards/renesas/mck_ra8t2/mck_ra8t2.dtsi

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,6 @@
8888
};
8989
};
9090

91-
&flash {
92-
flash0: flash@2000000 {
93-
compatible = "soc-nv-flash";
94-
reg = <0x2000000 DT_SIZE_K(1024)>;
95-
};
96-
};
97-
9891
&sciclk {
9992
status = "okay";
10093
};

dts/arm/renesas/ra/ra8/r7ka8p1kflcac.dtsi

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,32 @@
99

1010
/ {
1111
soc {
12-
sram: memory@22000000 {
12+
mram-controller@4013c000 {
13+
code_mram_cm85: mram@2000000 {
14+
compatible = "renesas,ra-nv-mram";
15+
reg = <0x2000000 DT_SIZE_K(768)>;
16+
write-block-size = <1>;
17+
erase-block-size = <32>;
18+
};
19+
20+
code_mram_cm33: mram@20c0000 {
21+
compatible = "renesas,ra-nv-mram";
22+
reg = <0x20c0000 DT_SIZE_K(256)>;
23+
write-block-size = <1>;
24+
erase-block-size = <32>;
25+
};
26+
};
27+
28+
sram0: memory@22000000 {
29+
compatible = "mmio-sram";
30+
reg = <0x22000000 DT_SIZE_K(1404)>;
31+
#address-cells = <1>;
32+
#size-cells = <1>;
33+
};
34+
35+
sram1: memory@2215f000 {
1336
compatible = "mmio-sram";
14-
reg = <0x22000000 0x1d4000>;
37+
reg = <0x2215f000 DT_SIZE_K(468)>;
1538
#address-cells = <1>;
1639
#size-cells = <1>;
1740
};

dts/arm/renesas/ra/ra8/r7ka8t2lfecac.dtsi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,20 @@
88

99
/ {
1010
soc {
11+
mram-controller@4013c000 {
12+
code_mram_cm85: mram@2000000 {
13+
compatible = "renesas,ra-nv-mram";
14+
reg = <0x2000000 DT_SIZE_M(1)>;
15+
write-block-size = <1>;
16+
erase-block-size = <32>;
17+
};
18+
};
19+
1120
sram0: memory@22000000 {
1221
compatible = "mmio-sram";
1322
reg = <0x22000000 DT_SIZE_K(1664)>;
23+
#address-cells = <1>;
24+
#size-cells = <1>;
1425
};
1526
};
1627
};

dts/arm/renesas/ra/ra8/ra8x2.dtsi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@
7373
status = "okay";
7474
};
7575

76-
flash: flash-controller@4013c000 {
76+
mram: mram-controller@4013c000 {
77+
compatible = "renesas,ra-mram-controller";
7778
reg = <0x4013c000 0x4000>;
7879
#address-cells = <1>;
7980
#size-cells = <1>;
81+
status = "okay";
8082
};
8183

8284
ioport0: gpio@40400000 {

0 commit comments

Comments
 (0)