Skip to content

Commit 9e1bf0b

Browse files
jacob-wienecke-nxpkartben
authored andcommitted
dts: arm: nxp: RT10xx/11xx .dtsi Files: Remove flexram,bank-spec property
This commit removes the flexram,bank-spec property from dtsi files. The property causes flexram to be dynamically configured based on the configuration in flexram,bank-spec. This is a problem for 2 reasons: 1) The FlexRAM will always be dynamically reconfigured to default fuse configuration. This is unnecessary if using default fuses. 2) If a user decides to program fuses. The FlexRAM will still be reconfigured to the default fuse configuration. Modify description in the binding to show how to use the property at: dts/bindings/memory-controllers/nxp,flexram.yaml Added board overlay to mimxrt1170_evk_cm7 magic_addr: samples/boards/nxp/mimxrt1170_evk_cm7/magic_addr/boards Signed-off-by: Jacob Wienecke <[email protected]>
1 parent 76b24fa commit 9e1bf0b

File tree

10 files changed

+57
-97
lines changed

10 files changed

+57
-97
lines changed

dts/arm/nxp/nxp_rt1010.dtsi

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

99
&flexram {
1010
flexram,num-ram-banks = <4>;
11-
/* default fuse */
12-
flexram,bank-spec = <FLEXRAM_OCRAM>,
13-
<FLEXRAM_OCRAM>,
14-
<FLEXRAM_DTCM>,
15-
<FLEXRAM_ITCM>;
1611
};
1712

1813
&sysclk {

dts/arm/nxp/nxp_rt1015.dtsi

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
1212
/* Note: RT1015 has five flexram banks, but only 4 of the 5 can
1313
* be used at the same time, for a total of 128KB of RAM.
1414
*/
15-
flexram,bank-spec = <FLEXRAM_OCRAM>,
16-
<FLEXRAM_OCRAM>,
17-
<FLEXRAM_DTCM>,
18-
<FLEXRAM_DTCM>,
19-
<FLEXRAM_ITCM>;
2015
};
2116

