Skip to content

Commit 388cb47

Browse files
nlebayonYann-lms
authored andcommitted
feat(stm32mp25-fdts): update 2GB DDR configs
Update the 2GB LpDDR4 and DDR4 DT settings. Signed-off-by: Nicolas Le Bayon <[email protected]> Change-Id: I2c33105f31364ff15a66a0749b2400dd69db33e3
1 parent 29917d3 commit 388cb47

2 files changed

+43
-35
lines changed

fdts/stm32mp25-ddr4-2x8Gbits-2x16bits-1200MHz.dtsi

+28-24
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
22
/*
3-
* Copyright (C) 2022-2024, STMicroelectronics - All Rights Reserved
3+
* Copyright (C) 2022-2025, STMicroelectronics - All Rights Reserved
44
*/
55

66
/*
77
* STM32MP25 DDR4 board configuration
88
* DDR4 2x8Gbits 2x16bits 1200MHz
99
*
10-
* version 1
11-
* package 1 Package selection (14x14 and 18x18)
12-
* memclk 1200MHz (2x DFI clock) + range check
13-
* Speed_Bin Worse from JEDEC
14-
* width 32 32: full width / 16: half width
15-
* ranks 1 Single or Dual rank
16-
* density 8Gbits (per 16bit device)
17-
* Addressing RBC row/bank interleaving
18-
* RDBI No Read DBI
10+
* version 2
11+
* package 1 Package selection (14x14 and 18x18)
12+
* memclk 1200MHz (2x DFI clock) + range check
13+
* Speed_Bin Worse from JEDEC
14+
* device_width 16 x16 by default
15+
* width 32 32: full width / 16: half width
16+
* density 8Gbits (per device)
17+
* Addressing RBC row/bank interleaving
18+
* RDBI No Read DBI
1919
*/
2020

2121
#define DDR_MEM_NAME "DDR4 2x8Gbits 2x16bits 1200MHz"
@@ -49,6 +49,7 @@
4949
#define DDR_INIT7 0x00000C16
5050
#define DDR_DIMMCTL 0x00000000
5151
#define DDR_RANKCTL 0x0000066F
52+
#define DDR_RANKCTL1 0x0000000D
5253
#define DDR_DRAMTMG0 0x11152815
5354
#define DDR_DRAMTMG1 0x0004051E
5455
#define DDR_DRAMTMG2 0x0609060D
@@ -94,31 +95,34 @@
9495
#define DDR_ADDRMAP11 0x00000007
9596
#define DDR_ODTCFG 0x06000618
9697
#define DDR_ODTMAP 0x00000001
97-
#define DDR_SCHED 0x00000F00
98+
#define DDR_SCHED 0x80001B00
9899
#define DDR_SCHED1 0x00000000
99-
#define DDR_PERFHPR1 0x0F000001
100-
#define DDR_PERFLPR1 0x0F000080
101-
#define DDR_PERFWR1 0x01000200
100+
#define DDR_PERFHPR1 0x04000200
101+
#define DDR_PERFLPR1 0x08000080
102+
#define DDR_PERFWR1 0x08000400
103+
#define DDR_SCHED3 0x04040208
104+
#define DDR_SCHED4 0x08400810
102105
#define DDR_DBG0 0x00000000
103106
#define DDR_DBG1 0x00000000
104107
#define DDR_DBGCMD 0x00000000
105108
#define DDR_SWCTL 0x00000000
109+
#define DDR_SWCTLSTATIC 0x00000000
106110
#define DDR_POISONCFG 0x00000000
107111
#define DDR_PCCFG 0x00000000
108-
#define DDR_PCFGR_0 0x00004100
112+
#define DDR_PCFGR_0 0x00704100
109113
#define DDR_PCFGW_0 0x00004100
110114
#define DDR_PCTRL_0 0x00000000
111-
#define DDR_PCFGQOS0_0 0x00200007
112-
#define DDR_PCFGQOS1_0 0x01000100
113-
#define DDR_PCFGWQOS0_0 0x00000C07
114-
#define DDR_PCFGWQOS1_0 0x02000200
115-
#define DDR_PCFGR_1 0x00004100
115+
#define DDR_PCFGQOS0_0 0x0021000C
116+
#define DDR_PCFGQOS1_0 0x01000080
117+
#define DDR_PCFGWQOS0_0 0x01100C07
118+
#define DDR_PCFGWQOS1_0 0x04000200
119+
#define DDR_PCFGR_1 0x00704100
116120
#define DDR_PCFGW_1 0x00004100
117121
#define DDR_PCTRL_1 0x00000000
118-
#define DDR_PCFGQOS0_1 0x00200007
119-
#define DDR_PCFGQOS1_1 0x01000180
120-
#define DDR_PCFGWQOS0_1 0x00000C07
121-
#define DDR_PCFGWQOS1_1 0x04000400
122+
#define DDR_PCFGQOS0_1 0x00100007
123+
#define DDR_PCFGQOS1_1 0x01000080
124+
#define DDR_PCFGWQOS0_1 0x01100C07
125+
#define DDR_PCFGWQOS1_1 0x04000200
122126

123127
#define DDR_UIB_DRAMTYPE 0x00000000
124128
#define DDR_UIB_DIMMTYPE 0x00000004

