I found the definitions related to camera-control-output in the device tree, but I commented them out. The related gpio in /sys/kernel/debug/gpio was still occupied by camera-control-output.
Hi JerryChange,
What does defined by default mean?
Does it mean that they are defined by default in the device tree, or that the driver will occupy them by default?
Also the GPIO I am using is the same as the one you gave.
if that’s correct, you may simply set pw->reset_gpio = pdata->reset_gpio;.
after that, using gpio_set_value(pw->reset_gpio, 1 or 0); to toggle pin high/low for sensor power-on/off function.
you may add gpio_is_valid() to check the pin, toggle the pin only when the pin is available.
or.. please try below code snippets for the bring-up stage.
Yes, now I’ve tried commenting out gpio_request when testing.
But I’d like to understand why this is happening.
I can’t understand why these GPIOs are still occupied when no one in the device tree has declared that they need to be used.
just wondering why the error return -16 in the logs.
per header file, the return error should be.. #define EPROBE_DEFER 517 /* Driver requests probe retry */
anyways, are you able to bring-up your camera following the workarounds in comment #9?
I checked the kernel code and device tree of IMX274, but I don’t see anything special.
Also, is there any explanation for “GPIO is not referenced in the device tree but is still occupied in /sys/kernel/debug/gpio”?
I think if I figure it out, the problem should be solved.
you may ignore that gpio_request failure,
I’ve tested locally with IMX185 on AGX Orin.
I’m still able to fetch the frame although it’s reported unable to request reset_gpio.
for instance,
may I also know which Jetpack release version you’re working with?
could you please try to bring-up single camera first to ensure which GPIO pin you cannot toggle now?
you may ignore that gpio_request failure,
I’ve tested locally with IMX185 on AGX Orin.
I’m still able to fetch the frame although it’s reported unable to request reset_gpio.
for instance,
I think I understand what you mean, but this doesn’t seem to be a “standard” process.
Can’t find out the specific reason now?
may I also know which Jetpack release version you’re working with?
could you please try to bring-up single camera first to ensure which GPIO pin you cannot toggle now?
As I mentioned above, I’m using JetPack6.2, L4T36.4.3. And I did add only a single camera to the device tree.