xref: /openbmc/u-boot/board/freescale/t104xrdb/README (revision a65b25d1)
1Overview
2--------
3The T1040RDB is a Freescale reference board that hosts the T1040 SoC
4(and variants). Variants inclued T1042 presonality of T1040, in which
5case T1040RDB can also be called T1042RDB.
6
7The T1042RDB is a Freescale reference board that hosts the T1042 SoC
8(and variants). The board is similar to T1040RDB, T1040 is a reduced
9personality of T1040 SoC without Integrated 8-port Gigabit(L2 Switch).
10
11The T1042RDB_PI is a Freescale reference board that hosts the T1042 SoC.
12(a personality of T1040 SoC). The board is similar to T1040RDB but is
13designed specially with low power features targeted for Printing Image Market.
14
15Basic difference's among T1040RDB, T1042RDB_PI, T1042RDB
16-------------------------------------------------------------------------
17Board		Si		Protocol		Targeted Market
18-------------------------------------------------------------------------
19T1040RDB	T1040		0x66                    Networking
20T1040RDB	T1042		0x86                    Networking
21T1042RDB_PI	T1042		0x06                    Printing & Imaging
22
23
24T1040 SoC Overview
25------------------
26The QorIQ T1040/T1042 processor support four integrated 64-bit e5500 PA
27processor cores with high-performance data path acceleration architecture
28and network peripheral interfaces required for networking & telecommunications.
29
30The T1040/T1042 SoC includes the following function and features:
31
32 - Four e5500 cores, each with a private 256 KB L2 cache
33 - 256 KB shared L3 CoreNet platform cache (CPC)
34 - Interconnect CoreNet platform
35 - 32-/64-bit DDR3L/DDR4 SDRAM memory controller with ECC and interleaving
36   support
37 - Data Path Acceleration Architecture (DPAA) incorporating acceleration
38 for the following functions:
39    -  Packet parsing, classification, and distribution
40    -  Queue management for scheduling, packet sequencing, and congestion
41       management
42    -  Cryptography Acceleration (SEC 5.0)
43    - RegEx Pattern Matching Acceleration (PME 2.2)
44    - IEEE Std 1588 support
45    - Hardware buffer management for buffer allocation and deallocation
46 - Ethernet interfaces
47    - Integrated 8-port Gigabit Ethernet switch (T1040 only)
48    - Four 1 Gbps Ethernet controllers
49 - Two RGMII interfaces or one RGMII and one MII interfaces
50 - High speed peripheral interfaces
51   - Four PCI Express 2.0 controllers running at up to 5 GHz
52   - Two SATA controllers supporting 1.5 and 3.0 Gb/s operation
53   - Upto two QSGMII interface
54   - Upto six SGMII interface supporting 1000 Mbps
55   - One SGMII interface supporting upto 2500 Mbps
56 - Additional peripheral interfaces
57   - Two USB 2.0 controllers with integrated PHY
58   - SD/eSDHC/eMMC
59   - eSPI controller
60   - Four I2C controllers
61   - Four UARTs
62   - Four GPIO controllers
63   - Integrated flash controller (IFC)
64   - LCD and HDMI interface (DIU) with 12 bit dual data rate
65   - TDM interface
66 - Multicore programmable interrupt controller (PIC)
67 - Two 8-channel DMA engines
68 - Single source clocking implementation
69 - Deep Sleep power implementaion (wakeup from GPIO/Timer/Ethernet/USB)
70
71T1040 SoC Personalities
72-------------------------
73
74T1022 Personality:
75T1022 is a reduced personality of T1040 with less core/clusters.
76
77T1042 Personality:
78T1042 is a reduced personality of T1040 without Integrated 8-port Gigabit
79Ethernet switch. Rest of the blocks are same as T1040
80
81
82T1040RDB board Overview
83-------------------------
84 - SERDES Connections, 8 lanes information:
85	1: None
86	2: SGMII
87	3: QSGMII
88	4: QSGMII
89	5: PCIe1 x1 slot
90	6: mini PCIe connector
91	7: mini PCIe connector
92	8: SATA connector
93 - DDR Controller
94     - Supports rates of up to 1600 MHz data-rate
95     - Supports one DDR3LP UDIMM/RDIMMs, of single-, dual- or quad-rank types.
96 - IFC/Local Bus
97     - NAND flash: 1GB 8-bit NAND flash
98     - NOR: 128MB 16-bit NOR Flash
99 - Ethernet
100     - Two on-board RGMII 10/100/1G ethernet ports.
101 - CPLD
102 - Clocks
103     - System and DDR clock (SYSCLK, “DDRCLK”)
104     - SERDES clocks
105 - Power Supplies
106 - USB
107     - Supports two USB 2.0 ports with integrated PHYs
108     - Two type A ports with 5V@1.5A per port.
109 - SDHC
110     - SDHC/SDXC connector
111 - SPI
112    -  On-board 64MB SPI flash
113 - Other IO
114    - Two Serial ports
115    - Four I2C ports
116
117T1042RDB_PI board Overview
118-------------------------
119 - SERDES Connections, 8 lanes information:
120	1, 2, 3, 4 : PCIe x4 slot
121	5: mini PCIe connector
122	6: mini PCIe connector
123	7: NA
124	8: SATA connector
125 - DDR Controller
126     - Supports rates of up to 1600 MHz data-rate
127     - Supports one DDR3LP UDIMM/RDIMMs, of single-, dual- or quad-rank types.
128 - IFC/Local Bus
129     - NAND flash: 1GB 8-bit NAND flash
130     - NOR: 128MB 16-bit NOR Flash
131 - Ethernet
132     - Two on-board RGMII 10/100/1G ethernet ports.
133 - CPLD
134 - Clocks
135     - System and DDR clock (SYSCLK, “DDRCLK”)
136     - SERDES clocks
137 - Video
138     - DIU supports video at up to 1280x1024x32bpp
139 - Power Supplies
140 - USB
141     - Supports two USB 2.0 ports with integrated PHYs
142     - Two type A ports with 5V@1.5A per port.
143 - SDHC
144     - SDHC/SDXC connector
145 - SPI
146    -  On-board 64MB SPI flash
147 - Other IO
148    - Two Serial ports
149    - Four I2C ports
150
151Memory map
152-----------
153The addresses in brackets are physical addresses.
154
155Start Address  End Address      Description                     Size
1560xF_FFDF_0000  0xF_FFDF_0FFF    IFC - CPLD                      4KB
1570xF_FF80_0000  0xF_FF80_FFFF    IFC - NAND Flash                64KB
1580xF_FE00_0000  0xF_FEFF_FFFF    CCSRBAR                         16MB
1590xF_F803_0000  0xF_F803_FFFF    PCI Express 4 I/O Space         64KB
1600xF_F802_0000  0xF_F802_FFFF    PCI Express 3 I/O Space	        64KB
1610xF_F801_0000  0xF_F801_FFFF    PCI Express 2 I/O Space         64KB
1620xF_F800_0000  0xF_F800_FFFF    PCI Express 1 I/O Space	        64KB
1630xF_F600_0000  0xF_F7FF_FFFF    Queue manager software portal   32MB
1640xF_F400_0000  0xF_F5FF_FFFF    Buffer manager software portal  32MB
1650xF_E800_0000  0xF_EFFF_FFFF    IFC - NOR Flash                 128MB
1660xF_0000_0000  0xF_003F_FFFF    DCSR                            4MB
1670xC_3000_0000  0xC_3FFF_FFFF    PCI Express 4 Mem Space         256MB
1680xC_2000_0000  0xC_2FFF_FFFF    PCI Express 3 Mem Space         256MB
1690xC_1000_0000  0xC_1FFF_FFFF    PCI Express 2 Mem Space         256MB
1700xC_0000_0000  0xC_0FFF_FFFF    PCI Express 1 Mem Space         256MB
1710x0_0000_0000  0x0_ffff_ffff    DDR                             2GB
172
173
174NOR Flash memory Map
175---------------------
176 Start          End             Definition                       Size
1770xEFF40000      0xEFFFFFFF      u-boot (current bank)            768KB
1780xEFF20000      0xEFF3FFFF      u-boot env (current bank)        128KB
1790xEFF00000      0xEFF1FFFF      FMAN Ucode (current bank)        128KB
1800xED300000      0xEFEFFFFF      rootfs (alt bank)                44MB
1810xEC800000      0xEC8FFFFF      Hardware device tree (alt bank)  1MB
1820xEC020000      0xEC7FFFFF      Linux.uImage (alt bank)          7MB + 875KB
1830xEC000000      0xEC01FFFF      RCW (alt bank)                   128KB
1840xEBF40000      0xEBFFFFFF      u-boot (alt bank)                768KB
1850xEBF20000      0xEBF3FFFF      u-boot env (alt bank)            128KB
1860xEBF00000      0xEBF1FFFF      FMAN ucode (alt bank)            128KB
1870xE9300000      0xEBEFFFFF      rootfs (current bank)            44MB
1880xE8800000      0xE88FFFFF      Hardware device tree (cur bank)  11MB + 512KB
1890xE8020000      0xE86FFFFF      Linux.uImage (current bank)      7MB + 875KB
1900xE8000000      0xE801FFFF      RCW (current bank)               128KB
191
192
193Various Software configurations/environment variables/commands
194--------------------------------------------------------------
195The below commands apply to the board
196
1971. U-boot environment variable hwconfig
198   The default hwconfig is:
199	hwconfig=fsl_ddr:ctlr_intlv=null,bank_intlv=cs0_cs1;usb1:
200					dr_mode=host,phy_type=utmi
201   Note: For USB gadget set "dr_mode=peripheral"
202
2032. FMAN Ucode versions
204   fsl_fman_ucode_t1040.bin
205
2063. Switching to alternate bank
207   Commands for switching to alternate bank.
208
209	1. To change from vbank0 to vbank4
210		=> cpld reset altbank (it will boot using vbank4)
211
212	2.To change from vbank4 to vbank0
213		=> cpld reset (it will boot using vbank0)
214
215NAND boot with 2 Stage boot loader
216----------------------------------
217PBL initialise the internal SRAM and copy SPL(160KB) in SRAM.
218SPL further initialise DDR using SPD and environment variables and copy
219u-boot(768 KB) from flash to DDR.
220Finally SPL transer control to u-boot for futher booting.
221
222SPL has following features:
223 - Executes within 256K
224 - No relocation required
225
226 Run time view of SPL framework during  boot :-
227 -----------------------------------------------
228 Area        | Address                         |
229-----------------------------------------------
230 Secure boot | 0xFFFC0000 (32KB)               |
231 headers     |                                 |
232 -----------------------------------------------
233 GD, BD      | 0xFFFC8000 (4KB)                |
234 -----------------------------------------------
235 ENV         | 0xFFFC9000 (8KB)                |
236 -----------------------------------------------
237 HEAP        | 0xFFFCB000 (30KB)               |
238 -----------------------------------------------
239 STACK       | 0xFFFD8000 (22KB)               |
240 -----------------------------------------------
241 U-boot SPL  | 0xFFFD8000 (160KB)              |
242 -----------------------------------------------
243
244NAND Flash memory Map on T104xRDB
245------------------------------------------
246 Start		 End		Definition			Size
2470x000000	0x0FFFFF	u-boot                          1MB
2480x180000	0x19FFFF	u-boot env                      128KB
2490x280000	0x29FFFF	FMAN Ucode                      128KB
2500x380000	0x39FFFF	QE Firmware                     128KB
251
252SD Card memory Map on T104xRDB
253------------------------------------------
254 Block		#blocks		Definition			Size
2550x008		2048		u-boot                          1MB
2560x800		0024		u-boot env                      8KB
2570x820		0256		FMAN Ucode                      128KB
2580x920		0256		QE Firmware                     128KB
259
260SPI Flash memory Map on T104xRDB
261------------------------------------------
262 Start		 End		Definition			Size
2630x000000	0x0FFFFF	u-boot                          1MB
2640x100000	0x101FFF	u-boot env                      8KB
2650x110000	0x12FFFF	FMAN Ucode                      128KB
2660x130000	0x14FFFF	QE Firmware                     128KB
267
268Please note QE Firmware is only valid for T1040RDB
269
270
271Switch Settings: (ON is 0, OFF is 1)
272===============
273NAND boot SW setting:
274SW1: 10001000
275SW2: 00111011
276SW3: 11110001
277
278SPI boot SW setting:
279SW1: 00100010
280SW2: 10111011
281SW3: 11100001
282
283SD boot SW setting:
284SW1: 00100000
285SW2: 00111011
286SW3: 11100001
287