File tree Expand file tree Collapse file tree 9 files changed +123
-33
lines changed Expand file tree Collapse file tree 9 files changed +123
-33
lines changed Original file line number Diff line number Diff line change 9
9
/ {
10
10
soc {
11
11
flash-controller@407e0000 {
12
+ flash-hardware-version = <3>;
13
+ #erase-block-cells = <2>;
14
+
12
15
flash0: flash@0 {
13
- compatible = "soc-nv-flash";
14
- reg = <0x00000000 DT_SIZE_K(256)>;
16
+ compatible = "renesas,ra-nv-code-flash";
17
+ reg = <0x0 DT_SIZE_K(256)>;
18
+ write-block-size = <8>;
19
+ erase-block-size = <2048>;
20
+ erase-blocks = <&flash 128 2048>;
21
+ programming-enable;
15
22
};
23
+
16
24
flash1: flash@40100000 {
17
- compatible = "soc -nv-flash";
25
+ compatible = "renesas,ra -nv-data -flash";
18
26
reg = <0x40100000 DT_SIZE_K(8)>;
27
+ write-block-size = <1>;
28
+ erase-block-size = <1024>;
29
+ programming-enable;
19
30
};
20
31
};
21
32
};
Original file line number Diff line number Diff line change 1
1
/**
2
2
* Copyright (c) 2024 MUNIC SA
3
+ * Copyright (c) 2025 Renesas Electronics Corporation
3
4
*
4
5
* Renesas R7FA2AL1AB MCU device tree
5
6
*
6
7
* SPDX-License-Identifier: Apache-2.0
7
8
*/
8
9
9
- &flash0 {
10
- reg = <0x0 DT_SIZE_K(256)>;
10
+ / {
11
+ soc {
12
+ flash-controller@407e0000 {
13
+ flash-hardware-version = <3>;
14
+ #erase-block-cells = <2>;
15
+
16
+ flash0: flash@0 {
17
+ compatible = "renesas,ra-nv-code-flash";
18
+ reg = <0x0 DT_SIZE_K(256)>;
19
+ write-block-size = <4>;
20
+ erase-block-size = <2048>;
21
+ erase-blocks = <&flash 128 2048>;
22
+ programming-enable;
23
+ };
24
+
25
+ flash1: flash@40100000 {
26
+ compatible = "renesas,ra-nv-data-flash";
27
+ reg = <0x40100000 DT_SIZE_K(8)>;
28
+ write-block-size = <1>;
29
+ erase-block-size = <1024>;
30
+ programming-enable;
31
+ };
32
+ };
33
+ };
11
34
};
Original file line number Diff line number Diff line change 1
1
/**
2
2
* Copyright (c) 2021-2024 MUNIC SA
3
- * Copyright (c) 2024 Renesas Electronics Corporation
3
+ * Copyright (c) 2024-2025 Renesas Electronics Corporation
4
4
*
5
5
* Renesas RA2L1 MCU series device tree
6
6
*
46
46
status = "okay";
47
47
};
48
48
49
- flcn : flash-controller@407ec000 {
50
- reg = <0x407ec000 0x10000> ;
51
-
49
+ flash : flash-controller@407e0000 {
50
+ compatible = "renesas,ra-flash-lp-controller" ;
51
+ reg = <0x407e0000 0x20000>;
52
52
#address-cells = <1>;
53
53
#size-cells = <1>;
54
-
55
- flash0: code@0 {
56
- compatible = "soc-nv-flash";
57
- /* "reg" property should be defined in the
58
- * chip specific .dtsi file
59
- */
60
- };
61
-
62
- flash1: data@40100000 {
63
- compatible = "soc-nv-flash";
64
- reg = <0x40100000 DT_SIZE_K(8)>;
65
- };
54
+ interrupts = <30 1>;
55
+ interrupt-names = "frdyi";
66
56
};
67
57
68
58
ioport0: gpio@40040000 {
Original file line number Diff line number Diff line change 240
240
status = "disabled";
241
241
};
242
242
243
- flash-controller@407e0000 {
243
+ flash: flash-controller@407e0000 {
244
+ compatible = "renesas,ra-flash-lp-controller";
244
245
reg = <0x407e0000 0x10000>;
245
246
#address-cells = <1>;
246
247
#size-cells = <1>;
248
+ interrupts = <30 1>;
249
+ interrupt-names = "frdyi";
247
250
};
248
251
249
252
agt0: agt@40084000 {
Original file line number Diff line number Diff line change 15
15
/ {
16
16
soc {
17
17
flash-controller@407e0000 {
18
+ flash-hardware-version = <3>;
19
+ #erase-block-cells = <2>;
20
+
18
21
flash0: flash@0 {
19
- compatible = "soc -nv-flash";
22
+ compatible = "renesas,ra -nv-code -flash";
20
23
reg = <0x0 DT_SIZE_K(256)>;
24
+ write-block-size = <8>;
25
+ erase-block-size = <2048>;
26
+ erase-blocks = <&flash 128 2048>;
27
+ programming-enable;
28
+ };
29
+
30
+ flash1: flash@40100000 {
31
+ compatible = "renesas,ra-nv-data-flash";
32
+ reg = <0x40100000 DT_SIZE_K(8)>;
33
+ write-block-size = <1>;
34
+ erase-block-size = <1024>;
35
+ programming-enable;
21
36
};
22
37
};
23
38
};
Original file line number Diff line number Diff line change 10
10
11
11
/ {
12
12
soc {
13
- flash-controller@407e0000 {
14
- flash0: flash@0 {
15
- compatible = "soc-nv-flash";
13
+ flash-controller@407e0000 {
14
+ flash-hardware-version = <3>;
15
+ #erase-block-cells = <2>;
16
+
17
+ flash0: flash@0 {
18
+ compatible = "renesas,ra-nv-code-flash";
16
19
reg = <0x0 DT_SIZE_K(256)>;
17
- };
18
- };
20
+ write-block-size = <8>;
21
+ erase-block-size = <2048>;
22
+ erase-blocks = <&flash 128 2048>;
23
+ programming-enable;
24
+ };
25
+
26
+ flash1: flash@40100000 {
27
+ compatible = "renesas,ra-nv-data-flash";
28
+ reg = <0x40100000 DT_SIZE_K(8)>;
29
+ write-block-size = <1>;
30
+ erase-block-size = <1024>;
31
+ programming-enable;
32
+ };
33
+ };
19
34
};
20
35
};
Original file line number Diff line number Diff line change 15
15
/ {
16
16
soc {
17
17
flash-controller@407e0000 {
18
+ flash-hardware-version = <3>;
19
+ #erase-block-cells = <2>;
20
+
18
21
flash0: flash@0 {
19
- compatible = "soc -nv-flash";
22
+ compatible = "renesas,ra -nv-code -flash";
20
23
reg = <0x0 DT_SIZE_K(256)>;
24
+ write-block-size = <8>;
25
+ erase-block-size = <2048>;
26
+ erase-blocks = <&flash 128 2048>;
27
+ programming-enable;
28
+ };
29
+
30
+ flash1: flash@40100000 {
31
+ compatible = "renesas,ra-nv-data-flash";
32
+ reg = <0x40100000 DT_SIZE_K(8)>;
33
+ write-block-size = <1>;
34
+ erase-block-size = <1024>;
35
+ programming-enable;
21
36
};
22
37
};
23
38
};
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2024 Renesas Electronics Corporation
2
+ * Copyright (c) 2024-2025 Renesas Electronics Corporation
3
3
*
4
4
* SPDX-License-Identifier: Apache-2.0
5
5
*/
16
16
};
17
17
18
18
flash-controller@407e0000 {
19
+ flash-hardware-version = <3>;
20
+ #erase-block-cells = <2>;
21
+
19
22
flash0: flash@0 {
20
- compatible = "soc -nv-flash";
23
+ compatible = "renesas,ra -nv-code -flash";
21
24
reg = <0x0 DT_SIZE_K(512)>;
25
+ write-block-size = <8>;
26
+ erase-block-size = <2048>;
27
+ erase-blocks = <&flash 256 2048>;
28
+ programming-enable;
29
+ };
30
+
31
+ flash1: flash@40100000 {
32
+ compatible = "renesas,ra-nv-data-flash";
33
+ reg = <0x40100000 DT_SIZE_K(8)>;
34
+ write-block-size = <1>;
35
+ erase-block-size = <1024>;
36
+ programming-enable;
22
37
};
23
38
};
24
39
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2024 Renesas Electronics Corporation
2
+ * Copyright (c) 2024-2025 Renesas Electronics Corporation
3
3
*
4
4
* SPDX-License-Identifier: Apache-2.0
5
5
*/
37
37
status = "okay";
38
38
};
39
39
40
- flash-controller@407e0000 {
40
+ flash: flash-controller@407e0000 {
41
+ compatible = "renesas,ra-flash-lp-controller";
41
42
reg = <0x407e0000 0x10000>;
42
43
#address-cells = <1>;
43
44
#size-cells = <1>;
45
+ interrupts = <23 1>;
46
+ interrupt-names = "frdyi";
44
47
};
45
48
46
49
ioport0: gpio@40040000 {
You can’t perform that action at this time.
0 commit comments