# GPIO questions

**URL:** <https://forums.developer.nvidia.com/t/gpio-questions/262436>\
**Category:** Jetson Orin NX\
**Tags:** gpio\
**Created:** [August 8, 2023, 1:33pm UTC](https://forums.developer.nvidia.com/t/gpio-questions/262436 "2023-08-08T13:33:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![botond.kardos](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@botond.kardos](https://forums.developer.nvidia.com/u/botond.kardos)\
**Post date:** [August 8, 2023, 1:33pm UTC](https://forums.developer.nvidia.com/t/gpio-questions/262436/1 "2023-08-08T13:33:40Z")

</div>

Hi,  
we have a custom design with Jetson Orin NX SOM. I’d like to use GPIO06, pin #130 of SOM. According to the pinmux table it is configured as PCC.03, which is line15 of gpiochip1 . When I want to access it with “gpioget 1 15” I get:  
“Device or resource busy”.  
In /sys/kernel/debug/gpio I can see this:  
“gpio-331 (PCC.03 |(null) ) out hi”

How can I find out what’s using GPIO06?

And I’d like to ask another question: how can I use CAM1\_MCLK as GPIO? According to the Pin Description Spreadsheet function #2 for this pin is GPIO.

Thanks for any help!

---

<div class="post-metadata">

**Author:** ![KevinFFF](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kevinfff/32/15508_2.png) [@KevinFFF](https://forums.developer.nvidia.com/u/KevinFFF)\
**Post date:** [August 9, 2023, 6:01am UTC](https://forums.developer.nvidia.com/t/gpio-questions/262436/3 "2023-08-09T06:01:54Z")

</div>

> [@botond.kardos](#):
>
> How can I find out what’s using GPIO06?

It seems `display@13800000` is using this pin as reset gpio.

```auto
nvidia,panel-rst-gpio = <&tegra_aon_gpio TEGRA234_AON_GPIO(CC, 3) GPIO_ACTIVE_HIGH>; // CAM_INT4

```

> [@botond.kardos](#):
>
> And I’d like to ask another question: how can I use CAM1\_MCLK as GPIO? According to the Pin Description Spreadsheet function #2 for this pin is GPIO.

You could just configure it as GPIO through pinmux spreadsheet to set it to `GPIO3_PP.01`.

---

<div class="post-metadata">

**Author:** ![botond.kardos](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@botond.kardos](https://forums.developer.nvidia.com/u/botond.kardos)\
**Post date:** [August 10, 2023, 8:41am UTC](https://forums.developer.nvidia.com/t/gpio-questions/262436/4 "2023-08-10T08:41:18Z")

</div>

Thank you very much!  
Actually it wasn’t display@13800000 which was using GPIO06 but you gave me a good hint what to search for in the device-tree: TEGRA234\_AON\_GPIO(CC, 3) macro. It turned out PCC.03 was used by cam\_i2cmux, which was used by imx219 and imx477 cameras. So I just removed the #include line from tegra234-p3509-a02.dtsi and GPIO06 became free to use.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [August 30, 2023, 1:11am UTC](https://forums.developer.nvidia.com/t/gpio-questions/262436/6 "2023-08-30T01:11:24Z")

</div>

Closed on August 30, 2023, 1:11am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
