It worked > Re: SPI2 definition is not found for STM32L476 device tree. How to add?
(I have sent private reply, but for other people, I send this reply again).
Thank you very much.
I added the description for &spi2 in an overlay file.
I appreciate it.