What is the gpio Number is G8 and F7 pin at TX2?

What is the gpio Number is G8 and F7 pin at TX2?

G8=GPIO3_PR.00=178=136
F7=GPIO3_PN.02=13
8+2=114+2=116

is right?

GPIO0_CAM0_PWR#	G8	QSPI_SCK	GPIO3_PR.00

GPIO1_CAM_PWR#	F7	GPIO_CAM3	GPIO3_PN.02

Assuming your Main Tegra GPIO chip is getting mapped to the base GPIO # 320:
GPIO3_PR.00 = 456
GPIO3_PN.02 = 426

You can check this on your console log as the kernel boots. Or you can go into your /sys/class/gpio folder and look at the gpiochipsXXX that are enumerated.

You should see this for the Tegra Main GPIOs:
$ cat /sys/class/gpio/gpiochip320/device/modalias;echo
of:NgpioTCnvidia,tegra186-gpio

You should see this for the Tegra AON GPIOs:
$ cat /sys/class/gpio/gpiochip256/device/modalias;echo
of:NgpioTCnvidia,tegra186-gpio-aon

Here is an easy table you can use to find the number given the PORT and # of the GPIO:

Main GPIOs

<u><b>Port	.00	.01	.02	.03	.04	.05	.06	.07</b></u>
A	320	321	322	323	324	325	326	
B	328	329	330	331	332	333	334	
C	336	337	338	339	340	341	342	
D	344	345	346	347	348	349		
E	352	353	354	355	356	357	358	359
F	360	361	362	363	364	365		
G	368	369	370	371	372	373		
H	376	377	378	379	380	381	382	
I	384	385	386	387	388	389	390	391
J	392	393	394	395	396	397	398	399
K	400							
L	408	409	410	411	412	413	414	415
M	416	417	418	419	420	421		
N	424	425	426	427	428	429	430	
O	432	433	434	435				
P	440	441	442	443	444	445	446	
Q	448	449	450	451	452	453		
R	456	457	458	459	460	461		
T	464	465	466	467				
X	472	473	474	475	476	477	478	479
Y	480	481	482	483	484	485	486	
BB	488	489						
CC	496	497	498	499

AON GPIOs

<u><b>Port	.00	.01	.02	.03	.04	.05	.06	.07</b></u>
S	256	257	258	259	260			
U	264	265	266	267	268	269		
V	272	273	274	275	276	277	278	279
W	280	281	282	283	284	285	286	287
Z	288	289	290	291				
AA	296	297	298	299	300	301	302	303
EE	304	305	306					
FF	312	313	314	315	316
1 Like