2217
&sysclk {

dts/arm/nxp/nxp_rt1020.dtsi

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@
99

1010
&flexram {
1111
flexram,num-ram-banks = <8>;
12-
/* default fuse */
13-
flexram,bank-spec = <FLEXRAM_OCRAM>,
14-
<FLEXRAM_OCRAM>,
15-
<FLEXRAM_DTCM>,
16-
<FLEXRAM_DTCM>,
17-
<FLEXRAM_ITCM>,
18-
<FLEXRAM_ITCM>,
19-
<FLEXRAM_OCRAM>,
20-
<FLEXRAM_OCRAM>;
2112
};
2213

2314
&sysclk {

dts/arm/nxp/nxp_rt1024.dtsi

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@
99

1010
&flexram {
1111
flexram,num-ram-banks = <8>;
12-
/* default fuse */
13-
flexram,bank-spec = <FLEXRAM_OCRAM>,
14-
<FLEXRAM_OCRAM>,
15-
<FLEXRAM_DTCM>,
16-
<FLEXRAM_DTCM>,
17-
<FLEXRAM_ITCM>,
18-
<FLEXRAM_ITCM>,
19-
<FLEXRAM_OCRAM>,
20-
<FLEXRAM_OCRAM>;
2112
};
2213

2314
&sysclk {

dts/arm/nxp/nxp_rt1050.dtsi

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,6 @@
77

88
&flexram {
99
flexram,num-ram-banks = <16>;
10-
/* default fuse */
11-
flexram,bank-spec = <FLEXRAM_OCRAM>,
12-
<FLEXRAM_OCRAM>,
13-
<FLEXRAM_OCRAM>,
14-
<FLEXRAM_OCRAM>,
15-
<FLEXRAM_DTCM>,
16-
<FLEXRAM_DTCM>,
17-
<FLEXRAM_ITCM>,
18-
<FLEXRAM_ITCM>,
19-
<FLEXRAM_ITCM>,
20-
<FLEXRAM_ITCM>,
21-
<FLEXRAM_DTCM>,
22-
<FLEXRAM_DTCM>,
23-
<FLEXRAM_OCRAM>,
24-
<FLEXRAM_OCRAM>,
25-
<FLEXRAM_OCRAM>,
26-
<FLEXRAM_OCRAM>;
2710
};
2811

2912
&ccm {

dts/arm/nxp/nxp_rt1060.dtsi

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,6 @@
1616
};
1717

1818
flexram,num-ram-banks = <16>;
19-
/* default fuse */
20-
flexram,bank-spec = <FLEXRAM_OCRAM>,
21-
<FLEXRAM_OCRAM>,
22-
<FLEXRAM_OCRAM>,
23-
<FLEXRAM_OCRAM>,
24-
<FLEXRAM_DTCM>,
25-
<FLEXRAM_DTCM>,
26-
<FLEXRAM_ITCM>,
27-
<FLEXRAM_ITCM>,
28-
<FLEXRAM_ITCM>,
29-
<FLEXRAM_ITCM>,
30-
<FLEXRAM_DTCM>,
31-
<FLEXRAM_DTCM>,
32-
<FLEXRAM_OCRAM>,
33-
<FLEXRAM_OCRAM>,
34-
<FLEXRAM_OCRAM>,
35-
<FLEXRAM_OCRAM>;
3619
};
3720

3821
&ccm {

dts/arm/nxp/nxp_rt1064.dtsi

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,6 @@
99

1010
&flexram {
1111
flexram,num-ram-banks = <16>;
12-
/* default fuse */
13-
flexram,bank-spec = <FLEXRAM_OCRAM>,
14-
<FLEXRAM_OCRAM>,
15-
<FLEXRAM_OCRAM>,
16-
<FLEXRAM_OCRAM>,
17-
<FLEXRAM_DTCM>,
18-
<FLEXRAM_DTCM>,
19-
<FLEXRAM_ITCM>,
20-
<FLEXRAM_ITCM>,
21-
<FLEXRAM_ITCM>,
22-
<FLEXRAM_ITCM>,
23-
<FLEXRAM_DTCM>,
24-
<FLEXRAM_DTCM>,
25-
<FLEXRAM_OCRAM>,
26-
<FLEXRAM_OCRAM>,
27-
<FLEXRAM_OCRAM>,
28-
<FLEXRAM_OCRAM>;
2912
};
3013

3114
&flexspi2 {

dts/arm/nxp/nxp_rt11xx_cm7.dtsi

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,6 @@
3434
flexram,bank-size = <32>;
3535
flexram,num-ram-banks = <16>;
3636
flexram,has-magic-addr;
37-
/* same as default fuse value */
38-
flexram,bank-spec = <FLEXRAM_DTCM>,
39-
<FLEXRAM_DTCM>,
40-
<FLEXRAM_DTCM>,
41-
<FLEXRAM_DTCM>,
42-
<FLEXRAM_ITCM>,
43-
<FLEXRAM_ITCM>,
44-
<FLEXRAM_ITCM>,
45-
<FLEXRAM_ITCM>,
46-
<FLEXRAM_DTCM>,
47-
<FLEXRAM_DTCM>,
48-
<FLEXRAM_DTCM>,
49-
<FLEXRAM_DTCM>,
50-
<FLEXRAM_ITCM>,
51-
<FLEXRAM_ITCM>,
52-
<FLEXRAM_ITCM>,
53-
<FLEXRAM_ITCM>;
5437

5538
itcm: itcm@0 {
5639
compatible = "zephyr,memory-region", "nxp,imx-itcm";

dts/bindings/memory-controllers/nxp,flexram.yaml

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,44 @@
11
# Copyright 2023 NXP
22
# SPDX-License-Identifier: Apache-2.0
33

4-
description: NXP FlexRAM on-chip ram controller
4+
description: |
5+
NXP FlexRAM on-chip ram controller
6+
If the flexram,bank-spec property is specified, then the flexram will be
7+
dynamically reconfigured to the configuration specified at runtime. An
8+
example to configure the flexram dynamically using the
9+
flexram,bank-spec property for rt1060 is as follows:
10+
11+
&itcm {
12+
reg = < 0x0 DT_SIZE_K(64) >;
13+
};
14+
&dtcm {
15+
reg = < 0x20000000 DT_SIZE_K(384) >;
16+
};
17+
&ocram {
18+
reg = < 0x20280000 DT_SIZE_K(64) >;
19+
};
20+
&flexram {
21+
flexram,bank-spec = <FLEXRAM_OCRAM>,
22+
<FLEXRAM_OCRAM>,
23+
<FLEXRAM_DTCM>,
24+
<FLEXRAM_DTCM>,
25+
<FLEXRAM_DTCM>,
26+
<FLEXRAM_DTCM>,
27+
<FLEXRAM_DTCM>,
28+
<FLEXRAM_DTCM>,
29+
<FLEXRAM_ITCM>,
30+
<FLEXRAM_ITCM>,
31+
<FLEXRAM_DTCM>,
32+
<FLEXRAM_DTCM>,
33+
<FLEXRAM_DTCM>,
34+
<FLEXRAM_DTCM>,
35+
<FLEXRAM_DTCM>,
36+
<FLEXRAM_DTCM>;
37+
};
38+
39+
This will configure the flexram for 384K of DTCM, 64K of ITCM,
40+
and 64K of OCRAM.
41+
542
643
include: base.yaml
744

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* default fuse */
2+
&flexram {
3+
flexram,bank-spec = <FLEXRAM_DTCM>,
4+
<FLEXRAM_DTCM>,
5+
<FLEXRAM_DTCM>,
6+
<FLEXRAM_DTCM>,
7+
<FLEXRAM_ITCM>,
8+
<FLEXRAM_ITCM>,
9+
<FLEXRAM_ITCM>,
10+
<FLEXRAM_ITCM>,
11+
<FLEXRAM_DTCM>,
12+
<FLEXRAM_DTCM>,
13+
<FLEXRAM_DTCM>,
14+
<FLEXRAM_DTCM>,
15+
<FLEXRAM_ITCM>,
16+
<FLEXRAM_ITCM>,
17+
<FLEXRAM_ITCM>,
18+
<FLEXRAM_ITCM>;
19+
};

0 commit comments

Comments
 (0)