cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Switching Between Two Different LCD Drivers and Device Tree Configurations

adnan_pasha
Senior

Hi,

We are using the STM32MP157DAC SoM with the Distribution Package.

Our hardware supports two different LCD displays, either of which can be connected to the board via the MIPI interface.

We would like to detect which LCD is connected using the input level of GPIO pin PA13. Based on this pin's state, the appropriate display driver and device tree configuration should be loaded dynamically, instead of manually modifying and selecting the overlay each time.

Example:

  • If PA13 is high, then LCD1 is connected — the system should load LCD1's device tree configuration and enable its driver.

  • If PA13 is low, then LCD2 is connected — the system should instead load the configuration and driver for LCD2.

What are the possible ways to achieve this kind of dynamic device tree or driver selection based on a GPIO input at boot time?

Best Regards,
Adnan

0 REPLIES 0