Nexus 7: GPIO assignments

By | September 12, 2013

This might come in handy one day. I raided the DebugFS on the Nexus 7 and tried to cross-reference it with the Kernel-Source for GPIO pin-assignments and tried to match them to a module / functionality. The conditions under which the table was created are:
Charger plugged in, no Headset connected, Screen active.

NOTE: As for the pm-gpio, I can’t tell for sure whether all the pins are actually in use or if the kernel just picked them up due to the different implementation.

Nexus 7 (2013): GPIO-Assignments (msmgpio)

Nr.NameDirectionState
0WDP_VSYNCinlo
1gpio_display_ID2 (unused?)in?
6tp_irqinhi
7anx7808_cbl_detinlo
8i2c_sdainhi
9i2c_clkinhi
12PCB_ID2 (gpio_display_ID1 / unused?)inlo
14PCB_ID4inlo
23smb345_inokinlo
26KEY_POWERinhi
28PCB_ID7inlo
29low_battery_detectinhi
31tp_resetouthi
32nfc_intinlo
34wp_pokinhi
36LIDinhi
38MBHC_HS_DETECTinhi
44anx7808_in_ninhi
45JACK_IN_DETinhi
50slimport_27M_clkinlo
51PCB_ID6inhi
53PCB_ID5inlo
54LCM_XRESout
57PCB_ID0inlo
59PCB_ID1inhi
62HS_HOOK_INTinhi
64wcnss_gpios_5wireinlo
65wcnss_gpios_5wireinlo
66wcnss_gpios_5wireinlo
67wcnss_gpios_5wireinlo
68wcnss_gpios_5wireinlo
70HDMI_DDC_CLKinhi
71HDMI_DDC_DATAinhi
72HDMI_HPDinlo
77msm_otg_id_pininhi
78msm_reset??
85DB_DETinhi
86PCB_ID8inlo

Nexus 7 (2013): GPIO-Assignments (pm8xxx-gpio)

Nr.NameDirectionState
152anx7808_resetoutlo
153anx_p_dwn_ctouthi
154?inlo
155KEY_VOLUMEUPinhi
156?outlo
157?outlo
158?inlo
159nfc_firmouthi
160nfc_venouthi
161?inlo
162?inhi
163?`inhi
164?outlo
165?outhi
166?loinlo
167?inlo
168?outlo
169?outlo
170?outlo
171?outlo
172?inlo
173?inlo
174EN_VDD_BLouthi
175?inhi
176?outlo
177pwm_backlightoutlo
178?outlo
179?outlo
180WPC_EN1outhi
181?outlo
182?outlo
183WPC_EN2outhi
184?outlo
185CDC_RESETouthi
186?outlo
187LCD_BL_ENouthi
188?inlo
189KEY_VOLUMEDOWNinhi
190?inhi
191?outlo
192?outlo
193?outlo
194?outlo
195?outlo

Nexus 7 (2013): GPIO-Assignments (pm8xxx-mpp.0)

Nr.NameDirectionState
196?d_outhi
197?d_outlo
198?d_outlo
199?`d_outlo
200?a_outlo
201?sinklo
202?d_outhi
203ext_mpp8_end_outlo
204?d_inhi
205?sinklo
206?sinklo
207?sinklo

Nexus 7 (2013): GPIO-Assignments (pm8xxx-mpp.1)

Nr.NameDirectionState
208?sinklo
209?sinklo
210?sinklo
211?sinklo

Source: /sys/kernel/debug/gpio on a stock Android-Installation, Kernel 3.4.0-g6537a16
Further reading:

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.