Skip to content

PHYTEC SoM detection for phyCORE-i.MX8MP

Teresa Remmet u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 9 repliesIn review
  2. v16 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- fix wrong RAM Timing values as pointed out by Yannic
- removed superfluous goto
- removed blank line at EOF
- fix string conversion to integer
- fix typo s/revsions/revisions

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6board: phytec: Add common PHYTEC SoM detectionboard/phytec/common/Kconfig board/phytec/common/Makefile board/phytec/common/phytec_som_detection.c +1 more+307 -02 replies
2/6board: phytec: common: Add imx8m specific EEPROM detection supportboard/phytec/common/Kconfig board/phytec/common/Makefile board/phytec/common/imx8m_som_detection.c +1 more+231 -01 reply
3/6board: phytec: phycore-imx8mp: Add EEPROM detection initialisationboard/phytec/phycore_imx8mp/Kconfig board/phytec/phycore_imx8mp/spl.c configs/phycore-imx8mp_defconfig+19 -01 reply
4/6board: phytec: phycore_imx8mp: Update 2GB RAM Timingsboard/phytec/phycore_imx8mp/lpddr4_timing.c+135 -1431 reply
5/6board: phytec: common: phytec_som_detection: Add helper for PCB revisionboard/phytec/common/phytec_som_detection.c board/phytec/common/phytec_som_detection.h+20 -01 reply
6/6board: phytec: phycore_imx8mp: Add 4000MTS RAM timings based on PCB revboard/phytec/phycore_imx8mp/spl.c+61 -01 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchYannic MoogFabio Estevam
1/6R-b T-b R-b
2/6R-b T-b
3/6R-b T-b
4/6R-b T-b
5/6R-b T-b
6/6R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/6] PHYTEC SoM detection for phyCORE-i.MX8MP

second version of the series to add support for EEPROM SoM detection used by different PHYTEC SoMs. The EEPROM data consist of 32 bytes containing information like PCB revision, RAM size and other SoM specific configuration.

For SoMs of the i.MX8M family the data is written to two areas of the used i2c EEPROM.

We initally add the detection support for phyCORE-i.MX8MP. Due to layout constraints phyCORE-i.MX8MP SoMs with PCB revision 2 and older can only make use of a lower RAM frequency. This changes with the use of newer PCB revisions. We make use of the factory flashed EEPROM data to detect the PCB revision and select the fitting RAM settings.

Changes in v2:
- fix wrong RAM Timing values as pointed out by Yannic
- removed superfluous goto
- removed blank line at EOF
- fix string conversion to integer
- fix typo s/revsions/revisions

Teresa

Teresa Remmet (6):
board: phytec: Add common PHYTEC SoM detection
board: phytec: common: Add imx8m specific EEPROM detection support
board: phytec: phycore-imx8mp: Add EEPROM detection initialisation
board: phytec: phycore_imx8mp: Update 2GB RAM Timings
board: phytec: common: phytec_som_detection: Add helper for PCB
revision
board: phytec: phycore_imx8mp: Add 4000MTS RAM timings based on PCB
rev

 board/phytec/common/Kconfig                 |  13 +
 board/phytec/common/Makefile                |  11 +
 board/phytec/common/imx8m_som_detection.c   | 168 ++++++++++++
 board/phytec/common/imx8m_som_detection.h   |  54 ++++
 board/phytec/common/phytec_som_detection.c  | 203 ++++++++++++++
 board/phytec/common/phytec_som_detection.h  | 109 ++++++++
 board/phytec/phycore_imx8mp/Kconfig         |   1 +
 board/phytec/phycore_imx8mp/lpddr4_timing.c | 278 ++++++++++----------
 board/phytec/phycore_imx8mp/spl.c           |  78 ++++++
 configs/phycore-imx8mp_defconfig            |   1 +
 10 files changed, 773 insertions(+), 143 deletions(-)
 create mode 100644 board/phytec/common/Kconfig
 create mode 100644 board/phytec/common/Makefile
 create mode 100644 board/phytec/common/imx8m_som_detection.c
 create mode 100644 board/phytec/common/imx8m_som_detection.h
 create mode 100644 board/phytec/common/phytec_som_detection.c
 create mode 100644 board/phytec/common/phytec_som_detection.h
Signature · 1 line
2.34.1