fdts/stm32mp25-lpddr4-1x16Gbits-1x32bits-1200MHz.dtsi

+15-11
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* STM32MP25 LPDDR4 board configuration
88
* LPDDR4 1x16Gbits 1x32bits 1200MHz
99
*
10-
* version 1
10+
* version 2
1111
* memclk 1200MHz (2x DFI clock)
1212
* width 32 32: full width / 16: half width
1313
* ranks 1 Single or Dual rank
@@ -46,10 +46,11 @@
4646
#define DDR_INIT3 0x00C40024
4747
#define DDR_INIT4 0x00310008
4848
#define DDR_INIT5 0x00100004
49-
#define DDR_INIT6 0x00660050
50-
#define DDR_INIT7 0x00050019
49+
#define DDR_INIT6 0x00660047
50+
#define DDR_INIT7 0x00050047
5151
#define DDR_DIMMCTL 0x00000000
5252
#define DDR_RANKCTL 0x0000066F
53+
#define DDR_RANKCTL1 0x00000011
5354
#define DDR_DRAMTMG0 0x1718141A
5455
#define DDR_DRAMTMG1 0x00050524
5556
#define DDR_DRAMTMG2 0x060C1111
@@ -95,25 +96,28 @@
9596
#define DDR_ADDRMAP11 0x00000007
9697
#define DDR_ODTCFG 0x04000400
9798
#define DDR_ODTMAP 0x00000000
98-
#define DDR_SCHED 0x00001B00
99+
#define DDR_SCHED 0x80001B00
99100
#define DDR_SCHED1 0x00000000
100101
#define DDR_PERFHPR1 0x04000200
101102
#define DDR_PERFLPR1 0x08000080
102103
#define DDR_PERFWR1 0x08000400
104+
#define DDR_SCHED3 0x04040208
105+
#define DDR_SCHED4 0x08400810
103106
#define DDR_DBG0 0x00000000
104107
#define DDR_DBG1 0x00000000
105108
#define DDR_DBGCMD 0x00000000
106109
#define DDR_SWCTL 0x00000000
110+
#define DDR_SWCTLSTATIC 0x00000000
107111
#define DDR_POISONCFG 0x00000000
108112
#define DDR_PCCFG 0x00000000
109-
#define DDR_PCFGR_0 0x00004100
113+
#define DDR_PCFGR_0 0x00704100
110114
#define DDR_PCFGW_0 0x00004100
111115
#define DDR_PCTRL_0 0x00000000
112116
#define DDR_PCFGQOS0_0 0x0021000C
113117
#define DDR_PCFGQOS1_0 0x01000080
114118
#define DDR_PCFGWQOS0_0 0x01100C07
115119
#define DDR_PCFGWQOS1_0 0x04000200
116-
#define DDR_PCFGR_1 0x00004100
120+
#define DDR_PCFGR_1 0x00704100
117121
#define DDR_PCFGW_1 0x00004100
118122
#define DDR_PCTRL_1 0x00000000
119123
#define DDR_PCFGQOS0_1 0x00100007
@@ -148,16 +152,16 @@
148152
#define DDR_UIA_EXTCALRESVAL 0x00000000
149153
#define DDR_UIA_IS2TTIMING_0 0x00000000
150154
#define DDR_UIA_ODTIMPEDANCE_0 0x00000035
151-
#define DDR_UIA_TXIMPEDANCE_0 0x0000003C
152-
#define DDR_UIA_ATXIMPEDANCE 0x0000001E
155+
#define DDR_UIA_TXIMPEDANCE_0 0x00000028
156+
#define DDR_UIA_ATXIMPEDANCE 0x00000028
153157
#define DDR_UIA_MEMALERTEN 0x00000000
154158
#define DDR_UIA_MEMALERTPUIMP 0x00000000
155159
#define DDR_UIA_MEMALERTVREFLEVEL 0x00000000
156160
#define DDR_UIA_MEMALERTSYNCBYPASS 0x00000000
157161
#define DDR_UIA_DISDYNADRTRI_0 0x00000001
158162
#define DDR_UIA_PHYMSTRTRAININTERVAL_0 0x0000000A
159163
#define DDR_UIA_PHYMSTRMAXREQTOACK_0 0x00000005
160-
#define DDR_UIA_WDQSEXT 0x00000000
164+
#define DDR_UIA_WDQSEXT 0x00000001
161165
#define DDR_UIA_CALINTERVAL 0x00000009
162166
#define DDR_UIA_CALONCE 0x00000000
163167
#define DDR_UIA_LP4RL_0 0x00000004
@@ -193,9 +197,9 @@
193197
#define DDR_UIM_MR5_0 0x00000000
194198
#define DDR_UIM_MR6_0 0x00000000
195199
#define DDR_UIM_MR11_0 0x00000066
196-
#define DDR_UIM_MR12_0 0x00000050
200+
#define DDR_UIM_MR12_0 0x00000047
197201
#define DDR_UIM_MR13_0 0x00000008
198-
#define DDR_UIM_MR14_0 0x00000019
202+
#define DDR_UIM_MR14_0 0x00000047
199203
#define DDR_UIM_MR22_0 0x00000005
200204

201205
#define DDR_UIS_SWIZZLE_0 0x00000003

0 commit comments

Comments
 (0)