Skip to content

imx8mp levy: add bootselect via GPIO

This MR adds support for the PCAL6416 I2C gpio expander on the D18 / LEVY module to enable bootselect functionality on the B79 and ModularVision carrier boards via SMARC GPIO7.

Current state:

  • the PCAL6416 GPIO expander can be found and accessed by U-Boot I2C commands
  • the PCAL6416's GPIO pins are accessible via U-Boot gpio commands
  • pull-up resistors of the PCAL6416 can be enabled via DT (using existing code from the D18 U-Boot from Arezzo)
  • SMARC GPIO7 can be accessed via named pin "gpio@20_5" and manually reading it shows proper state of the bootselect pin.
  • read SMARC GPIO7 as bootselect in our board-detection functions: tested and working on both B79 and ModularVision
Edited by Marc-Oliver Westerburg

Merge request reports

Loading