Skip to main content
Graduate
July 26, 2023
Question

STM32MP157C-DK2 LCD SPI works with V4.1.0 DevPackage but not with V5.0.0

  • July 26, 2023
  • 2 replies
  • 7060 views

Hello, I've just migrated from V4.1.0 dev package to V5.0.0 and the LCD SPI ilitek 9486 does not work anymore.

Configuration: STM32MP157A-DK1 with 3.5 LCD SPI touchscreen. Starter Package loaded with stm32mp157c-dk2 config. Linux kernel recompiled with ili9486 module and uploaded. Device tree file "stm32mp157c-dk2.dts" modified with spi5 added and display and uploaded.

Please, how can I do to recover the LCD SPI that worked on previsous dev package?

 

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    July 26, 2023

    Hi @remyguerry ,

     

    Thanks to raise this point to us. 

     

    Can you please elaborate a bit how you migrate from DV4.1 to DV5.0 ? 

    Did you start from scratch and use MX to generate updated DT ? 

    Did you update on board BSP + Kernel ? 

     

    Any boot log from working DV4.1 and not working DV5.0 you may share ? 

     

    Thanks

     

    Olivier 

    Graduate
    July 26, 2023

    Hi Olivier,

    Thank you for quick response. 

    It is not really a migration, I've followed steps from scratch in command line with new working directory DV5.0.

    1. Uploaded new SDCard with STMCubeProgrammer with Distribution Package DV5.0.
    2. kernel rebuild with module ili9486 + uploaded on SDCard
    3. copy/paste old DV4.1 stm32mp157c-dk2.dts in new working directory DV5.0 + make dtbs + scp to SDCard

    Please find bootlogs to see differences.

    Thanks,

    Remy

    Technical Moderator
    July 26, 2023

    Hi @remyguerry ,

     

    If your step 3 is to reuse 4.1 dts as it in DV5 I'm afraid it could be root cause of many issues.

    Some Policies and device tree architecture may have slightly change between both version. 

    It could be worth to rather copy/paste ONLY your change in dts 4.1 into dts 5.0 ... 

     

    Olivier 

     

    Technical Moderator
    July 26, 2023

    Checking your DTS it can be noticed : 

    - no status = "okay" in spi5 node

    - double dsi_in declaration in both spi5 and dsi node

    both may explained issue. 

    Olivier 

     

    Graduate
    July 26, 2023

    I think status = "okay" there is. Do I have to put under display:display@0 node also?

    dsi node is commented, I will declare another name to be sure.

    Thanks.

    Remy