STPM3x Metering chip driver not handling GPIO pins properly
x linux-5.15-stm32mp-r2 for our puposes. I have also attached the pps-gpio source code in case it is useful.
x linux-5.15-stm32mp-r2 for our puposes. I have also attached the pps-gpio source code in case it is useful.
Hello
Please let me summarize your case just for me to be sure to fully understand your issue (thank you for the complete summary of your case) :
You configure SPI1 as SPI master of 5 different slaves (as I see in your device tree). You define yourself 5 GPIOs for CS pins (not use the native HW NSS one which would be <0> ) to drive the CS lines of the different slave you want to talk to.
At first boot, everything looks to work well, you can receive information from your measurement SPI slave module on request, and you have also a module that send you a 0 pulse regularly on a lane driven by your pps driver. (By the way, can you put me the source code of this one please, I think it did not pass in attachment of your first message).
After processing a soft reboot (can you put me the command you use ?), the system restart, driver reprobes, but the PPS driver looks to not work correctly, as you are sure that the pulse still come into MP15, but it is not updated from a SW point of view. When you disable the drive of another GPIO of the same bank (the one used as CS for another slave), the problem seems to not appear, so you think there is a correlation between both.
Sorry it is a little bit long but I want to be sure to not miss anything.
Now concerning my questions :
Kind regards,
Erwan.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.