Why GPIO3_PI.00 is busy?

Hi all,

The GPIO3_PI.00 relative device tree node is as below,

nfc_en_pi0 {
                nvidia,pins = "nfc_en_pi0";
                nvidia,function = "rsvd0";
                nvidia,pull = <0x0>;
                nvidia,tristate = <0x0>;
                nvidia,enable-input = <0x0>;
            };
;

Why I cant use cant “echo 64 > /sys/class/gpio/export”?

root@localhost:/home/sercomm/tools# echo 64 > /sys/class/gpio/export
bash: echo: write error: Device or resource busy

FYI,

root@localhost:/home/sercomm# cat /etc/nv_tegra_release
# R32 (release), REVISION: 3.1, GCID: 18186506, BOARD: t210ref, EABI: aarch64, DATE: Tue Dec 10 06:58:34 UTC 2019
root@localhost:/home/sercomm#  cat /sys/kernel/debug/tegra_gpio
Name:Bank:Port CNF OE OUT IN INT_STA INT_ENB INT_LVL
 A: 0:0 64 40 40 24 00 00 000000
 B: 0:1 f0 00 00 00 00 00 000000
 C: 0:2 10 00 00 10 00 00 000000
 D: 0:3 00 00 00 00 00 00 000000
 E: 1:0 40 00 00 00 00 00 000000
 F: 1:1 00 00 00 00 00 00 000000
 G: 1:2 0c 00 00 00 00 00 000000
 H: 1:3 fd 99 00 60 00 00 000000
 I: 2:0 07 03 03 04 00 00 000000
 J: 2:1 f0 00 00 00 00 00 000000
 K: 2:2 00 00 00 00 00 00 000000
 L: 2:3 00 00 00 00 00 00 000000
 M: 3:0 00 00 00 00 00 00 000000
 N: 3:1 00 00 00 00 00 00 000000
 O: 3:2 00 00 00 00 00 00 000000
 P: 3:3 00 00 00 00 00 00 000000
 Q: 4:0 00 00 00 00 00 00 000000
 R: 4:1 00 00 00 00 00 00 000000
 S: 4:2 a0 a0 00 00 00 00 000000
 T: 4:3 01 01 00 00 00 00 000000
 U: 5:0 00 00 00 00 00 00 000000
 V: 5:1 03 01 00 02 00 00 000000
 W: 5:2 00 00 00 00 00 00 000000
 X: 5:3 78 08 08 70 00 60 606000
 Y: 6:0 06 00 00 02 00 00 000000
 Z: 6:1 0f 09 05 06 00 04 000400
AA: 6:2 00 00 00 00 00 00 000000
BB: 6:3 01 01 01 00 00 00 000000
CC: 7:0 92 80 80 00 00 12 121200
DD: 7:1 01 00 00 00 00 00 000000
EE: 7:2 00 00 00 00 00 00 000000
FF: 7:3 00 00 00 00 00 00 000000
/home/sercomm# sudo cat /sys/kernel/debug/pinctrl/700008d4.pinmux/pinmux-pins
Pinmux settings per pin
Format: pin (name): mux_owner gpio_owner hog?
pin 0 (PEX_L0_RST_N PA0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 1 (PEX_L0_CLKREQ_N PA1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 2 (PEX_WAKE_N PA2): (MUX UNCLAIMED) tegra-gpio:2
pin 3 (PEX_L1_RST_N PA3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 4 (PEX_L1_CLKREQ_N PA4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 5 (SATA_LED_ACTIVE PA5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 6 (PA6): (MUX UNCLAIMED) tegra-gpio:6
pin 8 (DAP1_FS PB0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 9 (DAP1_DIN PB1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 10 (DAP1_DOUT PB2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 11 (DAP1_SCLK PB3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 12 (SPI2_MOSI PB4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 13 (SPI2_MISO PB5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 14 (SPI2_SCK PB6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 15 (SPI2_CS0 PB7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 16 (SPI1_MOSI PC0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 17 (SPI1_MISO PC1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 18 (SPI1_SCK PC2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 19 (SPI1_CS0 PC3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 20 (SPI1_CS1 PC4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 21 (SPI4_SCK PC5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 22 (SPI4_CS0 PC6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 23 (SPI4_MOSI PC7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 24 (SPI4_MISO PD0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 25 (UART3_TX PD1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 26 (UART3_RX PD2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 27 (UART3_RTS PD3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 28 (UART3_CTS PD4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 32 (DMIC1_CLK PE0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 33 (DMIC1_DAT PE1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 34 (DMIC2_CLK PE2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 35 (DMIC2_DAT PE3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 36 (DMIC3_CLK PE4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 37 (DMIC3_DAT PE5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 38 (PE6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 39 (PE7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 40 (GEN3_I2C_SCL PF0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 41 (GEN3_I2C_SDA PF1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 48 (UART2_TX PG0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 49 (UART2_RX PG1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 50 (UART2_RTS PG2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 51 (UART2_CTS PG3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 56 (WIFI_EN PH0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 57 (WIFI_RST PH1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 58 (WIFI_WAKE_AP PH2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 59 (AP_WAKE_BT PH3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 60 (BT_RST PH4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 61 (BT_WAKE_AP PH5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 62 (PH6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 63 (AP_WAKE_NFC PH7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 64 (NFC_EN PI0): (MUX UNCLAIMED) tegra-gpio:64
pin 65 (NFC_INT PI1): (MUX UNCLAIMED) tegra-gpio:65
pin 66 (GPS_EN PI2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 67 (GPS_RST PI3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 68 (UART4_TX PI4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 69 (UART4_RX PI5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 70 (UART4_RTS PI6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 71 (UART4_CTS PI7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 72 (GEN1_I2C_SDA PJ0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 73 (GEN1_I2C_SCL PJ1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 74 (GEN2_I2C_SCL PJ2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 75 (GEN2_I2C_SDA PJ3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 76 (DAP4_FS PJ4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 77 (DAP4_DIN PJ5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 78 (DAP4_DOUT PJ6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 79 (DAP4_SCLK PJ7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 80 (PK0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 81 (PK1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 82 (PK2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 83 (PK3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 84 (PK4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 85 (PK5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 86 (PK6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 87 (PK7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 88 (PL0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 89 (PL1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 96 (SDMMC1_CLK PM0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 97 (SDMMC1_CMD PM1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 98 (SDMMC1_DAT3 PM2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 99 (SDMMC1_DAT2 PM3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 100 (SDMMC1_DAT1 PM4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 101 (SDMMC1_DAT0 PM5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 259 (SDMMC2_CLK): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 260 (SDMMC2_CLKB): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 261 (SDMMC2_CMD): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 262 (SDMMC2_DAT0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 263 (SDMMC2_DAT1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 264 (SDMMC2_DAT2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 265 (SDMMC2_DAT3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 266 (SDMMC2_DAT4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 267 (SDMMC2_DAT5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 268 (SDMMC2_DAT6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 269 (SDMMC2_DAT7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 270 (SDMMC2_DQS): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 271 (SDMMC2_DQSB): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 120 (SDMMC3_CLK PP0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 121 (SDMMC3_CMD PP1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 122 (SDMMC3_DAT3 PP2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 123 (SDMMC3_DAT2 PP3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 124 (SDMMC3_DAT1 PP4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 125 (SDMMC3_DAT0 PP5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 144 (CAM1_MCLK PS0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 145 (CAM2_MCLK PS1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 146 (CAM_I2C_SCL PS2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 147 (CAM_I2C_SDA PS3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 148 (CAM_RST PS4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 149 (CAM_AF_EN PS5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 150 (CAM_FLASH_EN PS6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 151 (CAM1_PWDN PS7): (MUX UNCLAIMED) tegra-gpio:151
pin 152 (CAM2_PWDN PT0): (MUX UNCLAIMED) tegra-gpio:152
pin 153 (CAM1_STROBE PT1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 160 (UART1_TX PU0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 161 (UART1_RX PU1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 162 (UART1_RTS PU2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 163 (UART1_CTS PU3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 168 (LCD_BL_PWM PV0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 169 (LCD_BL_EN PV1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 170 (LCD_RST PV2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 171 (LCD_GPIO1 PV3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 172 (LCD_GPIO2 PV4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 173 (AP_READY PV5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 174 (TOUCH_RST PV6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 175 (TOUCH_CLK PV7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 184 (MODEM_WAKE_AP PX0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 185 (TOUCH_INT PX1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 186 (MOTION_INT PX2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 187 (ALS_PROX_INT PX3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 188 (TEMP_ALERT PX4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 189 (BUTTON_POWER_ON PX5): (MUX UNCLAIMED) tegra-gpio:189
pin 190 (BUTTON_VOL_UP PX6): (MUX UNCLAIMED) tegra-gpio:190
pin 191 (BUTTON_VOL_DOWN PX7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 192 (BUTTON_SLIDE_SW PY0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 193 (BUTTON_HOME PY1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 194 (LCD_TE PY2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 195 (PWR_I2C_SCL PY3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 196 (PWR_I2C_SDA PY4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 197 (CLK_32K_OUT PY5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 200 (PZ0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 201 (PZ1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 202 (PZ2): (MUX UNCLAIMED) tegra-gpio:202
pin 203 (PZ3): (MUX UNCLAIMED) tegra-gpio:203
pin 204 (PZ4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 205 (PZ5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 208 (DAP2_FS PAA0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 209 (DAP2_SCLK PAA1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 210 (DAP2_DIN PAA2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 211 (DAP2_DOUT PAA3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 216 (AUD_MCLK PBB0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 217 (DVFS_PWM PBB1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 218 (DVFS_CLK PBB2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 219 (GPIO_X1_AUD PBB3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 220 (GPIO_X3_AUD PBB4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 224 (HDMI_CEC PCC0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 225 (HDMI_INT_DP_HPD PCC1): (MUX UNCLAIMED) tegra-gpio:225
pin 226 (SPDIF_OUT PCC2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 227 (SPDIF_IN PCC3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 228 (USB_VBUS_EN0 PCC4): (MUX UNCLAIMED) tegra-gpio:228
pin 229 (USB_VBUS_EN1 PCC5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 230 (DP_HPD0 PCC6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 231 (PCC7): (MUX UNCLAIMED) tegra-gpio:231
pin 232 (SPI2_CS1 PDD0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 240 (QSPI_SCK PEE0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 241 (QSPI_CS_N PEE1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 242 (QSPI_IO0 PEE2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 243 (QSPI_IO1 PEE3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 244 (QSPI_IO2 PEE4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 245 (QSPI_IO3 PEE5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 246 (CORE_PWR_REQ): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 247 (CPU_PWR_REQ): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 248 (PWR_INT_N): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 249 (CLK_32K_IN): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 250 (JTAG_RTCK): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 251 (BATT_BCL): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 252 (CLK_REQ): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 253 (SHUTDOWN): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 257 (PAD_DSI_AB_CONTROL): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 258 (PAD_DSI_CD_CONTROL): (MUX UNCLAIMED) (GPIO UNCLAIMED)

Thanks

hello garretzou,

you might also refer to Jetson Nano Pinmux, the pin number of GPIO3_PV.00 is 206.
thanks

Hi JerryChang,

Sorry, It’s GPIO3_PI.00, and in sysfs port its mapping number is 64. Please refer to
Why the number pin12 of J41 on Nano devkit is 79.

Please help us figure out why the GPIO port 64 is busy?

Thanks