Hello.
I have a problem with gpio on I.MX8mq. My Kernel version is 5.4.70.
I experienced making device drivers in I.MX6Q, and they worked well.
Recently I'm working on MCIMX8M-EVK, and made simple driver using GPIO, I omit details because it is really really simple driver using only one GPIO for the test.
I added new device node and pinmux to .dts, but gpio_is_valid() func returns -517 error. of course I get gpio information form .dtb by using of_get_gpio().
I know 517 error means probing GPIO should be deferred, but the only one way to make no error is compile driver to .ko module file. and it works very well in .ko
But I want to make it built-in one.
Is there any ideas that make GPIO works in built-in driver?