I have a problem trying to use a gpio from the camera connector on the Xavier with JetPack 4.2 L4T-R32,
i assign the reset pin in the device tree
reset-gpios = <&tegra_main_gpio TEGRA194_MAIN_GPIO(T, 6) GPIO_ACTIVE_HIGH>;
(this is the pin 446), in the device driver i set this pin value to LOW or HIGH and i can see the value assigned correctly with sudo cat /sys/kernel/debug/gpio
gpio-446 ( |cam_reset_gpio ) out hi
but when i measured the pin state using a voltmeter i got 0v, i tested with GPIO_ACTIVE_LOW but i still got 0v.
Using sudo su, i checked /sys/class/gpio/gpio446/, this path was created by the driver using the gpio library (the pin state was in output mode with value 1).
This is something strange, if i write again these values
echo out > direction echo 1 > value
the pin does change from 0v to ~1.5v.
I cannot understand what is wrong, i did the same process in a TX2 and the pin does change (pin number 457 in TX2) according to the driver gpio_set_value.
I will appreciate any help to understand what is wrong on the Xavier driver or the gpio configuration.