GPIO 04 remove led control

Hi all,
I have a Orin NX with custom carrier board running 35.2.1, I am trying to use GPIO04 (PCC.01) as input. I have changed the pinmux accordingly and I am able to use it as an input and read the pin state with cat /sys/class/gpio/PCC.01/value and it prints the pin state correctly.

However when I list the pins (sudo cat /sys/kernel/debug/gpio) it is reported as gpio-329 (PCC.01 |sysfs ) in hi

And thus when I want to interact with it with gpiomon for example, its reported as busy. I want to use the pin with an interrupt but its still somewhere used by the kernel. Ive read that GPIO 04 is by default the power control led?
But how do I go about removing this functionality?


Hi r.vries,

You could just disable and remove them from dtb in use.

How can I find this pin or driver in the dtb? Ive looked through it but I dont see any reference of it?

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.

Please share /boot/dtb/kernel_XXX.dtb from your board for further check.