xref: /openbmc/u-boot/board/freescale/t102xrdb/README (revision 48c6f328f00d245fb92f330ff94b213e8a375621)
1*48c6f328SShengzhou LiuT1024 SoC Overview
2*48c6f328SShengzhou Liu------------------
3*48c6f328SShengzhou LiuThe T1024/T1023 dual core and T1014/T1013 single core QorIQ communication processor
4*48c6f328SShengzhou Liucombines two or one 64-bit Power Architecture e5500 core respectively with high
5*48c6f328SShengzhou Liuperformance datapath acceleration logic, and network peripheral bus interfaces
6*48c6f328SShengzhou Liurequired for networking and telecommunications. This processor can be used in
7*48c6f328SShengzhou Liuapplications such as enterprise WLAN access points, routers, switches, firewall
8*48c6f328SShengzhou Liuand other packet processing intensive small enterprise and branch office appliances,
9*48c6f328SShengzhou Liuand general-purpose embedded computing. Its high level of integration offers
10*48c6f328SShengzhou Liusignificant performance benefits and greatly helps to simplify board design.
11*48c6f328SShengzhou Liu
12*48c6f328SShengzhou Liu
13*48c6f328SShengzhou LiuThe T1024 SoC includes the following function and features:
14*48c6f328SShengzhou Liu- two e5500 cores, each with a private 256 KB L2 cache
15*48c6f328SShengzhou Liu  - Up to 1.4 GHz with 64-bit ISA support (Power Architecture v2.06-compliant)
16*48c6f328SShengzhou Liu  - Three levels of instructions: User, supervisor, and hypervisor
17*48c6f328SShengzhou Liu  - Independent boot and reset
18*48c6f328SShengzhou Liu  - Secure boot capability
19*48c6f328SShengzhou Liu- 256 KB shared L3 CoreNet platform cache (CPC)
20*48c6f328SShengzhou Liu- Interconnect CoreNet platform
21*48c6f328SShengzhou Liu  - CoreNet coherency manager supporting coherent and noncoherent transactions
22*48c6f328SShengzhou Liu    with prioritization and bandwidth allocation amongst CoreNet endpoints
23*48c6f328SShengzhou Liu  - 150 Gbps coherent read bandwidth
24*48c6f328SShengzhou Liu- 32-/64-bit DDR3L/DDR4 SDRAM memory controller with ECC and interleaving support
25*48c6f328SShengzhou Liu- Data Path Acceleration Architecture (DPAA) incorporating acceleration for the following functions:
26*48c6f328SShengzhou Liu  - Packet parsing, classification, and distribution
27*48c6f328SShengzhou Liu  - Queue management for scheduling, packet sequencing, and congestion management
28*48c6f328SShengzhou Liu  - Cryptography Acceleration (SEC 5.x)
29*48c6f328SShengzhou Liu  - IEEE 1588 support
30*48c6f328SShengzhou Liu  - Hardware buffer management for buffer allocation and deallocation
31*48c6f328SShengzhou Liu  - MACSEC on DPAA-based Ethernet ports
32*48c6f328SShengzhou Liu- Ethernet interfaces
33*48c6f328SShengzhou Liu  - Four 1 Gbps Ethernet controllers
34*48c6f328SShengzhou Liu- Parallel Ethernet interfaces
35*48c6f328SShengzhou Liu  - Two RGMII interfaces
36*48c6f328SShengzhou Liu- High speed peripheral interfaces
37*48c6f328SShengzhou Liu  - Three PCI Express 2.0 controllers/ports running at up to 5 GHz
38*48c6f328SShengzhou Liu  - One SATA controller supporting 1.5 and 3.0 Gb/s operation
39*48c6f328SShengzhou Liu  - One QSGMII interface
40*48c6f328SShengzhou Liu  - Four SGMII interface supporting 1000 Mbps
41*48c6f328SShengzhou Liu  - Three SGMII interfaces supporting up to 2500 Mbps
42*48c6f328SShengzhou Liu  - 10GbE XFI or 10Base-KR interface
43*48c6f328SShengzhou Liu- Additional peripheral interfaces
44*48c6f328SShengzhou Liu  - Two USB 2.0 controllers with integrated PHY
45*48c6f328SShengzhou Liu  - SD/eSDHC/eMMC
46*48c6f328SShengzhou Liu  - eSPI controller
47*48c6f328SShengzhou Liu  - Four I2C controllers
48*48c6f328SShengzhou Liu  - Four UARTs
49*48c6f328SShengzhou Liu  - Four GPIO controllers
50*48c6f328SShengzhou Liu  - Integrated flash controller (IFC)
51*48c6f328SShengzhou Liu  - LCD interface (DIU) with 12 bit dual data rate
52*48c6f328SShengzhou Liu- Multicore programmable interrupt controller (PIC)
53*48c6f328SShengzhou Liu- Two 8-channel DMA engines
54*48c6f328SShengzhou Liu- Single source clocking implementation
55*48c6f328SShengzhou Liu- Deep Sleep power implementaion (wakeup from GPIO/Timer/Ethernet/USB)
56*48c6f328SShengzhou Liu- QUICC Engine block
57*48c6f328SShengzhou Liu  - 32-bit RISC controller for flexible support of the communications peripherals
58*48c6f328SShengzhou Liu  - Serial DMA channel for receive and transmit on all serial channels
59*48c6f328SShengzhou Liu  - Two universal communication controllers, supporting TDM, HDLC, and UART
60*48c6f328SShengzhou Liu
61*48c6f328SShengzhou LiuT1023 Personality
62*48c6f328SShengzhou Liu------------------
63*48c6f328SShengzhou LiuT1023 is a reduced personality of T1024 without QUICC Engine, DIU, and
64*48c6f328SShengzhou Liuunavailable deep sleep. Rest of the blocks are almost same as T1024.
65*48c6f328SShengzhou LiuDifferences between T1024 and T1023
66*48c6f328SShengzhou LiuFeature		T1024  T1023
67*48c6f328SShengzhou LiuQUICC Engine:	yes    no
68*48c6f328SShengzhou LiuDIU:		yes    no
69*48c6f328SShengzhou LiuDeep Sleep:	yes    no
70*48c6f328SShengzhou LiuI2C controller: 4      3
71*48c6f328SShengzhou LiuDDR:		64-bit 32-bit
72*48c6f328SShengzhou LiuIFC:		32-bit 28-bit
73*48c6f328SShengzhou Liu
74*48c6f328SShengzhou Liu
75*48c6f328SShengzhou LiuT1024RDB board Overview
76*48c6f328SShengzhou Liu-----------------------
77*48c6f328SShengzhou Liu - Ethernet
78*48c6f328SShengzhou Liu     - Two on-board 10M/100M/1G bps RGMII ethernet ports
79*48c6f328SShengzhou Liu     - One on-board 10G bps Base-T port.
80*48c6f328SShengzhou Liu - DDR Memory
81*48c6f328SShengzhou Liu     - Supports 64-bit 4GB DDR3L DIMM
82*48c6f328SShengzhou Liu - PCIe
83*48c6f328SShengzhou Liu     - One on-board PCIe slot.
84*48c6f328SShengzhou Liu     - Two on-board PCIe Mini-PCIe connectors.
85*48c6f328SShengzhou Liu - IFC/Local Bus
86*48c6f328SShengzhou Liu     - NOR:  128MB 16-bit NOR Flash
87*48c6f328SShengzhou Liu     - NAND: 1GB 8-bit NAND flash
88*48c6f328SShengzhou Liu     - CPLD: for system controlling with programable header on-board
89*48c6f328SShengzhou Liu - USB
90*48c6f328SShengzhou Liu     - Supports two USB 2.0 ports with integrated PHYs
91*48c6f328SShengzhou Liu     - Two type A ports with 5V@1.5A per port.
92*48c6f328SShengzhou Liu - SDHC
93*48c6f328SShengzhou Liu     - one SD connector supporting 1.8V/3.3V via J53.
94*48c6f328SShengzhou Liu - SPI
95*48c6f328SShengzhou Liu     -  On-board 64MB SPI flash
96*48c6f328SShengzhou Liu - Other
97*48c6f328SShengzhou Liu     - Two Serial ports
98*48c6f328SShengzhou Liu     - Four I2C ports
99*48c6f328SShengzhou Liu
100*48c6f328SShengzhou Liu
101*48c6f328SShengzhou LiuMemory map on T1024RDB
102*48c6f328SShengzhou Liu----------------------
103*48c6f328SShengzhou LiuStart Address  End Address      Description			Size
104*48c6f328SShengzhou Liu0xF_FFDF_0000  0xF_FFDF_0FFF    IFC - CPLD			4KB
105*48c6f328SShengzhou Liu0xF_FF80_0000  0xF_FF80_FFFF    IFC - NAND Flash		64KB
106*48c6f328SShengzhou Liu0xF_FE00_0000  0xF_FEFF_FFFF    CCSRBAR				16MB
107*48c6f328SShengzhou Liu0xF_F802_0000  0xF_F802_FFFF    PCI Express 3 I/O Space		64KB
108*48c6f328SShengzhou Liu0xF_F801_0000  0xF_F801_FFFF    PCI Express 2 I/O Space		64KB
109*48c6f328SShengzhou Liu0xF_F800_0000  0xF_F800_FFFF    PCI Express 1 I/O Space		64KB
110*48c6f328SShengzhou Liu0xF_F600_0000  0xF_F7FF_FFFF    Queue manager software portal   32MB
111*48c6f328SShengzhou Liu0xF_F400_0000  0xF_F5FF_FFFF    Buffer manager software portal  32MB
112*48c6f328SShengzhou Liu0xF_E800_0000  0xF_EFFF_FFFF    IFC - NOR Flash			128MB
113*48c6f328SShengzhou Liu0xF_0000_0000  0xF_003F_FFFF    DCSR				4MB
114*48c6f328SShengzhou Liu0xC_2000_0000  0xC_2FFF_FFFF    PCI Express 3 Mem Space		256MB
115*48c6f328SShengzhou Liu0xC_1000_0000  0xC_1FFF_FFFF    PCI Express 2 Mem Space		256MB
116*48c6f328SShengzhou Liu0xC_0000_0000  0xC_0FFF_FFFF    PCI Express 1 Mem Space		256MB
117*48c6f328SShengzhou Liu0x0_0000_0000  0x0_ffff_ffff    DDR				4GB
118*48c6f328SShengzhou Liu
119*48c6f328SShengzhou Liu
120*48c6f328SShengzhou Liu128MB NOR Flash memory Map
121*48c6f328SShengzhou Liu--------------------------
122*48c6f328SShengzhou LiuStart Address   End Address     Definition			Max size
123*48c6f328SShengzhou Liu0xEFF40000      0xEFFFFFFF      u-boot (current bank)		768KB
124*48c6f328SShengzhou Liu0xEFF20000      0xEFF3FFFF      u-boot env (current bank)	128KB
125*48c6f328SShengzhou Liu0xEFF00000      0xEFF1FFFF      FMAN Ucode (current bank)	128KB
126*48c6f328SShengzhou Liu0xEFE00000      0xEFE3FFFF      QE firmware (current bank)	256KB
127*48c6f328SShengzhou Liu0xED300000      0xEFEFFFFF      rootfs (alt bank)		44MB
128*48c6f328SShengzhou Liu0xEC800000      0xEC8FFFFF      Hardware device tree (alt bank) 1MB
129*48c6f328SShengzhou Liu0xEC020000      0xEC7FFFFF      Linux.uImage (alt bank)		7MB + 875KB
130*48c6f328SShengzhou Liu0xEC000000      0xEC01FFFF      RCW (alt bank)			128KB
131*48c6f328SShengzhou Liu0xEBF40000      0xEBFFFFFF      u-boot (alt bank)		768KB
132*48c6f328SShengzhou Liu0xEBF20000      0xEBF3FFFF      u-boot env (alt bank)		128KB
133*48c6f328SShengzhou Liu0xEBF00000      0xEBF1FFFF      FMAN ucode (alt bank)		128KB
134*48c6f328SShengzhou Liu0xEBE00000      0xEBE3FFFF      QE firmware (alt bank)		256KB
135*48c6f328SShengzhou Liu0xE9300000      0xEBEFFFFF      rootfs (current bank)		44MB
136*48c6f328SShengzhou Liu0xE8800000      0xE88FFFFF      Hardware device tree (cur bank) 1MB
137*48c6f328SShengzhou Liu0xE8020000      0xE86FFFFF      Linux.uImage (current bank)	7MB + 875KB
138*48c6f328SShengzhou Liu0xE8000000      0xE801FFFF      RCW (current bank)		128KB
139*48c6f328SShengzhou Liu
140*48c6f328SShengzhou Liu
141*48c6f328SShengzhou LiuT1024 Clock frequency
142*48c6f328SShengzhou Liu---------------------
143*48c6f328SShengzhou LiuBIN   Core     DDR       Platform  FMan
144*48c6f328SShengzhou LiuBin1: 1400MHz  1600MT/s  400MHz    700MHz
145*48c6f328SShengzhou LiuBin2: 1200MHz  1600MT/s  400MHz    600MHz
146*48c6f328SShengzhou LiuBin3: 1000MHz  1600MT/s  400MHz    500MHz
147*48c6f328SShengzhou Liu
148*48c6f328SShengzhou Liu
149*48c6f328SShengzhou LiuSoftware configurations and board settings
150*48c6f328SShengzhou Liu------------------------------------------
151*48c6f328SShengzhou Liu1. NOR boot:
152*48c6f328SShengzhou Liu   a. build NOR boot image
153*48c6f328SShengzhou Liu	$  make T1024RDB_defconfig
154*48c6f328SShengzhou Liu	$  make
155*48c6f328SShengzhou Liu   b. program u-boot.bin image to NOR flash
156*48c6f328SShengzhou Liu	=> tftp 1000000 u-boot.bin
157*48c6f328SShengzhou Liu	=> pro off all;era eff40000 efffffff;cp.b 1000000 eff40000 $filesize
158*48c6f328SShengzhou Liu	set SW1[1:8] = '00010011', SW2[1] = '1', SW3[4] = '0' for NOR boot
159*48c6f328SShengzhou Liu
160*48c6f328SShengzhou Liu   Switching between default bank0 and alternate bank4 on NOR flash
161*48c6f328SShengzhou Liu   To change boot source to vbank4:
162*48c6f328SShengzhou Liu        via software:   run command 'cpld reset altbank' in u-boot.
163*48c6f328SShengzhou Liu        via DIP-switch: set SW3[5:7] = '100'
164*48c6f328SShengzhou Liu
165*48c6f328SShengzhou Liu   To change boot source to vbank0:
166*48c6f328SShengzhou Liu        via software:   run command 'cpld reset' in u-boot.
167*48c6f328SShengzhou Liu        via DIP-Switch: set SW3[5:7] = '000'
168*48c6f328SShengzhou Liu
169*48c6f328SShengzhou Liu2. NAND Boot:
170*48c6f328SShengzhou Liu   a. build PBL image for NAND boot
171*48c6f328SShengzhou Liu	$ make T1024RDB_NAND_defconfig
172*48c6f328SShengzhou Liu	$ make
173*48c6f328SShengzhou Liu   b. program u-boot-with-spl-pbl.bin to NAND flash
174*48c6f328SShengzhou Liu	=> tftp 1000000 u-boot-with-spl-pbl.bin
175*48c6f328SShengzhou Liu	=> nand erase 0 $filesize
176*48c6f328SShengzhou Liu	=> nand write 1000000 0 $filesize
177*48c6f328SShengzhou Liu	set SW1[1:8] = '10001000', SW2[1] = '1', SW3[4] = '1' for NAND boot
178*48c6f328SShengzhou Liu
179*48c6f328SShengzhou Liu3. SPI Boot:
180*48c6f328SShengzhou Liu   a. build PBL image for SPI boot
181*48c6f328SShengzhou Liu	$ make T1024RDB_SPIFLASH_defconfig
182*48c6f328SShengzhou Liu	$ make
183*48c6f328SShengzhou Liu   b. program u-boot-with-spl-pbl.bin to SPI flash
184*48c6f328SShengzhou Liu	=> tftp 1000000 u-boot-with-spl-pbl.bin
185*48c6f328SShengzhou Liu	=> sf probe 0
186*48c6f328SShengzhou Liu	=> sf erase 0 f0000
187*48c6f328SShengzhou Liu	=> sf write 1000000 0 $filesize
188*48c6f328SShengzhou Liu	set SW1[1:8] = '00100010', SW2[1] ='1' for SPI boot
189*48c6f328SShengzhou Liu
190*48c6f328SShengzhou Liu4. SD Boot:
191*48c6f328SShengzhou Liu   a. build PBL image for SD boot
192*48c6f328SShengzhou Liu	$ make T1024RDB_SDCARD_defconfig
193*48c6f328SShengzhou Liu	$ make
194*48c6f328SShengzhou Liu   b. program u-boot-with-spl-pbl.bin to SD/MMC card
195*48c6f328SShengzhou Liu	=> tftp 1000000 u-boot-with-spl-pbl.bin
196*48c6f328SShengzhou Liu	=> mmc write 1000000 8 0x800
197*48c6f328SShengzhou Liu	=> tftp 1000000 fsl_fman_ucode_t1024_xx.bin
198*48c6f328SShengzhou Liu	=> mmc write 1000000 0x820 80
199*48c6f328SShengzhou Liu	set SW1[1:8] = '00100000', SW2[1] = '0' for SD boot
200*48c6f328SShengzhou Liu
201*48c6f328SShengzhou Liu
202*48c6f328SShengzhou Liu2-stage NAND/SPI/SD boot loader
203*48c6f328SShengzhou Liu-------------------------------
204*48c6f328SShengzhou LiuPBL initializes the internal CPC-SRAM and copy SPL(160K) to SRAM.
205*48c6f328SShengzhou LiuSPL further initializes DDR using SPD and environment variables
206*48c6f328SShengzhou Liuand copy u-boot(768 KB) from NAND/SPI/SD device to DDR.
207*48c6f328SShengzhou LiuFinally SPL transers control to u-boot for futher booting.
208*48c6f328SShengzhou Liu
209*48c6f328SShengzhou LiuSPL has following features:
210*48c6f328SShengzhou Liu - Executes within 256K
211*48c6f328SShengzhou Liu - No relocation required
212*48c6f328SShengzhou Liu
213*48c6f328SShengzhou LiuRun time view of SPL framework
214*48c6f328SShengzhou Liu-------------------------------------------------
215*48c6f328SShengzhou Liu|Area		   | Address			|
216*48c6f328SShengzhou Liu-------------------------------------------------
217*48c6f328SShengzhou Liu|SecureBoot header | 0xFFFC0000 (32KB)		|
218*48c6f328SShengzhou Liu-------------------------------------------------
219*48c6f328SShengzhou Liu|GD, BD		   | 0xFFFC8000 (4KB)		|
220*48c6f328SShengzhou Liu-------------------------------------------------
221*48c6f328SShengzhou Liu|ENV		   | 0xFFFC9000 (8KB)		|
222*48c6f328SShengzhou Liu-------------------------------------------------
223*48c6f328SShengzhou Liu|HEAP		   | 0xFFFCB000 (30KB)		|
224*48c6f328SShengzhou Liu-------------------------------------------------
225*48c6f328SShengzhou Liu|STACK		   | 0xFFFD8000 (22KB)		|
226*48c6f328SShengzhou Liu-------------------------------------------------
227*48c6f328SShengzhou Liu|U-boot SPL	   | 0xFFFD8000 (160KB)		|
228*48c6f328SShengzhou Liu-------------------------------------------------
229*48c6f328SShengzhou Liu
230*48c6f328SShengzhou LiuNAND Flash memory Map on T1024RDB
231*48c6f328SShengzhou Liu-------------------------------------------------------------
232*48c6f328SShengzhou LiuStart		End		Definition	Size
233*48c6f328SShengzhou Liu0x000000	0x0FFFFF	u-boot		1MB(2 block)
234*48c6f328SShengzhou Liu0x100000	0x17FFFF	u-boot env	512KB(1 block)
235*48c6f328SShengzhou Liu0x180000	0x1FFFFF	FMAN Ucode	512KB(1 block)
236*48c6f328SShengzhou Liu0x200000	0x27FFFF	QE Firmware	512KB(1 block)
237*48c6f328SShengzhou Liu
238*48c6f328SShengzhou Liu
239*48c6f328SShengzhou LiuSD Card memory Map on T1024RDB
240*48c6f328SShengzhou Liu----------------------------------------------------
241*48c6f328SShengzhou LiuBlock		#blocks		Definition	Size
242*48c6f328SShengzhou Liu0x008		2048		u-boot img	1MB
243*48c6f328SShengzhou Liu0x800		0016		u-boot env	8KB
244*48c6f328SShengzhou Liu0x820		0256		FMAN Ucode	128KB
245*48c6f328SShengzhou Liu0x920		0256		QE Firmware	128KB
246*48c6f328SShengzhou Liu
247*48c6f328SShengzhou Liu
248*48c6f328SShengzhou LiuSPI Flash memory Map on T1024RDB
249*48c6f328SShengzhou Liu----------------------------------------------------
250*48c6f328SShengzhou LiuStart		End		Definition	Size
251*48c6f328SShengzhou Liu0x000000	0x0FFFFF	u-boot img	1MB
252*48c6f328SShengzhou Liu0x100000	0x101FFF	u-boot env	8KB
253*48c6f328SShengzhou Liu0x110000	0x12FFFF	FMAN Ucode	128KB
254*48c6f328SShengzhou Liu0x130000	0x14FFFF	QE Firmware	128KB
255*48c6f328SShengzhou Liu
256*48c6f328SShengzhou Liu
257*48c6f328SShengzhou LiuFor more details, please refer to T1024RDB Reference Manual and access
258*48c6f328SShengzhou Liuwebsite www.freescale.com and Freescale QorIQ SDK Infocenter document.
259