Skip to contentSkip to conversation

ram: rk3399: Add LPDDR4 support

PATCH In review Jagan Teki 6 participants 122 messages Jul 16, 2019 – Oct 12, 2019 58 messages not in the archive Page 2 of 2

Subsystems (4)
lore
Share & tools
lore
#158 lore raw

PATCH v3 55/57 rockchip: dts: rk3399: Add LPDDR4-100 timings

In reply to a message not in the archive

Add sdram timings for LPDDR4-100 via rk3399-sdram-lpddr4-100.dtsi file. all timings are dumped from rkbin/bin/rk33/rk3399_ddr_800MHz_v1.20.bin

Associated LPDDR4 board -u-boot.dtsi can include this to make these timings available during SPL or TPL stages.

---
 arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi | 1537 +++++++++++++++++++++
 1 file changed, 1537 insertions(+)
 create mode 100644 arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi
arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi new file +1537 -0
new file mode 100644
index 0000000000..4a4414a960
@@ -0,0 +1,1537 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * (C) Copyright 2019 Rockchip Electronics Co., Ltd
+ * (C) Copyright 2019 Amarula Solutions.
+ * Author: Jagan Teki <jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org>
+ */
+
+&dmc {
+	rockchip,sdram-params = <
+		0x2
+		0xa
+		0x3
+		0x2
+		0x1
+		0x0
+		0xf
+		0xf
+		1
+		0x80241d22
+		0x15050f08
+		0x00000602
+		0x00002122
+		0x0000004c
+		0x00000000
+		0x2
+		0xa
+		0x3
+		0x2
+		0x1
+		0x0
+		0xf
+		0xf
+		1
+		0x80241d22
+		0x15050f08
+		0x00000602
+		0x00002122
+		0x0000004c
+		0x00000000
+		50
+		7
+		2
+		13
+		1
+		0x00000b00
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00013880
+		0x000c3500
+		0x00000005
+		0x00000320
+		0x00027100
+		0x00186a00
+		0x00000005
+		0x00000640
+		0x00002710
+		0x000186a0
+		0x00000005
+		0x01000064
+		0x00000000
+		0x02020101
+		0x00000102
+		0x00000050
+		0x000000c8
+		0x00000000
+		0x06140000
+		0x00081c00
+		0x0400040c
+		0x19042008
+		0x10080a11
+		0x22310800
+		0x00200f0a
+		0x0a030704
+		0x08000204
+		0x00000a0a
+		0x04006db0
+		0x0a0a0804
+		0x0600db60
+		0x0a0a0806
+		0x04000db6
+		0x02030404
+		0x0f0a0800
+		0x08040411
+		0x1400640a
+		0x02010a0a
+		0x00010001
+		0x04082012
+		0x00041109
+		0x00000000
+		0x03010000
+		0x06100048
+		0x0c280090
+		0x00bb0009
+		0x00000000
+		0x00060005
+		0x000a0005
+		0x000a0014
+		0x01000000
+		0x030a0000
+		0x0c000002
+		0x00000103
+		0x0005030a
+		0x00060037
+		0x0005006e
+		0x05050007
+		0x03030605
+		0x06050301
+		0x06030c05
+		0x05050302
+		0x03030305
+		0x00000301
+		0x00000301
+		0x00000001
+		0x00000000
+		0x00000000
+		0x01000000
+		0x80104002
+		0x00040003
+		0x00040005
+		0x00030000
+		0x00050004
+		0x00000004
+		0x00040003
+		0x00040005
+		0x18400000
+		0x00000c20
+		0x185030a0
+		0x02ec0000
+		0x00000176
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x06030300
+		0x00030303
+		0x02030200
+		0x00040703
+		0x03020302
+		0x02000407
+		0x07030203
+		0x00030f04
+		0x00070004
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00010000
+		0x20040020
+		0x00200400
+		0x01000400
+		0x00000b80
+		0x00000000
+		0x00000001
+		0x00000002
+		0x0000000e
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00500000
+		0x00640028
+		0x00640404
+		0x005000a0
+		0x060600c8
+		0x000a00c8
+		0x000d0005
+		0x000d0404
+		0x00000000
+		0x00000000
+		0x00000000
+		0x001400a3
+		0x00e30009
+		0x00120024
+		0x00040063
+		0x00000000
+		0x00310031
+		0x00000031
+		0x004d0000
+		0x004d004d
+		0x004d0000
+		0x004d004d
+		0x00010101
+		0x00000000
+		0x00000000
+		0x001400a3
+		0x00e30009
+		0x00120024
+		0x00040063
+		0x00000000
+		0x00310031
+		0x00000031
+		0x004d0000
+		0x004d004d
+		0x004d0000
+		0x004d004d
+		0x00010101
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000001
+		0x00000000
+		0x18151100
+		0x0000000c
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00020003
+		0x00400100
+		0x000c0190
+		0x01000200
+		0x03200040
+		0x00020018
+		0x00400100
+		0x00080032
+		0x00140000
+		0x00030028
+		0x01010100
+		0x02000202
+		0x0b000002
+		0x01000f0f
+		0x00000000
+		0x00000000
+		0x00010003
+		0x00000c03
+		0x00040101
+		0x04010100
+		0x01000000
+		0x02010000
+		0x00000001
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00010000
+		0x00000001
+		0x01010001
+		0x05040001
+		0x040a0703
+		0x02080808
+		0x020e000a
+		0x020f010b
+		0x000d0008
+		0x00080b0a
+		0x03000200
+		0x00000100
+		0x00000000
+		0x00000000
+		0x0d000001
+		0x00000028
+		0x00010000
+		0x00000003
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00010100
+		0x01000000
+		0x00000001
+		0x00000303
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x000556aa
+		0x000aaaaa
+		0x000aa955
+		0x00055555
+		0x000b3133
+		0x0004cd33
+		0x0004cecc
+		0x000b32cc
+		0x00010300
+		0x03000100
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00ffff00
+		0x1a160000
+		0x08000012
+		0x00000c20
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00000c20
+		0x00007940
+		0x18500409
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00001850
+		0x0000f320
+		0x0176060c
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00000176
+		0x00000e9c
+		0x02020205
+		0x03030202
+		0x00000018
+		0x00000000
+		0x00000000
+		0x00001403
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00030000
+		0x000a001c
+		0x000e0020
+		0x00060018
+		0x00000000
+		0x00000000
+		0x02000000
+		0x00090305
+		0x00050101
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x01000001
+		0x01010101
+		0x01000101
+		0x01000100
+		0x00010001
+		0x00010002
+		0x00020100
+		0x00000002
+		0x00000b00
+		0x00000000
+		0x000002ec
+		0x00000176
+		0x000030a0
+		0x00001850
+		0x00001840
+		0x01760c20
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00001850
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00000c20
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00010000
+		0x00000007
+		0x01000001
+		0x00000000
+		0x3fffffff
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x0f000101
+		0x082b3223
+		0x080c0004
+		0x00061c00
+		0x00000214
+		0x00bb0009
+		0x0c280090
+		0x06100048
+		0x00000500
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x04040100
+		0x0a000004
+		0x00000128
+		0x00000000
+		0x0003000f
+		0x00000018
+		0x00000000
+		0x00000000
+		0x00060002
+		0x00010001
+		0x00000101
+		0x00020001
+		0x00080004
+		0x00000000
+		0x05030000
+		0x070a0404
+		0x00000000
+		0x00000000
+		0x00000000
+		0x000f0f00
+		0x0000001e
+		0x00000000
+		0x01010300
+		0x00000000
+		0x00000000
+		0x01000000
+		0x00000101
+		0x55555a5a
+		0x55555a5a
+		0x55555a5a
+		0x55555a5a
+		0x0c050001
+		0x06020009
+		0x00010004
+		0x00000203
+		0x00030000
+		0x170f0000
+		0x00060018
+		0x000e0020
+		0x000a001c
+		0x00000000
+		0x00000000
+		0x00000100
+		0x140a0000
+		0x000d010a
+		0x0100c802
+		0x010a0064
+		0x000e0100
+		0x0100000e
+		0x00c900c9
+		0x00650100
+		0x1e1a0065
+		0x10010204
+		0x06070605
+		0x20000202
+		0x00201000
+		0x00201000
+		0x04041000
+		0x10020100
+		0x0003010c
+		0x004b004a
+		0x1a0f0000
+		0x0102041e
+		0x34000000
+		0x00000000
+		0x00000000
+		0x00010000
+		0x00000400
+		0x00310000
+		0x004d4d00
+		0x00120024
+		0x4d000031
+		0x0000144d
+		0x00310009
+		0x004d4d00
+		0x00000004
+		0x4d000031
+		0x0000244d
+		0x00310012
+		0x004d4d00
+		0x00090014
+		0x4d000031
+		0x0004004d
+		0x00310000
+		0x004d4d00
+		0x00120024
+		0x4d000031
+		0x0000144d
+		0x00310009
+		0x004d4d00
+		0x00000004
+		0x4d000031
+		0x0000244d
+		0x00310012
+		0x004d4d00
+		0x00090014
+		0x4d000031
+		0x0200004d
+		0x00c8000d
+		0x08080064
+		0x040a0404
+		0x03000d92
+		0x010a2001
+		0x0f11080a
+		0x0000110a
+		0x2200d92e
+		0x080c2003
+		0x0809080a
+		0x00000a0a
+		0x11006c97
+		0x040a2002
+		0x0200020a
+		0x02000200
+		0x02000200
+		0x02000200
+		0x02000200
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x01000400
+		0x00017600
+		0x00000e9c
+		0x00001850
+		0x0000f320
+		0x00000c20
+		0x00007940
+		0x08000000
+		0x00000100
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000002
+		0x76543210
+		0x0004f008
+		0x00020159
+		0x00000000
+		0x00000000
+		0x00010000
+		0x01665555
+		0x03665555
+		0x00010f00
+		0x04000100
+		0x00000000
+		0x00170180
+		0x00cc0201
+		0x00030066
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x04080000
+		0x04080400
+		0x30000000
+		0x0c00c007
+		0x00000100
+		0x00000000
+		0xfd02fe01
+		0xf708fb04
+		0xdf20ef10
+		0x7f80bf40
+		0x0001aaaa
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00200000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x02800280
+		0x02800280
+		0x02800280
+		0x02800280
+		0x00000280
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00800000
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x01590080
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000200
+		0x00000000
+		0x51315152
+		0xc0003150
+		0x010000c0
+		0x00100c00
+		0x07044204
+		0x000f0c18
+		0x01000140
+		0x00000c10
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x76543210
+		0x0004f008
+		0x00020159
+		0x00000000
+		0x00000000
+		0x00010000
+		0x01665555
+		0x03665555
+		0x00010f00
+		0x04000100
+		0x00000000
+		0x00170180
+		0x00cc0201
+		0x00030066
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x04080000
+		0x04080400
+		0x30000000
+		0x0c00c007
+		0x00000100
+		0x00000000
+		0xfd02fe01
+		0xf708fb04
+		0xdf20ef10
+		0x7f80bf40
+		0x0000aaaa
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00200000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x02800280
+		0x02800280
+		0x02800280
+		0x02800280
+		0x00000280
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00800000
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x01590080
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000200
+		0x00000000
+		0x51315152
+		0xc0003150
+		0x010000c0
+		0x00100c00
+		0x07044204
+		0x000f0c18
+		0x01000140
+		0x00000c10
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x76543210
+		0x0004f008
+		0x00020159
+		0x00000000
+		0x00000000
+		0x00010000
+		0x01665555
+		0x03665555
+		0x00010f00
+		0x04000100
+		0x00000000
+		0x00170180
+		0x00cc0201
+		0x00030066
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x04080000
+		0x04080400
+		0x30000000
+		0x0c00c007
+		0x00000100
+		0x00000000
+		0xfd02fe01
+		0xf708fb04
+		0xdf20ef10
+		0x7f80bf40
+		0x0001aaaa
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00200000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x02800280
+		0x02800280
+		0x02800280
+		0x02800280
+		0x00000280
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00800000
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x01590080
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000200
+		0x00000000
+		0x51315152
+		0xc0003150
+		0x010000c0
+		0x00100c00
+		0x07044204
+		0x000f0c18
+		0x01000140
+		0x00000c10
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x76543210
+		0x0004f008
+		0x00020159
+		0x00000000
+		0x00000000
+		0x00010000
+		0x01665555
+		0x03665555
+		0x00010f00
+		0x04000100
+		0x00000000
+		0x00170180
+		0x00cc0201
+		0x00030066
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x04080000
+		0x04080400
+		0x30000000
+		0x0c00c007
+		0x00000100
+		0x00000000
+		0xfd02fe01
+		0xf708fb04
+		0xdf20ef10
+		0x7f80bf40
+		0x0000aaaa
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00200000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x02800280
+		0x02800280
+		0x02800280
+		0x02800280
+		0x00000280
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00800000
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x01590080
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000200
+		0x00000000
+		0x51315152
+		0xc0003150
+		0x010000c0
+		0x00100c00
+		0x07044204
+		0x000f0c18
+		0x01000140
+		0x00000c10
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000002
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00400320
+		0x00000040
+		0x00dcba98
+		0x00000000
+		0x00dcba98
+		0x01000000
+		0x00020003
+		0x00000000
+		0x00000000
+		0x00000000
+		0x0000002a
+		0x00000015
+		0x00000015
+		0x0000002a
+		0x00000033
+		0x0000000c
+		0x0000000c
+		0x00000033
+		0x0a418820
+		0x003f0000
+		0x0000003f
+		0x00030055
+		0x03000300
+		0x03000300
+		0x000c0300
+		0x42080010
+		0x00000003
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000002
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00400320
+		0x00000040
+		0x00000000
+		0x00000000
+		0x00000000
+		0x01000000
+		0x00020003
+		0x00000000
+		0x00000000
+		0x00000000
+		0x0000002a
+		0x00000015
+		0x00000015
+		0x0000002a
+		0x00000033
+		0x0000000c
+		0x0000000c
+		0x00000033
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00030055
+		0x03000300
+		0x03000300
+		0x000c0300
+		0x42080010
+		0x00000003
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000002
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00400320
+		0x00000040
+		0x00000000
+		0x00000000
+		0x00000000
+		0x01000000
+		0x00020003
+		0x00000000
+		0x00000000
+		0x00000000
+		0x0000002a
+		0x00000015
+		0x00000015
+		0x0000002a
+		0x00000033
+		0x0000000c
+		0x0000000c
+		0x00000033
+		0x1ee6b16a
+		0x10000000
+		0x00000000
+		0x00030055
+		0x03000300
+		0x03000300
+		0x000c0300
+		0x42080010
+		0x00000003
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000005
+		0x04000f01
+		0x00020040
+		0x00020055
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000050
+		0x00000000
+		0x01010100
+		0x00000600
+		0x00000000
+		0x00006400
+		0x09221902
+		0x00000000
+		0x000d1f01
+		0x0d1f0d1f
+		0x0d1f0d1f
+		0x00030003
+		0x03000300
+		0x00000300
+		0x09221902
+		0x00000000
+		0x00000000
+		0x01020000
+		0x00000001
+		0x00000411
+		0x00000411
+		0x00000040
+		0x00000040
+		0x00000411
+		0x00000411
+		0x00004410
+		0x00004410
+		0x00004410
+		0x00004410
+		0x00004410
+		0x00000411
+		0x00004410
+		0x00000411
+		0x00004410
+		0x00000411
+		0x00004410
+		0x00000000
+		0x00000000
+		0x00000000
+		0x64000000
+		0x00000000
+		0x00000000
+		0x00000108
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0xe4000000
+		0x00000000
+		0x00000000
+		0x01010000
+		0x00000000
+	>;
+};
Signature · 1 line
2.18.0.321.gffc6fa0e3

