[PATCH 0/2] ke-am62x-sk_evm: add ospi support

Dhruva Gole d-gole at ti.com
Tue Sep 27 07:29:16 CEST 2022


There's a S28HS512T Flash (by Cypress) on the AM625 SK EVM.
- Add necessary DT nodes to enable OSPI interface with this flash.
- Enable all configs that enable the OSPI related drivers and commands
  like SF probe.

Tested on my AM62 SK EVM, attaching logs below.

Logs:
------------------------------------------------------------------------
U-Boot SPL 2022.10-rc5-00012-g435596d57f8b-dirty (Sep 26 2022 - 16:27:48
+0530)
SYSFW ABI: 3.1 (firmware rev 0x0008 '8.4.6--v08.04.06 (Jolly Jellyfi')
Trying to boot from MMC2
Starting ATF on ARM64 core...

NOTICE:  BL31: v2.7(release):v2.7.0-dirty
NOTICE:  BL31: Built : 14:30:02, Aug 27 2022

U-Boot SPL 2022.10-rc5-00012-g435596d57f8b-dirty (Sep 26 2022 - 17:51:27
+0530)
SYSFW ABI: 3.1 (firmware rev 0x0008 '8.4.6--v08.04.06 (Jolly Jellyfi')
Trying to boot from MMC2


U-Boot 2022.10-rc5-00012-g435596d57f8b-dirty (Sep 26 2022 - 17:51:27
+0530)

SoC:   AM62X SR1.0 GP
Model: Texas Instruments AM625 SK
DRAM:  2 GiB
Core:  37 devices, 18 uclasses, devicetree: separate
MMC:   mmc at fa10000: 2, mmc at fa00000: 1, mmc at fa20000: 3
Loading Environment from nowhere... OK
In:    serial at 2800000
Out:   serial at 2800000
Err:   serial at 2800000
Net:   No ethernet found.
Hit any key to stop autoboot:  0
=> sf probe
SF: Detected s28hs512t with page size 256 Bytes, erase size 256 KiB,
total 64 MiB
=> fatload mmc 1 $loadaddr tiboot3.bin
285482 bytes read in 17 ms (16 MiB/s)
=> sf update $loadaddr 0x0 $filesize
device 0 offset 0x0, size 0x45b2a
285482 bytes written, 0 bytes skipped in 2.623s, speed 111322 B/s
=> sf read 0x90000000  0x0 $filesize
device 0 offset 0x0, size 0x45b2a
SF: 285482 bytes @ 0x0 Read: OK
=> md $loadaddr
82000000: 94048230 fd038230 010203a0 64140202  0...0..........d
82000010: 3f829a45 85bb6dd8 232b5568 f8f4176f  E..?.m..hU+#o...
82000020: 309fb7ff 2a09060d f7864886 0d01010d  ...0...*.H......
82000030: 81300005 300b319d 55030609 02130604  ..0..1.0...U....
82000040: 0b315355 03060930 0c080455 31585402  US1.0...U....TX1
82000050: 060d300f 07045503 6144060c 73616c6c  .0...U....Dallas
82000060: 25302731 04550306 541e0c0a 73617865  1'0%..U....Texas
82000070: 736e4920 6d757274 73746e65 636e4920   Instruments Inc
82000080: 6f70726f 65746172 30133164 55030611  orporated1.0...U
82000090: 0a0c0b04 636f7250 6f737365 13317372  ....Processors1.
820000a0: 03061130 0c030455 2049540a 70707553  0...U....TI Supp
820000b0: 3174726f 061b301d 48862a09 010df786  ort1.0...*.H....
820000c0: 0e160109 70707573 4074726f 632e6974  ....support at ti.c
820000d0: 1e306d6f 32320d17 36323930 38353031  om0...2209261058
820000e0: 175a3331 3132320d 31363230 31383530  13Z..22102610581
820000f0: 81305a33 300b319d 55030609 02130604  3Z0..1.0...U....
=> md 0x90000000
90000000: 94048230 fd038230 010203a0 64140202  0...0..........d
90000010: 3f829a45 85bb6dd8 232b5568 f8f4176f  E..?.m..hU+#o...
90000020: 309fb7ff 2a09060d f7864886 0d01010d  ...0...*.H......
90000030: 81300005 300b319d 55030609 02130604  ..0..1.0...U....
90000040: 0b315355 03060930 0c080455 31585402  US1.0...U....TX1
90000050: 060d300f 07045503 6144060c 73616c6c  .0...U....Dallas
90000060: 25302731 04550306 541e0c0a 73617865  1'0%..U....Texas
90000070: 736e4920 6d757274 73746e65 636e4920   Instruments Inc
90000080: 6f70726f 65746172 30133164 55030611  orporated1.0...U
90000090: 0a0c0b04 636f7250 6f737365 13317372  ....Processors1.
900000a0: 03061130 0c030455 2049540a 70707553  0...U....TI Supp
900000b0: 3174726f 061b301d 48862a09 010df786  ort1.0...*.H....
900000c0: 0e160109 70707573 4074726f 632e6974  ....support at ti.c
900000d0: 1e306d6f 32320d17 36323930 38353031  om0...2209261058
900000e0: 175a3331 3132320d 31363230 31383530  13Z..22102610581
900000f0: 81305a33 300b319d 55030609 02130604  3Z0..1.0...U....
=> cmp.b $loadaddr 0x90000000 $filesize
Total of 285482 byte(s) were the same
------------------------------------------------------------------------

Thus tested read, write and probe flash from u-boot prompt

Dhruva Gole (2):
  arm: dts: k3-am625-sk: Add OSPI support
  configs: am62x_evm_a53: Enable OSPI Flash support

 arch/arm/dts/k3-am625-sk-u-boot.dtsi | 24 +++++++++
 arch/arm/dts/k3-am625-sk.dts         | 77 ++++++++++++++++++++++++++++
 configs/am62x_evm_a53_defconfig      | 13 +++++
 3 files changed, 114 insertions(+)

-- 
2.25.1



More information about the U-Boot mailing list