blob: cd12291d8aafefb32f3e024fa6559f8b14fefc18 [file] [log] [blame]
Jianchao Wang87821222019-07-19 00:30:01 +03001.. SPDX-License-Identifier: GPL-2.0
2
3LS1021A-TSN Board Overview
4==========================
5
6 - 1GB DDR3 at 800 MHz
7 - Spansion/Cypress 64 MB (Rev. A) / 32 MB (Rev. B and C) QSPI NOR flash
8 - Ethernet
9 - 2 SGMII 10/100/1G Ethernet ports (Atheros AR8031)
10 - One SJA1105T switch with 4 Ethernet ports (Broadcom BCM5464R)
11 - One internal RGMII port connected to the switch
12 - SDHC
13 - microSDHC/SDXC connector
14 - Other I/O
15 - One Serial port
16 - Arduino and expansion headers
17 - mPCIE slot
18 - SATA port
19 - USB3.0 port
20
21LS1021A Memory map
22==================
23
24The addresses in brackets are physical addresses.
25
26============== ============== ============================== =======
27Start Address End Address Description Size
28============== ============== ============================== =======
290x00_0000_0000 0x00_000F_FFFF Secure Boot ROM 1MB
300x00_0100_0000 0x00_0FFF_FFFF CCSRBAR 240MB
310x00_1000_0000 0x00_1000_FFFF OCRAM0 64KB
320x00_1001_0000 0x00_1001_FFFF OCRAM1 64KB
330x00_2000_0000 0x00_20FF_FFFF DCSR 16MB
340x00_4000_0000 0x00_5FFF_FFFF QSPI 512MB
350x00_6000_0000 0x00_67FF_FFFF IFC - NOR Flash 128MB
360x00_8000_0000 0x00_FFFF_FFFF DRAM1 2GB
37============== ============== ============================== =======
38
39Compiling and flashing
40======================
41
42The LS1021A-TSN board comes along with a microSD card with OpenIL U-Boot that
43can be used to update its internal QSPI flash (which is empty out of the
44factory).
45
46To compile and flash an SD card image::
47
48 make ls1021atsn_sdcard_defconfig && make -j 8 && sudo cp u-boot-with-spl-pbl.bin /srv/tftpboot/
49 => tftp 0x82000000 u-boot-with-spl-pbl.bin && mmc rescan && mmc erase 8 0x1100 && mmc write 0x82000000 8 0x1100
50
51For the QSPI flash, first obtain the Reset Configuration Word binary for
52bootimg from the QSPI flash from the rcw project
Fabio Estevama25dad72023-01-12 22:00:06 -030053(https://github.com/nxp-qoriq/rcw)::
Jianchao Wang87821222019-07-19 00:30:01 +030054
55 make -j 8 && sudo cp ls1021atsn/SSR_PNS_30/rcw_1200_qspiboot.bin.swapped /srv/tftpboot/
56
57The above RCW binary takes care of swapping the QSPI AMBA memory, so that the
58U-Boot binary does not need to be swapped when flashing it.
59
60To compile and flash a U-Boot image for QSPI::
61
62 make ls1021atsn_qspi_defconfig && make -j 8 && sudo cp u-boot.bin /srv/tftpboot/
63
64Then optionally create a custom uboot-env.txt file (although the default
65environment already supports distro boot) and convert it to binary format::
66
67 mkenvimage -s 2M -o /srv/tftpboot/uboot-env.bin uboot-env.txt
68
69To program the QSPI flash with the images::
70
71 => tftp 0x82000000 rcw_1200_qspiboot.bin.swapped && sf probe && sf erase 0x0 +${filesize} && sf write 0x82000000 0x0 ${filesize}
72 => tftp 0x82000000 u-boot.bin && sf probe && sf erase 0x100000 +${filesize} && sf write 0x82000000 0x100000 ${filesize}
73 => tftp 0x82000000 uboot-env.bin && sf probe && sf erase 0x400000 +${filesize} && sf write 0x82000000 0x400000 ${filesize}
74
75The boards contain an AT24 I2C EEPROM that is supposed to hold the MAC
76addresses of the Ethernet interfaces, however the EEPROM comes blank out of
77the factory, and the MAC addresses are printed on a label on the bottom of
78the boards.
79
80To write the MAC addresses to the EEPROM, the following needs to be done once::
81
82 => mac id
83 => mac 0 00:1F:7B:xx:xx:xx
84 => mac 1 00:1F:7B:xx:xx:xx
85 => mac 2 00:1F:7B:xx:xx:xx
86 => mac save
87
88The switch ports do not have their own MAC address - they inherit it from the
89master enet2 port.
90
91Known issues and limitations
92============================
93
94- The 4 SJA1105 switch ports are not functional in U-Boot for now.
95- Since the IFC pins are multiplexed with QSPI on LS1021A, currently there is
96 no way to talk to the CPLD for e.g. running the "qixis_reset" command, or
97 turning the fan on, etc.