STM32MP157C-DK2 LCD SPI works with V4.1.0 DevPackage but not with V5.0.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-26 2:42 AM
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?
- Labels:
-
STM32MP15 Lines
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-26 4:58 AM
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
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-26 6:17 AM
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.
- Uploaded new SDCard with STMCubeProgrammer with Distribution Package DV5.0.
- kernel rebuild with module ili9486 + uploaded on SDCard
- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-26 6:18 AM
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
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-26 6:24 AM
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
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-26 6:33 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-26 6:38 AM
In step 3, I've just copy/paste changes as your advice. Sorry for missing this precision.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-10-06 2:59 AM
Hi @Olivier GALLIEN ,
I went further in the subject and found there is an error with mapping of PRIME buffer.
The LCD shows OpenST linux picture the first time I upload new kernel compilation, just before doing "sbin/depmod -a sync reboot". But after the reboot I have the error "Failed to vmap PRIME buffer" and nothing on LCD display. The error comes from ili9486.c driver were there are some little changes from DV4.1 to DV5.0. Can I do something in DTS or somewhere for PRIME buffer mapping?