A message that is not in the archive (sent off-list or not yet received): 20190716115745.12585-56-jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org

Reviewed-by
#160 lore raw

Re: [PATCH v3 55/57] rockchip: dts: rk3399: Add LPDDR4-100 timings

Quoted 8 lines · Jagan Teki

Add sdram timings for LPDDR4-100 via rk3399-sdram-lpddr4-100.dtsi file. all timings are dumped from rkbin/bin/rk33/rk3399_ddr_800MHz_v1.20.bin

Associated LPDDR4 board -u-boot.dtsi can include this to make these timings available during SPL or TPL stages.

Thanks,
 - Kever

Quoted 1,538 lines
---
  arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi | 1537 +++++++++++++++++++++
  1 file changed, 1537 insertions(+)

create mode 100644 arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi

arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi new file +1527 -0
new file mode 100644
index 0000000000..4a4414a960
@@ -0,0 +1,1537 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * (C) Copyright 2019 Rockchip Electronics Co., Ltd
+ * (C) Copyright 2019 Amarula Solutions.
+ * Author: Jagan Teki <[email protected]>
+ */
+
+&dmc {
+	rockchip,sdram-params = <
+		0x2
+		0xa
+		0x3
+		0x2
+		0x1
+		0x0
+		0xf
+		0xf
+		1
+		0x80241d22
+		0x15050f08
+		0x00000602
+		0x00002122
+		0x0000004c
+		0x00000000
+		0x2
+		0xa
+		0x3
+		0x2
+		0x1
+		0x0
+		0xf
+		0xf
+		1
+		0x80241d22
+		0x15050f08
+		0x00000602
+		0x00002122
+		0x0000004c
+		0x00000000
+		50
+		7
+		2
+		13
+		1
+		0x00000b00
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00013880
+		0x000c3500
+		0x00000005
+		0x00000320
+		0x00027100
+		0x00186a00
+		0x00000005
+		0x00000640
+		0x00002710
+		0x000186a0
+		0x00000005
+		0x01000064
+		0x00000000
+		0x02020101
+		0x00000102
+		0x00000050
+		0x000000c8
+		0x00000000
+		0x06140000
+		0x00081c00
+		0x0400040c
+		0x19042008
+		0x10080a11
+		0x22310800
+		0x00200f0a
+		0x0a030704
+		0x08000204
+		0x00000a0a
+		0x04006db0
+		0x0a0a0804
+		0x0600db60
+		0x0a0a0806
+		0x04000db6
+		0x02030404
+		0x0f0a0800
+		0x08040411
+		0x1400640a
+		0x02010a0a
+		0x00010001
+		0x04082012
+		0x00041109
+		0x00000000
+		0x03010000
+		0x06100048
+		0x0c280090
+		0x00bb0009
+		0x00000000
+		0x00060005
+		0x000a0005
+		0x000a0014
+		0x01000000
+		0x030a0000
+		0x0c000002
+		0x00000103
+		0x0005030a
+		0x00060037
+		0x0005006e
+		0x05050007
+		0x03030605
+		0x06050301
+		0x06030c05
+		0x05050302
+		0x03030305
+		0x00000301
+		0x00000301
+		0x00000001
+		0x00000000
+		0x00000000
+		0x01000000
+		0x80104002
+		0x00040003
+		0x00040005
+		0x00030000
+		0x00050004
+		0x00000004
+		0x00040003
+		0x00040005
+		0x18400000
+		0x00000c20
+		0x185030a0
+		0x02ec0000
+		0x00000176
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x06030300
+		0x00030303
+		0x02030200
+		0x00040703
+		0x03020302
+		0x02000407
+		0x07030203
+		0x00030f04
+		0x00070004
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00010000
+		0x20040020
+		0x00200400
+		0x01000400
+		0x00000b80
+		0x00000000
+		0x00000001
+		0x00000002
+		0x0000000e
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00500000
+		0x00640028
+		0x00640404
+		0x005000a0
+		0x060600c8
+		0x000a00c8
+		0x000d0005
+		0x000d0404
+		0x00000000
+		0x00000000
+		0x00000000
+		0x001400a3
+		0x00e30009
+		0x00120024
+		0x00040063
+		0x00000000
+		0x00310031
+		0x00000031
+		0x004d0000
+		0x004d004d
+		0x004d0000
+		0x004d004d
+		0x00010101
+		0x00000000
+		0x00000000
+		0x001400a3
+		0x00e30009
+		0x00120024
+		0x00040063
+		0x00000000
+		0x00310031
+		0x00000031
+		0x004d0000
+		0x004d004d
+		0x004d0000
+		0x004d004d
+		0x00010101
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000001
+		0x00000000
+		0x18151100
+		0x0000000c
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00020003
+		0x00400100
+		0x000c0190
+		0x01000200
+		0x03200040
+		0x00020018
+		0x00400100
+		0x00080032
+		0x00140000
+		0x00030028
+		0x01010100
+		0x02000202
+		0x0b000002
+		0x01000f0f
+		0x00000000
+		0x00000000
+		0x00010003
+		0x00000c03
+		0x00040101
+		0x04010100
+		0x01000000
+		0x02010000
+		0x00000001
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00010000
+		0x00000001
+		0x01010001
+		0x05040001
+		0x040a0703
+		0x02080808
+		0x020e000a
+		0x020f010b
+		0x000d0008
+		0x00080b0a
+		0x03000200
+		0x00000100
+		0x00000000
+		0x00000000
+		0x0d000001
+		0x00000028
+		0x00010000
+		0x00000003
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00010100
+		0x01000000
+		0x00000001
+		0x00000303
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x000556aa
+		0x000aaaaa
+		0x000aa955
+		0x00055555
+		0x000b3133
+		0x0004cd33
+		0x0004cecc
+		0x000b32cc
+		0x00010300
+		0x03000100
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00ffff00
+		0x1a160000
+		0x08000012
+		0x00000c20
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00000c20
+		0x00007940
+		0x18500409
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00001850
+		0x0000f320
+		0x0176060c
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00000176
+		0x00000e9c
+		0x02020205
+		0x03030202
+		0x00000018
+		0x00000000
+		0x00000000
+		0x00001403
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00030000
+		0x000a001c
+		0x000e0020
+		0x00060018
+		0x00000000
+		0x00000000
+		0x02000000
+		0x00090305
+		0x00050101
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x01000001
+		0x01010101
+		0x01000101
+		0x01000100
+		0x00010001
+		0x00010002
+		0x00020100
+		0x00000002
+		0x00000b00
+		0x00000000
+		0x000002ec
+		0x00000176
+		0x000030a0
+		0x00001850
+		0x00001840
+		0x01760c20
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00001850
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00000c20
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00000200
+		0x00010000
+		0x00000007
+		0x01000001
+		0x00000000
+		0x3fffffff
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x0f000101
+		0x082b3223
+		0x080c0004
+		0x00061c00
+		0x00000214
+		0x00bb0009
+		0x0c280090
+		0x06100048
+		0x00000500
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x04040100
+		0x0a000004
+		0x00000128
+		0x00000000
+		0x0003000f
+		0x00000018
+		0x00000000
+		0x00000000
+		0x00060002
+		0x00010001
+		0x00000101
+		0x00020001
+		0x00080004
+		0x00000000
+		0x05030000
+		0x070a0404
+		0x00000000
+		0x00000000
+		0x00000000
+		0x000f0f00
+		0x0000001e
+		0x00000000
+		0x01010300
+		0x00000000
+		0x00000000
+		0x01000000
+		0x00000101
+		0x55555a5a
+		0x55555a5a
+		0x55555a5a
+		0x55555a5a
+		0x0c050001
+		0x06020009
+		0x00010004
+		0x00000203
+		0x00030000
+		0x170f0000
+		0x00060018
+		0x000e0020
+		0x000a001c
+		0x00000000
+		0x00000000
+		0x00000100
+		0x140a0000
+		0x000d010a
+		0x0100c802
+		0x010a0064
+		0x000e0100
+		0x0100000e
+		0x00c900c9
+		0x00650100
+		0x1e1a0065
+		0x10010204
+		0x06070605
+		0x20000202
+		0x00201000
+		0x00201000
+		0x04041000
+		0x10020100
+		0x0003010c
+		0x004b004a
+		0x1a0f0000
+		0x0102041e
+		0x34000000
+		0x00000000
+		0x00000000
+		0x00010000
+		0x00000400
+		0x00310000
+		0x004d4d00
+		0x00120024
+		0x4d000031
+		0x0000144d
+		0x00310009
+		0x004d4d00
+		0x00000004
+		0x4d000031
+		0x0000244d
+		0x00310012
+		0x004d4d00
+		0x00090014
+		0x4d000031
+		0x0004004d
+		0x00310000
+		0x004d4d00
+		0x00120024
+		0x4d000031
+		0x0000144d
+		0x00310009
+		0x004d4d00
+		0x00000004
+		0x4d000031
+		0x0000244d
+		0x00310012
+		0x004d4d00
+		0x00090014
+		0x4d000031
+		0x0200004d
+		0x00c8000d
+		0x08080064
+		0x040a0404
+		0x03000d92
+		0x010a2001
+		0x0f11080a
+		0x0000110a
+		0x2200d92e
+		0x080c2003
+		0x0809080a
+		0x00000a0a
+		0x11006c97
+		0x040a2002
+		0x0200020a
+		0x02000200
+		0x02000200
+		0x02000200
+		0x02000200
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x01000400
+		0x00017600
+		0x00000e9c
+		0x00001850
+		0x0000f320
+		0x00000c20
+		0x00007940
+		0x08000000
+		0x00000100
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000002
+		0x76543210
+		0x0004f008
+		0x00020159
+		0x00000000
+		0x00000000
+		0x00010000
+		0x01665555
+		0x03665555
+		0x00010f00
+		0x04000100
+		0x00000000
+		0x00170180
+		0x00cc0201
+		0x00030066
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x04080000
+		0x04080400
+		0x30000000
+		0x0c00c007
+		0x00000100
+		0x00000000
+		0xfd02fe01
+		0xf708fb04
+		0xdf20ef10
+		0x7f80bf40
+		0x0001aaaa
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00200000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x02800280
+		0x02800280
+		0x02800280
+		0x02800280
+		0x00000280
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00800000
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x01590080
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000200
+		0x00000000
+		0x51315152
+		0xc0003150
+		0x010000c0
+		0x00100c00
+		0x07044204
+		0x000f0c18
+		0x01000140
+		0x00000c10
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x76543210
+		0x0004f008
+		0x00020159
+		0x00000000
+		0x00000000
+		0x00010000
+		0x01665555
+		0x03665555
+		0x00010f00
+		0x04000100
+		0x00000000
+		0x00170180
+		0x00cc0201
+		0x00030066
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x04080000
+		0x04080400
+		0x30000000
+		0x0c00c007
+		0x00000100
+		0x00000000
+		0xfd02fe01
+		0xf708fb04
+		0xdf20ef10
+		0x7f80bf40
+		0x0000aaaa
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00200000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x02800280
+		0x02800280
+		0x02800280
+		0x02800280
+		0x00000280
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00800000
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x01590080
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000200
+		0x00000000
+		0x51315152
+		0xc0003150
+		0x010000c0
+		0x00100c00
+		0x07044204
+		0x000f0c18
+		0x01000140
+		0x00000c10
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x76543210
+		0x0004f008
+		0x00020159
+		0x00000000
+		0x00000000
+		0x00010000
+		0x01665555
+		0x03665555
+		0x00010f00
+		0x04000100
+		0x00000000
+		0x00170180
+		0x00cc0201
+		0x00030066
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x04080000
+		0x04080400
+		0x30000000
+		0x0c00c007
+		0x00000100
+		0x00000000
+		0xfd02fe01
+		0xf708fb04
+		0xdf20ef10
+		0x7f80bf40
+		0x0001aaaa
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00200000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x02800280
+		0x02800280
+		0x02800280
+		0x02800280
+		0x00000280
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00800000
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x01590080
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000200
+		0x00000000
+		0x51315152
+		0xc0003150
+		0x010000c0
+		0x00100c00
+		0x07044204
+		0x000f0c18
+		0x01000140
+		0x00000c10
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x76543210
+		0x0004f008
+		0x00020159
+		0x00000000
+		0x00000000
+		0x00010000
+		0x01665555
+		0x03665555
+		0x00010f00
+		0x04000100
+		0x00000000
+		0x00170180
+		0x00cc0201
+		0x00030066
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x04080000
+		0x04080400
+		0x30000000
+		0x0c00c007
+		0x00000100
+		0x00000000
+		0xfd02fe01
+		0xf708fb04
+		0xdf20ef10
+		0x7f80bf40
+		0x0000aaaa
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00200000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x02800280
+		0x02800280
+		0x02800280
+		0x02800280
+		0x00000280
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00800000
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x00800080
+		0x01590080
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000200
+		0x00000000
+		0x51315152
+		0xc0003150
+		0x010000c0
+		0x00100c00
+		0x07044204
+		0x000f0c18
+		0x01000140
+		0x00000c10
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000002
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00400320
+		0x00000040
+		0x00dcba98
+		0x00000000
+		0x00dcba98
+		0x01000000
+		0x00020003
+		0x00000000
+		0x00000000
+		0x00000000
+		0x0000002a
+		0x00000015
+		0x00000015
+		0x0000002a
+		0x00000033
+		0x0000000c
+		0x0000000c
+		0x00000033
+		0x0a418820
+		0x003f0000
+		0x0000003f
+		0x00030055
+		0x03000300
+		0x03000300
+		0x000c0300
+		0x42080010
+		0x00000003
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000002
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00400320
+		0x00000040
+		0x00000000
+		0x00000000
+		0x00000000
+		0x01000000
+		0x00020003
+		0x00000000
+		0x00000000
+		0x00000000
+		0x0000002a
+		0x00000015
+		0x00000015
+		0x0000002a
+		0x00000033
+		0x0000000c
+		0x0000000c
+		0x00000033
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00030055
+		0x03000300
+		0x03000300
+		0x000c0300
+		0x42080010
+		0x00000003
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000002
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00400320
+		0x00000040
+		0x00000000
+		0x00000000
+		0x00000000
+		0x01000000
+		0x00020003
+		0x00000000
+		0x00000000
+		0x00000000
+		0x0000002a
+		0x00000015
+		0x00000015
+		0x0000002a
+		0x00000033
+		0x0000000c
+		0x0000000c
+		0x00000033
+		0x1ee6b16a
+		0x10000000
+		0x00000000
+		0x00030055
+		0x03000300
+		0x03000300
+		0x000c0300
+		0x42080010
+		0x00000003
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000005
+		0x04000f01
+		0x00020040
+		0x00020055
+		0x00000000
+		0x00000000
+		0x00000000
+		0x00000050
+		0x00000000
+		0x01010100
+		0x00000600
+		0x00000000
+		0x00006400
+		0x09221902
+		0x00000000
+		0x000d1f01
+		0x0d1f0d1f
+		0x0d1f0d1f
+		0x00030003
+		0x03000300
+		0x00000300
+		0x09221902
+		0x00000000
+		0x00000000
+		0x01020000
+		0x00000001
+		0x00000411
+		0x00000411
+		0x00000040
+		0x00000040
+		0x00000411
+		0x00000411
+		0x00004410
+		0x00004410
+		0x00004410
+		0x00004410
+		0x00004410
+		0x00000411
+		0x00004410
+		0x00000411
+		0x00004410
+		0x00000411
+		0x00004410
+		0x00000000
+		0x00000000
+		0x00000000
+		0x64000000
+		0x00000000
+		0x00000000
+		0x00000108
+		0x00000000
+		0x00000000
+		0x00000000

arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi line 1537

Quoted 10 lines
arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi new file +10 -0
+		0x00000000
+		0x00000000
+		0x00000000
+		0xe4000000
+		0x00000000
+		0x00000000
+		0x01010000
+		0x00000000
+	>;
+};

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

