# How to use Orin nano GPIO?

**URL:** <https://forums.developer.nvidia.com/t/how-to-use-orin-nano-gpio/304579>\
**Category:** Jetson Orin Nano\
**Tags:** gpio\
**Created:** [August 26, 2024, 3:47am UTC](https://forums.developer.nvidia.com/t/how-to-use-orin-nano-gpio/304579 "2024-08-26T03:47:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![56101855](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@56101855](https://forums.developer.nvidia.com/u/56101855)\
**Post date:** [August 26, 2024, 3:47am UTC](https://forums.developer.nvidia.com/t/how-to-use-orin-nano-gpio/304579/1 "2024-08-26T03:47:22Z")

</div>

IDE：jeston 36.0  
JetPack6.0  
core board：orin Nano4GB  
board：Jetson Orin Nano Developer Kit  
kernel source: [Jetson Linux 36.3 | NVIDIA Developer](https://developer.nvidia.com/embedded/jetson-linux-r363)  
rootfs source: Basic Flavor Root File System [Root File System — NVIDIA Jetson Linux Developer Guide 1 documentation](https://docs.nvidia.com/jetson/archives/r36.3/DeveloperGuide/SD/RootFileSystem.html)

pinmux download source: [Jetson Download Center | NVIDIA Developer](https://developer.nvidia.com/embedded/downloads#?tx=$product,jetson_orin_nano)  
Jetson Orin NX Series and Jetson Orin Nano Series Pinmux  
See pinmux CAM0 PWDN corresponding to GPIO3 PH.06.

 ![1724643576055](https://global.discourse-cdn.com/nvidia/original/4X/b/9/2/b92d5a16d7f54e599159c2362a56697882d8e95a.png)

Use gpioinfo to see that CAM0 PWDN corresponds to PH\_0.3

```auto
ys@tegra-ubuntu:~$ sudo gpioinfo
[sudo] password for ys:
gpiochip0 - 164 lines:
       line 23: "PE.02" unused input active-high
        line 24: "PE.03" unused input active-high
        line 25: "PE.04" unused input active-high
        line 26: "PE.05" unused input active-high
        line 27: "PE.06" unused input active-high
        line 28: "PE.07" unused input active-high
        line 29: "PF.00" unused input active-high
        line 30: "PF.01" unused input active-high
        line 31: "PF.02" unused input active-high
        line 32: "PF.03" unused input active-high
        line 33: "PF.04" unused input active-high
        line 34: "PF.05" unused input active-high
        line 35: "PG.00" "Force Recovery" input active-low [used]
        line 36: "PG.01" unused input active-high
        line 37: "PG.02" "Suspend" input active-low [used]
        line 38: "PG.03" unused input active-high
        line 39: "PG.04" unused input active-high
        line 40: "PG.05" unused input active-high
        line 41: "PG.06" unused input active-high
        line 42: "PG.07" unused input active-high
        line 43: "PH.00" unused input active-high
        line 44: "PH.01" unused input active-high
        line 45: "PH.02" unused input active-high
        line 46: "PH.03" "camera-control-output-low" output active-high [used]
        line 47: "PH.04" unused input active-high
        line 48: "PH.05" unused input active-high
        line 49: "PH.06" unused output active-high
        line 50: "PH.07" unused input active-high
        line 51: "PI.00" unused input active-high
        line 52: "PI.01" unused input active-high
        line 53: "PI.02" unused input active-high
        line 54: "PI.03" unused input active-high

```

Why is that? What’s wrong?  
I want to control the output high and low level of this pin. How should I operate?

---

<div class="post-metadata">

**Author:** ![ManuelLeiva](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/manuelleiva/32/273049_2.png) [@ManuelLeiva](https://forums.developer.nvidia.com/u/ManuelLeiva)\
**Post date:** [August 26, 2024, 2:49pm UTC](https://forums.developer.nvidia.com/t/how-to-use-orin-nano-gpio/304579/3 "2024-08-26T14:49:13Z")

</div>

> [@56101855](#):
>
> `"camera-control-output-low"`

Hello,

The output `line 46: "PH.03" "camera-control-output-low" output active-high [used]` means this GPIO is being used by a driver, If you try to use this GPIO the kernel will say is busy.

This GPIO is used to set an initial value to power on a camera For example, In some part of your device tree you have a node like this:

```auto
#define CAM0_PWDN	TEGRA234_MAIN_GPIO(H, 6)

			gpio@2200000 {
				camera-control-output-low {
					gpio-hog;
					output-low;
					gpios = <CAM0_PWDN 0>;
					label ="cam0-pwdn";
				};

```

If this is not required for you, you can remove the node and control the GPIO from a user space app.

Manuel Leiva  
Embedded SW Engineer at RidgeRun  
Contact us: [support@ridgerun.com](mailto:support@ridgerun.com)  
Developers wiki: [https://developer.ridgerun.com](https://developer.ridgerun.com)  
Website: [www.ridgerun.com](http://www.ridgerun.com)

---

<div class="post-metadata">

**Author:** ![56101855](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@56101855](https://forums.developer.nvidia.com/u/56101855)\
**Post date:** [August 27, 2024, 12:30am UTC](https://forums.developer.nvidia.com/t/how-to-use-orin-nano-gpio/304579/4 "2024-08-27T00:30:03Z")

</div>

thank you

---

<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:** [September 10, 2024, 12:30am UTC](https://forums.developer.nvidia.com/t/how-to-use-orin-nano-gpio/304579/5 "2024-09-10T00:30:47Z")

</div>

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