2020-10-05 04:49 PM
In our custom board we are using I2C1 to control and configure STPMIC1. I'd like to use I2C1 in TF-A so PMIC can be configured to power DDR during boot. I2C1 is not supported by default in TF-A, but looks like there is a way to do it as described in
https://wiki.st.com/stm32mpu/wiki/PMIC_hardware_components#TF-A
I followed the procedure described in the above link, but still when I include the reference to &i2c1 in my stm32mp153c-<project>.dts it throws the following build error
| Building stm32mp1
| Error: fdts/stm32mp153c-<project name>.dts:355.1-6 Label or path i2c1 not found
| FATAL ERROR: Syntax error parsing input tree
Am I missing something?
Thanks,
Nikhil
Solved! Go to Solution.
2020-10-09 06:01 AM
Hi @TWest.2 , @NBhat.1 ,
Since the problem was too complex to be addressed trough community I manage to get you in direct touch with local ST people @Greg DAVIS .
I'm confident that this will help to get you out of the situation shortly.
No more need to udpate this post along your investigation.
Once fixed, we will share here solution for benefit of all the community
BR,
Olivier
2020-10-15 02:43 AM
Hi @TWest.2 , @NBhat.1 ,
Thanks to local support you finally succeed to boot.
As summarize for community :
>> ERROR: BL2: Failed to load image (-80)
Was due to missing &nvmem_layout in your board device, giving pkh_otp address to be used by TF-A.
Even if not really a bug, it has been decided to prevent this issue in next TF-A release. ( delivered in next V2.1 ecosystem release )
Note that this is not answering initial post.
Do you still target to use I2C1 instead of I2C4 ?
Olivier
2020-10-15 07:59 AM
HI @Community member ,
We decided to use I2C4 to control PMIC.
Thanks,
Nikhil