board: phytec: phycore-imx93: Fix EEPROM bus mismatch in SPL
authorPrimoz Fiser <primoz.fiser@norik.com>
Tue, 19 Aug 2025 05:39:41 +0000 (07:39 +0200)
committerFabio Estevam <festevam@gmail.com>
Sat, 23 Aug 2025 11:21:25 +0000 (08:21 -0300)
commita7528da151489d87582d70f2628256f4d59e2740
tree859e08a35f9f296f52cc6ae4af1fc4961530544b
parenta20dbbb0711ef144703848105dd0500b16ba7eae
board: phytec: phycore-imx93: Fix EEPROM bus mismatch in SPL

Fix PHYTEC EEPROM bus mismatch between SPL and U-Boot proper by enabling
CONFIG_SPL_DM_SEQ_ALIAS=y on phyCORE-i.MX93 boards. This way, both the
SPL and U-Boot proper will respect the device-tree aliases for I2C devs
and use the same I2C bus number for phytec_eeprom_data_setup() function
calls. This makes code less confusing and more robust.

Fixes an issue apparent since commit 79f3e77133bd ("Subtree merge tag
'v6.16-dts' of dts repo [1] into dts/upstream") where SPL would spew the
following error:

  phytec_eeprom_read: i2c EEPROM not found: -110.
  phytec_eeprom_data_setup: EEPROM data init failed

While later in U-Boot proper, EEPROM would be successfully read out.
This happens because Linux device-tree for phyBOARD-Segin-i.MX93 since
aforementioned commit enables I2C bus 2 (lpi2c2 is used for audio codec
and RTC) which breaks SPL I2C bus number ordering and I2C EEPROM bus is
shifted by +1. Now, lets prevent this from happening again by utilizing
device-tree aliases also in the SPL.

Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
board/phytec/phycore_imx93/spl.c
configs/imx93-phycore_defconfig