#161 lore raw

PATCH v3 56/57 rockchip: dts: rk3399: rockpro64: Use LPDDR4-100 dtsi

In reply to a message not in the archive

Use LPDDR4-100 sdram timings dtsi for Rockpro64 board.

All these timings are processed during TPL stage of rockpro64 board, bootchain. This make TPL would replace rockchip in house rkbin in current bootchain.

Bootchain after and before this change:

TPL -> SPL -> U-Boot proper

rkbin -> SPL -> U-Boot proper

---
 arch/arm/dts/rk3399-rockpro64-u-boot.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/dts/rk3399-rockpro64-u-boot.dtsi +1 -0
index 50b0ca0df5..f7f26d584f 100644
@@ -4,6 +4,7 @@
  */
 
 #include "rk3399-u-boot.dtsi"
+#include "rk3399-sdram-lpddr4-100.dtsi"
 
 &vdd_log {
 	regulator-init-microvolt = <950000>;
Signature · 1 line
2.18.0.321.gffc6fa0e3

A message that is not in the archive (sent off-list or not yet received): 20190716115745.12585-57-jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org

Reviewed-by
#163 lore raw

Re: [PATCH v3 56/57] rockchip: dts: rk3399: rockpro64: Use LPDDR4-100 dtsi

Quoted 6 lines · Jagan Teki

Use LPDDR4-100 sdram timings dtsi for Rockpro64 board.

All these timings are processed during TPL stage of rockpro64 board, bootchain. This make TPL would replace rockchip in house rkbin in current bootchain.

Quoted 7 lines

Bootchain after and before this change:

    TPL -> SPL -> U-Boot proper

rkbin -> SPL -> U-Boot proper

Thanks,
 - Kever

Quoted 9 lines
---
  arch/arm/dts/rk3399-rockpro64-u-boot.dtsi | 1 +
  1 file changed, 1 insertion(+)
arch/arm/dts/rk3399-rockpro64-u-boot.dtsi +0 -0
index 50b0ca0df5..f7f26d584f 100644

arch/arm/dts/rk3399-rockpro64-u-boot.dtsi line 10

Quoted 7 lines
arch/arm/dts/rk3399-rockpro64-u-boot.dtsi +1 -0
@@ -4,6 +4,7 @@
   */
 
  #include "rk3399-u-boot.dtsi"
+#include "rk3399-sdram-lpddr4-100.dtsi"
 
  &vdd_log {
  	regulator-init-microvolt = <950000>;

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

#164 lore raw

PATCH v3 57/57 rockchip: dts: rk3399: rock-pi-4: Use LPDDR4-100 dtsi

In reply to a message not in the archive

Use LPDDR4-100 sdram timings dtsi for RockPI-4 board.

All these timings are processed during TPL stage of rock-pi-4 board, bootchain. This make TPL would replace rockchip in house rkbin in current bootchain.

Bootchain after and before this change:

TPL -> SPL -> U-Boot proper

rkbin -> SPL -> U-Boot proper

---
 arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi +1 -0
index 7bddc3acdb..dbfa4ba9f8 100644
@@ -4,3 +4,4 @@
  */
 
 #include "rk3399-u-boot.dtsi"
+#include "rk3399-sdram-lpddr4-100.dtsi"
Signature · 1 line
2.18.0.321.gffc6fa0e3

A message that is not in the archive (sent off-list or not yet received): 20190716115745.12585-58-jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org

Reviewed-by
#166 lore raw

Re: [PATCH v3 57/57] rockchip: dts: rk3399: rock-pi-4: Use LPDDR4-100 dtsi

Quoted 6 lines · Jagan Teki

Use LPDDR4-100 sdram timings dtsi for RockPI-4 board.

All these timings are processed during TPL stage of rock-pi-4 board, bootchain. This make TPL would replace rockchip in house rkbin in current bootchain.

Quoted 7 lines

Bootchain after and before this change:

    TPL -> SPL -> U-Boot proper

rkbin -> SPL -> U-Boot proper

Thanks,
 - Kever

arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi line 7

Quoted 13 lines
---
  arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi | 1 +
  1 file changed, 1 insertion(+)
arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi +1 -0
index 7bddc3acdb..dbfa4ba9f8 100644
@@ -4,3 +4,4 @@
   */
 
  #include "rk3399-u-boot.dtsi"
+#include "rk3399-sdram-lpddr4-100.dtsi"

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

#167 lore raw
In reply to a message not in the archive

Hi Jagan,

    Please squash patch 01~16 into one patch, they have very similar update

in one function, it does not need so many patches for it, and it won't make

any confuse after the squash.

Thanks,

- Kever

Quoted 132 lines · Jagan Teki

This is next revison of lpddr4 support on rk3399 compared to previous set[1]. It has some changes based on the commit orders and squashing few patches together and rest is same.

Thanks to
- YouMin Chen
- Akash Gajjar
- Kever Yang
for supporting all the help on this work.

Changes for v3:
- squash set_rate code in one patch
- tested in Rockpro64 and Rock-PI-4
- order them in proper way
- rebase on master
Changes for v2:
- handle LPDDR4 code as part of CONFIG_RAM_RK3399_LPDDR4
- support data_training and set_rate via sdram_rk3399_ops
- add proper sys_reg_enc macros
- add new patch to rename variable sdram_params with params
- fix few commit messages.

patch 0001 - 0018: add dram config enc macro

patch 0019: configure phy IO in ds odt

patch 0020: add LPDDR4 config

patch 0021 - 0043: lpddr4 data training changes

patch 0044 - 0046: syscon pmu support

patch 0047: set 50MHz ddr clock

patch 0048: set 400MHz ddr clock

patch 0049: LPDDR4-400 timings

patch 0050: LPDDR4-800 timings

patch 0051 - 0052: lpddr4 set rate

patch 0053: enable lpddr4 support on Rockpro64

patch 0054: enable lpddr4 support on Rock-PI 4

patch 0055: add LPDDR-100 timings via dts

patch 0056: use LPDDR-100 timings on Rockpro64

patch 0057: use LPDDR-100 timings on Rock-PI 4

[1] https://patchwork.ozlabs.org/cover/1116734/

Any inputs?
Jagan.

Jagan Teki (57):
ram: rk3399: Add ddrtype enc macro
ram: rk3399: Add channel number encoder macro
ram: rk3399: Add row_3_4 enc macro
ram: rk3399: Add chipinfo macro
ram: rk3399: Add rank enc macro
ram: rk3399: Add column enc macro
ram: rk3399: Add bk enc macro
ram: rk3399: Add dbw enc macro
ram: rk3399: Add cs0_rw macro
ram: rk3399: Add cs1_rw macro
ram: rk3399: Add bw enc macro
ram: rk3399: Rename sys_reg with sys_reg2
ram: rk3399: Update cs0_row to use sys_reg3
ram: rk3399: Update cs1_row to use sys_reg3
ram: rk3399: Add cs1_col enc macro
ram: rk3399: Add ddr version enc macro
ram: rk3399: Add ddrtimingC0
ram: rk3399: Add DdrMode
ram: rk3399: Configure phy IO in ds odt
ram: rockchip: Kconfig: Add RK3399 LPDDR4 entry
ram: rk3399: Add lpddr4 rank mask for ca training
ram: rk3399: Add lpddr4 rank mask for wdql training
ram: rk3399: Move mode_sel assignment
ram: rk3399: Don't wait for PLL lock in lpddr4
ram: rk3399: Avoid two channel ZQ Cal Start at the same time
ram: rk3399: Configure PHY_898, PHY_919 for lpddr4
ram: rk3399: Configure BOOSTP_EN, BOOSTN_EN for lpddr4
ram: rk3399: Configure SLEWP_EN, SLEWN_EN for lpddr4
ram: rk3399: Configure PHY RX_CM_INPUT for lpddr4
ram: rk3399: Map chipselect for lpddr4
ram: rk3399: Configure tsel write ca for lpddr4
ram: rk3399: Don't disable dfi dram clk for lpddr4, rank 1
ram: rk3399: Add IO settings
ram: sdram: Configure lpddr4 tsel rd, wr based on IO settings
ram: rk3399: Add tsel control clock drive
ram: rk3399: Configure soc odt support
ram: rk3399: Get lpddr4 tsel_rd_en from io settings
ram: rk3399: Update lpddr4 vref based on io settings
ram: rk3399: Update lpddr4 mode_sel based on io settings
ram: rk3399: Update lpddr4 vref_mode_ac
ram: rk3399: Simplify data training first argument
ram: rk3399: Handle data training via ops
ram: rk3399: Add LPPDR4 mr detection
arm: include: rockchip: Add rk3399 pmu file
rockchip: rk3399: syscon: Add pmu support
rockchip: dts: rk3399: Add u-boot, dm-pre-reloc for pmu
clk: rockchip: rk3399: Set 50MHz ddr clock
clk: rockchip: rk3399: Set 400MHz ddr clock
ram: rk3399: Add LPPDDR4-400 timings inc
ram: rk3399: Add LPPDDR4-800 timings inc
ram: rk3399: Add set_rate sdram rk3399 ops
ram: rk3399: Add lpddr4 set rate support
configs: rockpro64: Enable LPDDR4 support
configs: rock-pi-4: Enable LPDDR4 support
rockchip: dts: rk3399: Add LPDDR4-100 timings
rockchip: dts: rk3399: rockpro64: Use LPDDR4-100 dtsi
rockchip: dts: rk3399: rock-pi-4: Use LPDDR4-100 dtsi

  arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi     |    1 +
  arch/arm/dts/rk3399-rockpro64-u-boot.dtsi     |    1 +
  arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi     | 1537 +++++++++++++++
  arch/arm/dts/rk3399-u-boot.dtsi               |    4 +
  .../include/asm/arch-rockchip/pmu_rk3399.h    |   72 +
  .../include/asm/arch-rockchip/sdram_common.h  |   31 +
  .../include/asm/arch-rockchip/sdram_rk3399.h  |   29 +-
  arch/arm/mach-rockchip/rk3399/syscon_rk3399.c |    8 +
  configs/rock-pi-4-rk3399_defconfig            |    1 +
  configs/rockpro64-rk3399_defconfig            |    1 +
  drivers/clk/rockchip/clk_rk3399.c             |    8 +
  drivers/ram/rockchip/Kconfig                  |    7 +
  .../ram/rockchip/sdram-rk3399-lpddr4-400.inc  | 1570 +++++++++++++++
  .../ram/rockchip/sdram-rk3399-lpddr4-800.inc  | 1570 +++++++++++++++
  drivers/ram/rockchip/sdram_rk3399.c           | 1726 ++++++++++++++---
  15 files changed, 6317 insertions(+), 249 deletions(-)
Quoted 5 lines

create mode 100644 arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi create mode 100644 arch/arm/include/asm/arch-rockchip/pmu_rk3399.h create mode 100644 drivers/ram/rockchip/sdram-rk3399-lpddr4-400.inc create mode 100644 drivers/ram/rockchip/sdram-rk3399-lpddr4-800.inc

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

author
#168 lore raw

PATCH v3 5/57 ram: rk3399: Add rank enc macro

In reply to Jagan Teki

Add simplified and meaningful macro for rank.

---
 arch/arm/include/asm/arch-rockchip/sdram_common.h | 2 ++
 drivers/ram/rockchip/sdram_rk3399.c               | 3 +--
 2 files changed, 3 insertions(+), 2 deletions(-)
arch/arm/include/asm/arch-rockchip/sdram_common.h +2 -0
index 2d0be920d9..db9e30126f 100644
@@ -79,6 +79,8 @@ struct sdram_base_params {
 					SYS_REG_NUM_CH_SHIFT)
 #define SYS_REG_RANK_SHIFT(ch)		(11 + (ch) * 16)
 #define SYS_REG_RANK_MASK		1
+#define SYS_REG_ENC_RANK(n, ch)		(((n) - SYS_REG_RANK_MASK) << \
+					 SYS_REG_RANK_SHIFT(ch))
 #define SYS_REG_COL_SHIFT(ch)		(9 + (ch) * 16)
 #define SYS_REG_COL_MASK		3
 #define SYS_REG_BK_SHIFT(ch)		(8 + (ch) * 16)
drivers/ram/rockchip/sdram_rk3399.c +1 -2
index 874e896369..c2390a771c 100644
@@ -1091,8 +1091,7 @@ static void dram_all_config(struct dram_info *dram,
 		idx++;
 		sys_reg |= SYS_REG_ENC_ROW_3_4(info->cap_info.row_3_4, channel);
 		sys_reg |= SYS_REG_ENC_CHINFO(channel);
-		sys_reg |= (info->cap_info.rank - 1) <<
-			   SYS_REG_RANK_SHIFT(channel);
+		sys_reg |= SYS_REG_ENC_RANK(info->cap_info.rank, channel);
 		sys_reg |= (info->cap_info.col - 9) <<
 			   SYS_REG_COL_SHIFT(channel);
 		sys_reg |= info->cap_info.bk == 3 ? 0 : 1 <<
Signature · 6 lines
2.18.0.321.gffc6fa0e3

_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

A message that is not in the archive (sent off-list or not yet received): 20190716115745.12585-6-jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org

Reviewed-by
#170 lore raw

Re: [PATCH v3 05/57] ram: rk3399: Add rank enc macro

Quoted 4 lines · Jagan Teki

Add simplified and meaningful macro for rank.

Thanks,
 - Kever

Quoted 23 lines
---
  arch/arm/include/asm/arch-rockchip/sdram_common.h | 2 ++
  drivers/ram/rockchip/sdram_rk3399.c               | 3 +--
  2 files changed, 3 insertions(+), 2 deletions(-)
arch/arm/include/asm/arch-rockchip/sdram_common.h +2 -0
index 2d0be920d9..db9e30126f 100644
@@ -79,6 +79,8 @@ struct sdram_base_params {
  					SYS_REG_NUM_CH_SHIFT)
  #define SYS_REG_RANK_SHIFT(ch)		(11 + (ch) * 16)
  #define SYS_REG_RANK_MASK		1
+#define SYS_REG_ENC_RANK(n, ch)		(((n) - SYS_REG_RANK_MASK) << \
+					 SYS_REG_RANK_SHIFT(ch))
  #define SYS_REG_COL_SHIFT(ch)		(9 + (ch) * 16)
  #define SYS_REG_COL_MASK		3
  #define SYS_REG_BK_SHIFT(ch)		(8 + (ch) * 16)
drivers/ram/rockchip/sdram_rk3399.c +0 -0
index 874e896369..c2390a771c 100644

drivers/ram/rockchip/sdram_rk3399.c static void dram_all_config(struct dram_info *dram, · line 1097

Quoted 9 lines
drivers/ram/rockchip/sdram_rk3399.c +1 -2
@@ -1091,8 +1091,7 @@ static void dram_all_config(struct dram_info *dram,
  		idx++;
  		sys_reg |= SYS_REG_ENC_ROW_3_4(info->cap_info.row_3_4, channel);
  		sys_reg |= SYS_REG_ENC_CHINFO(channel);
-		sys_reg |= (info->cap_info.rank - 1) <<
-			   SYS_REG_RANK_SHIFT(channel);
+		sys_reg |= SYS_REG_ENC_RANK(info->cap_info.rank, channel);
  		sys_reg |= (info->cap_info.col - 9) <<
  			   SYS_REG_COL_SHIFT(channel);
  		sys_reg |= info->cap_info.bk == 3 ? 0 : 1 <<

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

author
#171 lore raw

PATCH v3 12/57 ram: rk3399: Rename sys_reg with sys_reg2

In reply to Jagan Teki

Use dram config variable name as sys_reg2 instead of sys_reg since the final variable value is to written into a pmugrf register named as sys_reg2.

This reflect the both variable and associated register names are same and also help to add next sys_reg's to add it in future.

---
 drivers/ram/rockchip/sdram_rk3399.c | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)
drivers/ram/rockchip/sdram_rk3399.c +13 -13
index 2d3f0f6902..2ef969c07b 100644
@@ -1073,11 +1073,11 @@ static void set_ddrconfig(const struct chan_info *chan,
 static void dram_all_config(struct dram_info *dram,
 			    const struct rk3399_sdram_params *params)
 {
-	u32 sys_reg = 0;
+	u32 sys_reg2 = 0;
 	unsigned int channel, idx;
 
-	sys_reg |= SYS_REG_ENC_DDRTYPE(params->base.dramtype);
-	sys_reg |= SYS_REG_ENC_NUM_CH(params->base.num_channels);
+	sys_reg2 |= SYS_REG_ENC_DDRTYPE(params->base.dramtype);
+	sys_reg2 |= SYS_REG_ENC_NUM_CH(params->base.num_channels);
 
 	for (channel = 0, idx = 0;
 	     (idx < params->base.num_channels) && (channel < 2);
@@ -1089,15 +1089,15 @@ static void dram_all_config(struct dram_info *dram,
 		if (params->ch[channel].cap_info.col == 0)
 			continue;
 		idx++;
-		sys_reg |= SYS_REG_ENC_ROW_3_4(info->cap_info.row_3_4, channel);
-		sys_reg |= SYS_REG_ENC_CHINFO(channel);
-		sys_reg |= SYS_REG_ENC_RANK(info->cap_info.rank, channel);
-		sys_reg |= SYS_REG_ENC_COL(info->cap_info.col, channel);
-		sys_reg |= SYS_REG_ENC_BK(info->cap_info.bk, channel);
-		sys_reg |= SYS_REG_ENC_CS0_ROW(info->cap_info.cs0_row, channel);
-		sys_reg |= SYS_REG_ENC_CS1_ROW(info->cap_info.cs1_row, channel);
-		sys_reg |= SYS_REG_ENC_BW(info->cap_info.bw, channel);
-		sys_reg |= SYS_REG_ENC_DBW(info->cap_info.dbw, channel);
+		sys_reg2 |= SYS_REG_ENC_ROW_3_4(info->cap_info.row_3_4, channel);
+		sys_reg2 |= SYS_REG_ENC_CHINFO(channel);
+		sys_reg2 |= SYS_REG_ENC_RANK(info->cap_info.rank, channel);
+		sys_reg2 |= SYS_REG_ENC_COL(info->cap_info.col, channel);
+		sys_reg2 |= SYS_REG_ENC_BK(info->cap_info.bk, channel);
+		sys_reg2 |= SYS_REG_ENC_CS0_ROW(info->cap_info.cs0_row, channel);
+		sys_reg2 |= SYS_REG_ENC_CS1_ROW(info->cap_info.cs1_row, channel);
+		sys_reg2 |= SYS_REG_ENC_BW(info->cap_info.bw, channel);
+		sys_reg2 |= SYS_REG_ENC_DBW(info->cap_info.dbw, channel);
 
 		ddr_msch_regs = dram->chan[channel].msch;
 		noc_timing = &params->ch[channel].noc_timings;
@@ -1118,7 +1118,7 @@ static void dram_all_config(struct dram_info *dram,
 				     1 << 17);
 	}
 
-	writel(sys_reg, &dram->pmugrf->os_reg2);
+	writel(sys_reg2, &dram->pmugrf->os_reg2);
 	rk_clrsetreg(&dram->pmusgrf->soc_con4, 0x1f << 10,
 		     params->base.stride << 10);
 
Signature · 6 lines
2.18.0.321.gffc6fa0e3

_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

A message that is not in the archive (sent off-list or not yet received): 20190716115745.12585-13-jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org

Reviewed-by
#173 lore raw

Re: [PATCH v3 12/57] ram: rk3399: Rename sys_reg with sys_reg2

Quoted 10 lines · Jagan Teki

Use dram config variable name as sys_reg2 instead of sys_reg since the final variable value is to written into a pmugrf register named as sys_reg2.

This reflect the both variable and associated register names are same and also help to add next sys_reg's to add it in future.

Thanks,
 - Kever

Quoted 49 lines
---
  drivers/ram/rockchip/sdram_rk3399.c | 26 +++++++++++++-------------
  1 file changed, 13 insertions(+), 13 deletions(-)
drivers/ram/rockchip/sdram_rk3399.c +12 -12
index 2d3f0f6902..2ef969c07b 100644
@@ -1073,11 +1073,11 @@ static void set_ddrconfig(const struct chan_info *chan,
  static void dram_all_config(struct dram_info *dram,
  			    const struct rk3399_sdram_params *params)
  {
-	u32 sys_reg = 0;
+	u32 sys_reg2 = 0;
  	unsigned int channel, idx;
 
-	sys_reg |= SYS_REG_ENC_DDRTYPE(params->base.dramtype);
-	sys_reg |= SYS_REG_ENC_NUM_CH(params->base.num_channels);
+	sys_reg2 |= SYS_REG_ENC_DDRTYPE(params->base.dramtype);
+	sys_reg2 |= SYS_REG_ENC_NUM_CH(params->base.num_channels);
 
  	for (channel = 0, idx = 0;
  	     (idx < params->base.num_channels) && (channel < 2);
@@ -1089,15 +1089,15 @@ static void dram_all_config(struct dram_info *dram,
  		if (params->ch[channel].cap_info.col == 0)
  			continue;
  		idx++;
-		sys_reg |= SYS_REG_ENC_ROW_3_4(info->cap_info.row_3_4, channel);
-		sys_reg |= SYS_REG_ENC_CHINFO(channel);
-		sys_reg |= SYS_REG_ENC_RANK(info->cap_info.rank, channel);
-		sys_reg |= SYS_REG_ENC_COL(info->cap_info.col, channel);
-		sys_reg |= SYS_REG_ENC_BK(info->cap_info.bk, channel);
-		sys_reg |= SYS_REG_ENC_CS0_ROW(info->cap_info.cs0_row, channel);
-		sys_reg |= SYS_REG_ENC_CS1_ROW(info->cap_info.cs1_row, channel);
-		sys_reg |= SYS_REG_ENC_BW(info->cap_info.bw, channel);
-		sys_reg |= SYS_REG_ENC_DBW(info->cap_info.dbw, channel);
+		sys_reg2 |= SYS_REG_ENC_ROW_3_4(info->cap_info.row_3_4, channel);
+		sys_reg2 |= SYS_REG_ENC_CHINFO(channel);
+		sys_reg2 |= SYS_REG_ENC_RANK(info->cap_info.rank, channel);
+		sys_reg2 |= SYS_REG_ENC_COL(info->cap_info.col, channel);
+		sys_reg2 |= SYS_REG_ENC_BK(info->cap_info.bk, channel);
+		sys_reg2 |= SYS_REG_ENC_CS0_ROW(info->cap_info.cs0_row, channel);
+		sys_reg2 |= SYS_REG_ENC_CS1_ROW(info->cap_info.cs1_row, channel);
+		sys_reg2 |= SYS_REG_ENC_BW(info->cap_info.bw, channel);
+		sys_reg2 |= SYS_REG_ENC_DBW(info->cap_info.dbw, channel);
 
  		ddr_msch_regs = dram->chan[channel].msch;
  		noc_timing = &params->ch[channel].noc_timings;

drivers/ram/rockchip/sdram_rk3399.c static void dram_all_config(struct dram_info *dram, · line 1124

Quoted 8 lines
drivers/ram/rockchip/sdram_rk3399.c +1 -1
@@ -1118,7 +1118,7 @@ static void dram_all_config(struct dram_info *dram,
  				     1 << 17);
  	}
 
-	writel(sys_reg, &dram->pmugrf->os_reg2);
+	writel(sys_reg2, &dram->pmugrf->os_reg2);
  	rk_clrsetreg(&dram->pmusgrf->soc_con4, 0x1f << 10,
  		     params->base.stride << 10);
 

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

#174 lore raw
In reply to Jagan Teki
Quoted 10 lines · Jagan Teki

This is next revison of lpddr4 support on rk3399 compared to previous set[1]. It has some changes based on the commit orders and squashing few patches together and rest is same.

Thanks to
- YouMin Chen
- Akash Gajjar
- Kever Yang
for supporting all the help on this work.

Quoted 3 lines

Changes for v3:
- squash set_rate code in one patch
- tested in Rockpro64 and Rock-PI-4

Great works! Can't wait to try them on both boards!

Would you mind to setup a git repo for this large patchset? It would be much easier for other guys to test, other than fetching all the patches and apply them.

Thanks,
Qu

Quoted 115 lines

- order them in proper way
- rebase on master
Changes for v2:
- handle LPDDR4 code as part of CONFIG_RAM_RK3399_LPDDR4
- support data_training and set_rate via sdram_rk3399_ops
- add proper sys_reg_enc macros
- add new patch to rename variable sdram_params with params
- fix few commit messages.

patch 0001 - 0018: add dram config enc macro

patch 0019: configure phy IO in ds odt

patch 0020: add LPDDR4 config

patch 0021 - 0043: lpddr4 data training changes

patch 0044 - 0046: syscon pmu support

patch 0047: set 50MHz ddr clock

patch 0048: set 400MHz ddr clock

patch 0049: LPDDR4-400 timings

patch 0050: LPDDR4-800 timings

patch 0051 - 0052: lpddr4 set rate

patch 0053: enable lpddr4 support on Rockpro64

patch 0054: enable lpddr4 support on Rock-PI 4

patch 0055: add LPDDR-100 timings via dts

patch 0056: use LPDDR-100 timings on Rockpro64

patch 0057: use LPDDR-100 timings on Rock-PI 4

[1] https://patchwork.ozlabs.org/cover/1116734/

Any inputs?
Jagan.

Jagan Teki (57):
ram: rk3399: Add ddrtype enc macro
ram: rk3399: Add channel number encoder macro
ram: rk3399: Add row_3_4 enc macro
ram: rk3399: Add chipinfo macro
ram: rk3399: Add rank enc macro
ram: rk3399: Add column enc macro
ram: rk3399: Add bk enc macro
ram: rk3399: Add dbw enc macro
ram: rk3399: Add cs0_rw macro
ram: rk3399: Add cs1_rw macro
ram: rk3399: Add bw enc macro
ram: rk3399: Rename sys_reg with sys_reg2
ram: rk3399: Update cs0_row to use sys_reg3
ram: rk3399: Update cs1_row to use sys_reg3
ram: rk3399: Add cs1_col enc macro
ram: rk3399: Add ddr version enc macro
ram: rk3399: Add ddrtimingC0
ram: rk3399: Add DdrMode
ram: rk3399: Configure phy IO in ds odt
ram: rockchip: Kconfig: Add RK3399 LPDDR4 entry
ram: rk3399: Add lpddr4 rank mask for ca training
ram: rk3399: Add lpddr4 rank mask for wdql training
ram: rk3399: Move mode_sel assignment
ram: rk3399: Don't wait for PLL lock in lpddr4
ram: rk3399: Avoid two channel ZQ Cal Start at the same time
ram: rk3399: Configure PHY_898, PHY_919 for lpddr4
ram: rk3399: Configure BOOSTP_EN, BOOSTN_EN for lpddr4
ram: rk3399: Configure SLEWP_EN, SLEWN_EN for lpddr4
ram: rk3399: Configure PHY RX_CM_INPUT for lpddr4
ram: rk3399: Map chipselect for lpddr4
ram: rk3399: Configure tsel write ca for lpddr4
ram: rk3399: Don't disable dfi dram clk for lpddr4, rank 1
ram: rk3399: Add IO settings
ram: sdram: Configure lpddr4 tsel rd, wr based on IO settings
ram: rk3399: Add tsel control clock drive
ram: rk3399: Configure soc odt support
ram: rk3399: Get lpddr4 tsel_rd_en from io settings
ram: rk3399: Update lpddr4 vref based on io settings
ram: rk3399: Update lpddr4 mode_sel based on io settings
ram: rk3399: Update lpddr4 vref_mode_ac
ram: rk3399: Simplify data training first argument
ram: rk3399: Handle data training via ops
ram: rk3399: Add LPPDR4 mr detection
arm: include: rockchip: Add rk3399 pmu file
rockchip: rk3399: syscon: Add pmu support
rockchip: dts: rk3399: Add u-boot, dm-pre-reloc for pmu
clk: rockchip: rk3399: Set 50MHz ddr clock
clk: rockchip: rk3399: Set 400MHz ddr clock
ram: rk3399: Add LPPDDR4-400 timings inc
ram: rk3399: Add LPPDDR4-800 timings inc
ram: rk3399: Add set_rate sdram rk3399 ops
ram: rk3399: Add lpddr4 set rate support
configs: rockpro64: Enable LPDDR4 support
configs: rock-pi-4: Enable LPDDR4 support
rockchip: dts: rk3399: Add LPDDR4-100 timings
rockchip: dts: rk3399: rockpro64: Use LPDDR4-100 dtsi
rockchip: dts: rk3399: rock-pi-4: Use LPDDR4-100 dtsi

 arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi     |    1 +
 arch/arm/dts/rk3399-rockpro64-u-boot.dtsi     |    1 +
 arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi     | 1537 +++++++++++++++
 arch/arm/dts/rk3399-u-boot.dtsi               |    4 +
 .../include/asm/arch-rockchip/pmu_rk3399.h    |   72 +
 .../include/asm/arch-rockchip/sdram_common.h  |   31 +
 .../include/asm/arch-rockchip/sdram_rk3399.h  |   29 +-
 arch/arm/mach-rockchip/rk3399/syscon_rk3399.c |    8 +
 configs/rock-pi-4-rk3399_defconfig            |    1 +
 configs/rockpro64-rk3399_defconfig            |    1 +
 drivers/clk/rockchip/clk_rk3399.c             |    8 +
 drivers/ram/rockchip/Kconfig                  |    7 +
Quoted 9 lines
 .../ram/rockchip/sdram-rk3399-lpddr4-400.inc  | 1570 +++++++++++++++
 .../ram/rockchip/sdram-rk3399-lpddr4-800.inc  | 1570 +++++++++++++++
 drivers/ram/rockchip/sdram_rk3399.c           | 1726 ++++++++++++++---
 15 files changed, 6317 insertions(+), 249 deletions(-)
 create mode 100644 arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi
 create mode 100644 arch/arm/include/asm/arch-rockchip/pmu_rk3399.h
 create mode 100644 drivers/ram/rockchip/sdram-rk3399-lpddr4-400.inc
 create mode 100644 drivers/ram/rockchip/sdram-rk3399-lpddr4-800.inc

_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

A message that is not in the archive (sent off-list or not yet received): 310a4823-ce36-6152-2886-2bb6fcc0e328-KK0ffGbhmjU@public.gmane.org

#176 lore raw
Quoted 17 lines · Qu Wenruo
Quoted 10 lines · Jagan Teki

This is next revison of lpddr4 support on rk3399 compared to previous set[1]. It has some changes based on the commit orders and squashing few patches together and rest is same.

Thanks to
- YouMin Chen
- Akash Gajjar
- Kever Yang
for supporting all the help on this work.

Quoted 3 lines

Changes for v3:
- squash set_rate code in one patch
- tested in Rockpro64 and Rock-PI-4

Quoted 6 lines

Great works! Can't wait to try them on both boards!

Would you mind to setup a git repo for this large patchset? It would be much easier for other guys to test, other than fetching all the patches and apply them.

+1.

I'd love to try this series on Rock960 Model C.

Thanks,
Mani

Quoted 128 lines

Thanks,
Qu

Quoted 124 lines

- order them in proper way
- rebase on master
Changes for v2:
- handle LPDDR4 code as part of CONFIG_RAM_RK3399_LPDDR4
- support data_training and set_rate via sdram_rk3399_ops
- add proper sys_reg_enc macros
- add new patch to rename variable sdram_params with params
- fix few commit messages.

patch 0001 - 0018: add dram config enc macro

patch 0019: configure phy IO in ds odt

patch 0020: add LPDDR4 config

patch 0021 - 0043: lpddr4 data training changes

patch 0044 - 0046: syscon pmu support

patch 0047: set 50MHz ddr clock

patch 0048: set 400MHz ddr clock

patch 0049: LPDDR4-400 timings

patch 0050: LPDDR4-800 timings

patch 0051 - 0052: lpddr4 set rate

patch 0053: enable lpddr4 support on Rockpro64

patch 0054: enable lpddr4 support on Rock-PI 4

patch 0055: add LPDDR-100 timings via dts

patch 0056: use LPDDR-100 timings on Rockpro64

patch 0057: use LPDDR-100 timings on Rock-PI 4

[1] https://patchwork.ozlabs.org/cover/1116734/

Any inputs?
Jagan.

Jagan Teki (57):
ram: rk3399: Add ddrtype enc macro
ram: rk3399: Add channel number encoder macro
ram: rk3399: Add row_3_4 enc macro
ram: rk3399: Add chipinfo macro
ram: rk3399: Add rank enc macro
ram: rk3399: Add column enc macro
ram: rk3399: Add bk enc macro
ram: rk3399: Add dbw enc macro
ram: rk3399: Add cs0_rw macro
ram: rk3399: Add cs1_rw macro
ram: rk3399: Add bw enc macro
ram: rk3399: Rename sys_reg with sys_reg2
ram: rk3399: Update cs0_row to use sys_reg3
ram: rk3399: Update cs1_row to use sys_reg3
ram: rk3399: Add cs1_col enc macro
ram: rk3399: Add ddr version enc macro
ram: rk3399: Add ddrtimingC0
ram: rk3399: Add DdrMode
ram: rk3399: Configure phy IO in ds odt
ram: rockchip: Kconfig: Add RK3399 LPDDR4 entry
ram: rk3399: Add lpddr4 rank mask for ca training
ram: rk3399: Add lpddr4 rank mask for wdql training
ram: rk3399: Move mode_sel assignment
ram: rk3399: Don't wait for PLL lock in lpddr4
ram: rk3399: Avoid two channel ZQ Cal Start at the same time
ram: rk3399: Configure PHY_898, PHY_919 for lpddr4
ram: rk3399: Configure BOOSTP_EN, BOOSTN_EN for lpddr4
ram: rk3399: Configure SLEWP_EN, SLEWN_EN for lpddr4
ram: rk3399: Configure PHY RX_CM_INPUT for lpddr4
ram: rk3399: Map chipselect for lpddr4
ram: rk3399: Configure tsel write ca for lpddr4
ram: rk3399: Don't disable dfi dram clk for lpddr4, rank 1
ram: rk3399: Add IO settings
ram: sdram: Configure lpddr4 tsel rd, wr based on IO settings
ram: rk3399: Add tsel control clock drive
ram: rk3399: Configure soc odt support
ram: rk3399: Get lpddr4 tsel_rd_en from io settings
ram: rk3399: Update lpddr4 vref based on io settings
ram: rk3399: Update lpddr4 mode_sel based on io settings
ram: rk3399: Update lpddr4 vref_mode_ac
ram: rk3399: Simplify data training first argument
ram: rk3399: Handle data training via ops
ram: rk3399: Add LPPDR4 mr detection
arm: include: rockchip: Add rk3399 pmu file
rockchip: rk3399: syscon: Add pmu support
rockchip: dts: rk3399: Add u-boot, dm-pre-reloc for pmu
clk: rockchip: rk3399: Set 50MHz ddr clock
clk: rockchip: rk3399: Set 400MHz ddr clock
ram: rk3399: Add LPPDDR4-400 timings inc
ram: rk3399: Add LPPDDR4-800 timings inc
ram: rk3399: Add set_rate sdram rk3399 ops
ram: rk3399: Add lpddr4 set rate support
configs: rockpro64: Enable LPDDR4 support
configs: rock-pi-4: Enable LPDDR4 support
rockchip: dts: rk3399: Add LPDDR4-100 timings
rockchip: dts: rk3399: rockpro64: Use LPDDR4-100 dtsi
rockchip: dts: rk3399: rock-pi-4: Use LPDDR4-100 dtsi

 arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi     |    1 +
 arch/arm/dts/rk3399-rockpro64-u-boot.dtsi     |    1 +
 arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi     | 1537 +++++++++++++++
 arch/arm/dts/rk3399-u-boot.dtsi               |    4 +
 .../include/asm/arch-rockchip/pmu_rk3399.h    |   72 +
 .../include/asm/arch-rockchip/sdram_common.h  |   31 +
 .../include/asm/arch-rockchip/sdram_rk3399.h  |   29 +-
 arch/arm/mach-rockchip/rk3399/syscon_rk3399.c |    8 +
 configs/rock-pi-4-rk3399_defconfig            |    1 +
 configs/rockpro64-rk3399_defconfig            |    1 +
 drivers/clk/rockchip/clk_rk3399.c             |    8 +
 drivers/ram/rockchip/Kconfig                  |    7 +
 .../ram/rockchip/sdram-rk3399-lpddr4-400.inc  | 1570 +++++++++++++++
 .../ram/rockchip/sdram-rk3399-lpddr4-800.inc  | 1570 +++++++++++++++
 drivers/ram/rockchip/sdram_rk3399.c           | 1726 ++++++++++++++---
 15 files changed, 6317 insertions(+), 249 deletions(-)
 create mode 100644 arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi
 create mode 100644 arch/arm/include/asm/arch-rockchip/pmu_rk3399.h
 create mode 100644 drivers/ram/rockchip/sdram-rk3399-lpddr4-400.inc
 create mode 100644 drivers/ram/rockchip/sdram-rk3399-lpddr4-800.inc

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

#177 lore raw
In reply to Qu Wenruo
Quoted 17 lines · Qu Wenruo
Quoted 10 lines · Jagan Teki

This is next revison of lpddr4 support on rk3399 compared to previous set[1]. It has some changes based on the commit orders and squashing few patches together and rest is same.

Thanks to
- YouMin Chen
- Akash Gajjar
- Kever Yang
for supporting all the help on this work.

Quoted 3 lines

Changes for v3:
- squash set_rate code in one patch
- tested in Rockpro64 and Rock-PI-4

Quoted 5 lines

Great works! Can't wait to try them on both boards!

Would you mind to setup a git repo for this large patchset? It would be much easier for other guys to test, other than fetching all the patches and apply them.

In fact the patchset can't be applied to current master due to conflicts. And furthermore the hash doesn't match any existing tree.

Would you mind to rebase it to current master? Or at least a git repo so I could try to rebase them.

Thanks,
Qu

Quoted 130 lines

Thanks,
Qu

Quoted 115 lines

- order them in proper way
- rebase on master
Changes for v2:
- handle LPDDR4 code as part of CONFIG_RAM_RK3399_LPDDR4
- support data_training and set_rate via sdram_rk3399_ops
- add proper sys_reg_enc macros
- add new patch to rename variable sdram_params with params
- fix few commit messages.

patch 0001 - 0018: add dram config enc macro

patch 0019: configure phy IO in ds odt

patch 0020: add LPDDR4 config

patch 0021 - 0043: lpddr4 data training changes

patch 0044 - 0046: syscon pmu support

patch 0047: set 50MHz ddr clock

patch 0048: set 400MHz ddr clock

patch 0049: LPDDR4-400 timings

patch 0050: LPDDR4-800 timings

patch 0051 - 0052: lpddr4 set rate

patch 0053: enable lpddr4 support on Rockpro64

patch 0054: enable lpddr4 support on Rock-PI 4

patch 0055: add LPDDR-100 timings via dts

patch 0056: use LPDDR-100 timings on Rockpro64

patch 0057: use LPDDR-100 timings on Rock-PI 4

[1] https://patchwork.ozlabs.org/cover/1116734/

Any inputs?
Jagan.

Jagan Teki (57):
ram: rk3399: Add ddrtype enc macro
ram: rk3399: Add channel number encoder macro
ram: rk3399: Add row_3_4 enc macro
ram: rk3399: Add chipinfo macro
ram: rk3399: Add rank enc macro
ram: rk3399: Add column enc macro
ram: rk3399: Add bk enc macro
ram: rk3399: Add dbw enc macro
ram: rk3399: Add cs0_rw macro
ram: rk3399: Add cs1_rw macro
ram: rk3399: Add bw enc macro
ram: rk3399: Rename sys_reg with sys_reg2
ram: rk3399: Update cs0_row to use sys_reg3
ram: rk3399: Update cs1_row to use sys_reg3
ram: rk3399: Add cs1_col enc macro
ram: rk3399: Add ddr version enc macro
ram: rk3399: Add ddrtimingC0
ram: rk3399: Add DdrMode
ram: rk3399: Configure phy IO in ds odt
ram: rockchip: Kconfig: Add RK3399 LPDDR4 entry
ram: rk3399: Add lpddr4 rank mask for ca training
ram: rk3399: Add lpddr4 rank mask for wdql training
ram: rk3399: Move mode_sel assignment
ram: rk3399: Don't wait for PLL lock in lpddr4
ram: rk3399: Avoid two channel ZQ Cal Start at the same time
ram: rk3399: Configure PHY_898, PHY_919 for lpddr4
ram: rk3399: Configure BOOSTP_EN, BOOSTN_EN for lpddr4
ram: rk3399: Configure SLEWP_EN, SLEWN_EN for lpddr4
ram: rk3399: Configure PHY RX_CM_INPUT for lpddr4
ram: rk3399: Map chipselect for lpddr4
ram: rk3399: Configure tsel write ca for lpddr4
ram: rk3399: Don't disable dfi dram clk for lpddr4, rank 1
ram: rk3399: Add IO settings
ram: sdram: Configure lpddr4 tsel rd, wr based on IO settings
ram: rk3399: Add tsel control clock drive
ram: rk3399: Configure soc odt support
ram: rk3399: Get lpddr4 tsel_rd_en from io settings
ram: rk3399: Update lpddr4 vref based on io settings
ram: rk3399: Update lpddr4 mode_sel based on io settings
ram: rk3399: Update lpddr4 vref_mode_ac
ram: rk3399: Simplify data training first argument
ram: rk3399: Handle data training via ops
ram: rk3399: Add LPPDR4 mr detection
arm: include: rockchip: Add rk3399 pmu file
rockchip: rk3399: syscon: Add pmu support
rockchip: dts: rk3399: Add u-boot, dm-pre-reloc for pmu
clk: rockchip: rk3399: Set 50MHz ddr clock
clk: rockchip: rk3399: Set 400MHz ddr clock
ram: rk3399: Add LPPDDR4-400 timings inc
ram: rk3399: Add LPPDDR4-800 timings inc
ram: rk3399: Add set_rate sdram rk3399 ops
ram: rk3399: Add lpddr4 set rate support
configs: rockpro64: Enable LPDDR4 support
configs: rock-pi-4: Enable LPDDR4 support
rockchip: dts: rk3399: Add LPDDR4-100 timings
rockchip: dts: rk3399: rockpro64: Use LPDDR4-100 dtsi
rockchip: dts: rk3399: rock-pi-4: Use LPDDR4-100 dtsi

 arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi     |    1 +
 arch/arm/dts/rk3399-rockpro64-u-boot.dtsi     |    1 +
 arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi     | 1537 +++++++++++++++
 arch/arm/dts/rk3399-u-boot.dtsi               |    4 +
 .../include/asm/arch-rockchip/pmu_rk3399.h    |   72 +
 .../include/asm/arch-rockchip/sdram_common.h  |   31 +
 .../include/asm/arch-rockchip/sdram_rk3399.h  |   29 +-
 arch/arm/mach-rockchip/rk3399/syscon_rk3399.c |    8 +
 configs/rock-pi-4-rk3399_defconfig            |    1 +
 configs/rockpro64-rk3399_defconfig            |    1 +
 drivers/clk/rockchip/clk_rk3399.c             |    8 +
 drivers/ram/rockchip/Kconfig                  |    7 +
Quoted 9 lines
 .../ram/rockchip/sdram-rk3399-lpddr4-400.inc  | 1570 +++++++++++++++
 .../ram/rockchip/sdram-rk3399-lpddr4-800.inc  | 1570 +++++++++++++++
 drivers/ram/rockchip/sdram_rk3399.c           | 1726 ++++++++++++++---
 15 files changed, 6317 insertions(+), 249 deletions(-)
 create mode 100644 arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi
 create mode 100644 arch/arm/include/asm/arch-rockchip/pmu_rk3399.h
 create mode 100644 drivers/ram/rockchip/sdram-rk3399-lpddr4-400.inc
 create mode 100644 drivers/ram/rockchip/sdram-rk3399-lpddr4-800.inc
Quoted 5 lines

_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

#178 lore raw

Hi Qu and Mani,

This patch has already on the mater, you can try with master code and use idbloader.img

directly.

Thanks,

- Kever

Quoted 22 lines · Qu Wenruo
Quoted 12 lines · Qu Wenruo
Quoted 10 lines · Jagan Teki

This is next revison of lpddr4 support on rk3399 compared to previous set[1]. It has some changes based on the commit orders and squashing few patches together and rest is same.

Thanks to
- YouMin Chen
- Akash Gajjar
- Kever Yang
for supporting all the help on this work.

Quoted 8 lines
Quoted 3 lines

Changes for v3:
- squash set_rate code in one patch
- tested in Rockpro64 and Rock-PI-4

Great works! Can't wait to try them on both boards!

Would you mind to setup a git repo for this large patchset? It would be much easier for other guys to test, other than fetching all the patches and apply them.

Quoted 141 lines

In fact the patchset can't be applied to current master due to conflicts. And furthermore the hash doesn't match any existing tree.

Would you mind to rebase it to current master? Or at least a git repo so I could try to rebase them.

Thanks,
Qu

Quoted 133 lines

Thanks,
Qu

Quoted 119 lines

- order them in proper way
- rebase on master
Changes for v2:
- handle LPDDR4 code as part of CONFIG_RAM_RK3399_LPDDR4
- support data_training and set_rate via sdram_rk3399_ops
- add proper sys_reg_enc macros
- add new patch to rename variable sdram_params with params
- fix few commit messages.

patch 0001 - 0018: add dram config enc macro

patch 0019: configure phy IO in ds odt

patch 0020: add LPDDR4 config

patch 0021 - 0043: lpddr4 data training changes

patch 0044 - 0046: syscon pmu support

patch 0047: set 50MHz ddr clock

patch 0048: set 400MHz ddr clock

patch 0049: LPDDR4-400 timings

patch 0050: LPDDR4-800 timings

patch 0051 - 0052: lpddr4 set rate

patch 0053: enable lpddr4 support on Rockpro64

patch 0054: enable lpddr4 support on Rock-PI 4

patch 0055: add LPDDR-100 timings via dts

patch 0056: use LPDDR-100 timings on Rockpro64

patch 0057: use LPDDR-100 timings on Rock-PI 4

[1] https://patchwork.ozlabs.org/cover/1116734/

Any inputs?
Jagan.

Jagan Teki (57):
ram: rk3399: Add ddrtype enc macro
ram: rk3399: Add channel number encoder macro
ram: rk3399: Add row_3_4 enc macro
ram: rk3399: Add chipinfo macro
ram: rk3399: Add rank enc macro
ram: rk3399: Add column enc macro
ram: rk3399: Add bk enc macro
ram: rk3399: Add dbw enc macro
ram: rk3399: Add cs0_rw macro
ram: rk3399: Add cs1_rw macro
ram: rk3399: Add bw enc macro
ram: rk3399: Rename sys_reg with sys_reg2
ram: rk3399: Update cs0_row to use sys_reg3
ram: rk3399: Update cs1_row to use sys_reg3
ram: rk3399: Add cs1_col enc macro
ram: rk3399: Add ddr version enc macro
ram: rk3399: Add ddrtimingC0
ram: rk3399: Add DdrMode
ram: rk3399: Configure phy IO in ds odt
ram: rockchip: Kconfig: Add RK3399 LPDDR4 entry
ram: rk3399: Add lpddr4 rank mask for ca training
ram: rk3399: Add lpddr4 rank mask for wdql training
ram: rk3399: Move mode_sel assignment
ram: rk3399: Don't wait for PLL lock in lpddr4
ram: rk3399: Avoid two channel ZQ Cal Start at the same time
ram: rk3399: Configure PHY_898, PHY_919 for lpddr4
ram: rk3399: Configure BOOSTP_EN, BOOSTN_EN for lpddr4
ram: rk3399: Configure SLEWP_EN, SLEWN_EN for lpddr4
ram: rk3399: Configure PHY RX_CM_INPUT for lpddr4
ram: rk3399: Map chipselect for lpddr4
ram: rk3399: Configure tsel write ca for lpddr4
ram: rk3399: Don't disable dfi dram clk for lpddr4, rank 1
ram: rk3399: Add IO settings
ram: sdram: Configure lpddr4 tsel rd, wr based on IO settings
ram: rk3399: Add tsel control clock drive
ram: rk3399: Configure soc odt support
ram: rk3399: Get lpddr4 tsel_rd_en from io settings
ram: rk3399: Update lpddr4 vref based on io settings
ram: rk3399: Update lpddr4 mode_sel based on io settings
ram: rk3399: Update lpddr4 vref_mode_ac
ram: rk3399: Simplify data training first argument
ram: rk3399: Handle data training via ops
ram: rk3399: Add LPPDR4 mr detection
arm: include: rockchip: Add rk3399 pmu file
rockchip: rk3399: syscon: Add pmu support
rockchip: dts: rk3399: Add u-boot, dm-pre-reloc for pmu
clk: rockchip: rk3399: Set 50MHz ddr clock
clk: rockchip: rk3399: Set 400MHz ddr clock
ram: rk3399: Add LPPDDR4-400 timings inc
ram: rk3399: Add LPPDDR4-800 timings inc
ram: rk3399: Add set_rate sdram rk3399 ops
ram: rk3399: Add lpddr4 set rate support
configs: rockpro64: Enable LPDDR4 support
configs: rock-pi-4: Enable LPDDR4 support
rockchip: dts: rk3399: Add LPDDR4-100 timings
rockchip: dts: rk3399: rockpro64: Use LPDDR4-100 dtsi
rockchip: dts: rk3399: rock-pi-4: Use LPDDR4-100 dtsi

  arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi     |    1 +
  arch/arm/dts/rk3399-rockpro64-u-boot.dtsi     |    1 +
  arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi     | 1537 +++++++++++++++
  arch/arm/dts/rk3399-u-boot.dtsi               |    4 +
  .../include/asm/arch-rockchip/pmu_rk3399.h    |   72 +
  .../include/asm/arch-rockchip/sdram_common.h  |   31 +
  .../include/asm/arch-rockchip/sdram_rk3399.h  |   29 +-
  arch/arm/mach-rockchip/rk3399/syscon_rk3399.c |    8 +
  configs/rock-pi-4-rk3399_defconfig            |    1 +
  configs/rockpro64-rk3399_defconfig            |    1 +
  drivers/clk/rockchip/clk_rk3399.c             |    8 +
  drivers/ram/rockchip/Kconfig                  |    7 +
  .../ram/rockchip/sdram-rk3399-lpddr4-400.inc  | 1570 +++++++++++++++
  .../ram/rockchip/sdram-rk3399-lpddr4-800.inc  | 1570 +++++++++++++++
  drivers/ram/rockchip/sdram_rk3399.c           | 1726 ++++++++++++++---
  15 files changed, 6317 insertions(+), 249 deletions(-)
Quoted 5 lines

create mode 100644 arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi create mode 100644 arch/arm/include/asm/arch-rockchip/pmu_rk3399.h create mode 100644 drivers/ram/rockchip/sdram-rk3399-lpddr4-400.inc create mode 100644 drivers/ram/rockchip/sdram-rk3399-lpddr4-800.inc

_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

#179 lore raw
Quoted 10 lines · Kever Yang

Hi Qu and Mani,

This patch has already on the mater, you can try with master code and use idbloader.img

directly.

Thanks,

Confirmed it works perfectly on RockPi 4, while the previous tag v2019.04, it boots but could easily hit SError memory error.

Great work!

Thanks,
Qu

Quoted 170 lines

- Kever

Quoted 164 lines · Qu Wenruo
Quoted 12 lines · Qu Wenruo
Quoted 10 lines · Jagan Teki

This is next revison of lpddr4 support on rk3399 compared to previous set[1]. It has some changes based on the commit orders and squashing few patches together and rest is same.

Thanks to
- YouMin Chen
- Akash Gajjar
- Kever Yang
for supporting all the help on this work.

Quoted 8 lines
Quoted 3 lines

Changes for v3:
- squash set_rate code in one patch
- tested in Rockpro64 and Rock-PI-4

Great works! Can't wait to try them on both boards!

Would you mind to setup a git repo for this large patchset? It would be much easier for other guys to test, other than fetching all the patches and apply them.

In fact the patchset can't be applied to current master due to conflicts. And furthermore the hash doesn't match any existing tree.

Would you mind to rebase it to current master? Or at least a git repo so I could try to rebase them.

Thanks,
Qu

Quoted 134 lines

Thanks,
Qu

Quoted 119 lines

- order them in proper way
- rebase on master
Changes for v2:
- handle LPDDR4 code as part of CONFIG_RAM_RK3399_LPDDR4
- support data_training and set_rate via sdram_rk3399_ops
- add proper sys_reg_enc macros
- add new patch to rename variable sdram_params with params
- fix few commit messages.

patch 0001 - 0018: add dram config enc macro

patch 0019: configure phy IO in ds odt

patch 0020: add LPDDR4 config

patch 0021 - 0043: lpddr4 data training changes

patch 0044 - 0046: syscon pmu support

patch 0047: set 50MHz ddr clock

patch 0048: set 400MHz ddr clock

patch 0049: LPDDR4-400 timings

patch 0050: LPDDR4-800 timings

patch 0051 - 0052: lpddr4 set rate

patch 0053: enable lpddr4 support on Rockpro64

patch 0054: enable lpddr4 support on Rock-PI 4

patch 0055: add LPDDR-100 timings via dts

patch 0056: use LPDDR-100 timings on Rockpro64

patch 0057: use LPDDR-100 timings on Rock-PI 4

[1] https://patchwork.ozlabs.org/cover/1116734/

Any inputs?
Jagan.

Jagan Teki (57):
   ram: rk3399: Add ddrtype enc macro
   ram: rk3399: Add channel number encoder macro
   ram: rk3399: Add row_3_4 enc macro
   ram: rk3399: Add chipinfo macro
   ram: rk3399: Add rank enc macro
   ram: rk3399: Add column enc macro
   ram: rk3399: Add bk enc macro
   ram: rk3399: Add dbw enc macro
   ram: rk3399: Add cs0_rw macro
   ram: rk3399: Add cs1_rw macro
   ram: rk3399: Add bw enc macro
   ram: rk3399: Rename sys_reg with sys_reg2
   ram: rk3399: Update cs0_row to use sys_reg3
   ram: rk3399: Update cs1_row to use sys_reg3
   ram: rk3399: Add cs1_col enc macro
   ram: rk3399: Add ddr version enc macro
   ram: rk3399: Add ddrtimingC0
   ram: rk3399: Add DdrMode
   ram: rk3399: Configure phy IO in ds odt
   ram: rockchip: Kconfig: Add RK3399 LPDDR4 entry
   ram: rk3399: Add lpddr4 rank mask for ca training
   ram: rk3399: Add lpddr4 rank mask for wdql training
   ram: rk3399: Move mode_sel assignment
   ram: rk3399: Don't wait for PLL lock in lpddr4
   ram: rk3399: Avoid two channel ZQ Cal Start at the same time
   ram: rk3399: Configure PHY_898, PHY_919 for lpddr4
   ram: rk3399: Configure BOOSTP_EN, BOOSTN_EN for lpddr4
   ram: rk3399: Configure SLEWP_EN, SLEWN_EN for lpddr4
   ram: rk3399: Configure PHY RX_CM_INPUT for lpddr4
   ram: rk3399: Map chipselect for lpddr4
   ram: rk3399: Configure tsel write ca for lpddr4
   ram: rk3399: Don't disable dfi dram clk for lpddr4, rank 1
   ram: rk3399: Add IO settings
   ram: sdram: Configure lpddr4 tsel rd, wr based on IO settings
   ram: rk3399: Add tsel control clock drive
   ram: rk3399: Configure soc odt support
   ram: rk3399: Get lpddr4 tsel_rd_en from io settings
   ram: rk3399: Update lpddr4 vref based on io settings
   ram: rk3399: Update lpddr4 mode_sel based on io settings
   ram: rk3399: Update lpddr4 vref_mode_ac
   ram: rk3399: Simplify data training first argument
   ram: rk3399: Handle data training via ops
   ram: rk3399: Add LPPDR4 mr detection
   arm: include: rockchip: Add rk3399 pmu file
   rockchip: rk3399: syscon: Add pmu support
   rockchip: dts: rk3399: Add u-boot, dm-pre-reloc for pmu
   clk: rockchip: rk3399: Set 50MHz ddr clock
   clk: rockchip: rk3399: Set 400MHz ddr clock
   ram: rk3399: Add LPPDDR4-400 timings inc
   ram: rk3399: Add LPPDDR4-800 timings inc
   ram: rk3399: Add set_rate sdram rk3399 ops
   ram: rk3399: Add lpddr4 set rate support
   configs: rockpro64: Enable LPDDR4 support
   configs: rock-pi-4: Enable LPDDR4 support
   rockchip: dts: rk3399: Add LPDDR4-100 timings
   rockchip: dts: rk3399: rockpro64: Use LPDDR4-100 dtsi
   rockchip: dts: rk3399: rock-pi-4: Use LPDDR4-100 dtsi

  arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi     |    1 +
  arch/arm/dts/rk3399-rockpro64-u-boot.dtsi     |    1 +
  arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi     | 1537 +++++++++++++++

  arch/arm/dts/rk3399-u-boot.dtsi               |    4 + .../include/asm/arch-rockchip/pmu_rk3399.h    |   72 + .../include/asm/arch-rockchip/sdram_common.h  |   31 + .../include/asm/arch-rockchip/sdram_rk3399.h  |   29 +- arch/arm/mach-rockchip/rk3399/syscon_rk3399.c |    8 + configs/rock-pi-4-rk3399_defconfig            |    1 + configs/rockpro64-rk3399_defconfig            |    1 + drivers/clk/rockchip/clk_rk3399.c             |    8 + drivers/ram/rockchip/Kconfig                  |    7 + .../ram/rockchip/sdram-rk3399-lpddr4-400.inc  | 1570 +++++++++++++++ .../ram/rockchip/sdram-rk3399-lpddr4-800.inc  | 1570 +++++++++++++++ drivers/ram/rockchip/sdram_rk3399.c           | 1726
++++++++++++++---

Quoted 6 lines
  15 files changed, 6317 insertions(+), 249 deletions(-)

  create mode 100644 arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi create mode 100644 arch/arm/include/asm/arch-rockchip/pmu_rk3399.h create mode 100644 drivers/ram/rockchip/sdram-rk3399-lpddr4-400.inc create mode 100644 drivers/ram/rockchip/sdram-rk3399-lpddr4-800.inc

_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot