In the JP6.1 version, how to forcibly modify the high/low state of PH.06 GPIO?

Because PH.06 is now occupied by the system by default
The gpioset operation cannot be used.

However, at present, it is urgent to verify and cannot modify the driver.
Is there any way to directly modify the internal GPIO register to configure the high and low levels of PH.06?

Hi JiaZW,

Are you using the devkit or custom board for AGX Orin?

PH.06 is used by camera currently.
If you want to use it, please remove its usage from device tree.

$ sudo cat /sys/kernel/debug/gpio|grep PH.06
 gpio-397 (PH.06               |camera-control-outpu) out lo

To control GPIO through DRA, please refer to the following thread for the similar use case.
Calculating/Getting register adresses of gpio pins - #10 by KevinFFF
MDIO and MDC as GPIO in Jetson orion AGX dev Kit - #17 by KevinFFF

Question1: how to remove PH.06 from device tree, I removed the relevant content in tegra234-p3737-camera-modules.dtsi, and after re-updating the dtb, I found that it was still in use

Question2: What are the exact values of the PH.06 GPIO’s OUTPUT_CONTROL/ENABLE_CONFIG/VALUE register?

I only found the register address 0x02434008

Please confirm that you don’t add the camera overlay in your case.
You can also share the full device tree for further check.
(i.e. /boot/dtb/kernel_XXX.dtb)

Actually, you should check the TRM document for those information.
I’ll share the register for PH.06 as following:
GPIO_H_OUTPUT_CONTROL_06_0 => 0x022142cc
GPIO_H_ENABLE_CONFIG_06_0 => 0x022142c0
GPIO_H_OUTPUT_VALUE_06_0 => 0x022142d0

Please note that you should remove the PH.06 used by other driver first.