Please remember to add a category to the bottom of each page that you create.
See categories help for further details, but most will probably be [[Category:HTC ModelName]].

HTC Raphael/GPIO

From XDA-Developers
Jump to: navigation, search

GPIO assignments on Raphael models

pin xpin a/m alt bit IO raph100 raph800 raph500 blac100
Bank 0
0 0x00 1 0 O h2w/UART mux=1/0
1 0x01 1 0 1 O set batt charge current (0=500mA, 1=900mA)
2 0x02 1 5, 2 O CAM DAT2
3 0x03 1 5, 3 O CAM DAT3
4 0x04 1 5, 4 O CAM DAT4
5 0x05 1 5, 5 O CAM DAT5
6 0x06 1 5, 6 O CAM DAT6
7 0x07 1 5, 7 O CAM DAT7
8 0x08 1 5, 8 O CAM DAT8
9 0x09 1 5, 9 O CAM DAT9
10 0x0a 1 5, 10 O CAM DAT10
11 0x0b 1 5, 11 O CAM DAT11
12 0x0c 1 5, 12 O CAM PCLK
13 0x0d 1 5, 13 O CAM HSYNC_IN
14 0x0e 1 5, 14 O CAM VSYNC_IN
15 0x0f 1c4,1c0 15 O CAM MCLK
Bank 1
16 0x10 0
17 0x11 3,0 1 I + h2w, extmic irq extmic irq
18 0x12 2 + h2w, cable_in irq
19 0x13 0x10,0 3 O BT TX BT TX
20 0x14 0x10,0 4 I BT RX BT TX
21 0x15 0x10(3),1 5 I BT CTS, (RX irq) BT CTS
22 0x16 6
23 0x17 3,0 7 I SD card inserted (and irq) - AUDHPEN=1
24 0x18 8
25 0x19 0 9 O soft reset=0
26 0x1a 10
27 0x1b 11 irq (Y) wakeup, Ukey, microP irq keyboard keypress
28 0x1c 12 I irq MBAT_IN, battery MBAT_IN
29 0x1d 3,0 13 I wifi irq wifi irq
30 0x1e 14 +cif pwr(big0,small1cond)
31 0x1f 15 +h2w, spi_cs ? lcd pwr=1
32 0x20 0,0 16 O + keypad battery related
33 0x21 0,0 17 O + keypad
34 0x22 0,0 18 O + keypad
35 0x23 0,0 19 O + keypad
36 0x24 3,0 20 I reset button, irq.
37 0x25 21 I sd card detect; sdmc_dcz, irq Stylus removal sensor
38 0x26 3,0 22 I + keyboard slider, irq (S) sd detect sd detect
39 0x27 3,0 23 I - keyboard slider irq
40 0x28 3,0 24 I + keypad, irq
41 0x29 3,0 25 I + keypad, irq
42 0x2a 3,0 26 I + keypad, irq
Bank 2
43 0x2b 0 0 I regionid related
44 0x2c 0 1 O battery charging (0=Enable, 1=Disable) battery charging
45 0x2d 4,0 2 I/O + h2w, cable_in2 (tvout), irq, ALT=uart1 RX h2w 1,4,0
46 0x2e 4,0 3 I/O + h2w, _data ?, ALT=uart1 TX h2w 1,4,0
47 0x2f 4
48 0x30 5
49 0x31 6 not used
50 0x32 7
51 0x33 7/, 8 1 SDC1 DAT3 (wifi) 1,7,0(2,4,0)
52 0x34 7/, 9 1 SDC1 DAT2 (wifi) 1,7,0(2,4,0)
53 0x35 7/, 10 1 SDC1 DAT1 (wifi) 1,7,0(2,4,0)
54 0x36 7/, 11 1 SDC1 DAT0 (wifi) 1,7,0(2,4,0)
55 0x37 7/, 12 1 SDC1 CMD (wifi) 1,7,0(2,7,0)
56 0x38 7/, 13 1 SDC1 CLK (wifi) 2,4,0
57 0x39 14 O TVout enable=1 ext SPKpwr=1
58 0x3a 15 O flashlight LED.
59 0x3b 16
60 0x3c 4,1 17 2,1 SCL SCL 2,4,1
61 0x3d 4,1 18 2,1 SDA SDA 2,4,1
62 0x3e 0x48/0, 19 O SDC2 CLK (sd) 8,
63 0x3f 0x48/0, 20 O SDC2 CMD (sd) 8,
64 0x40 0x48/0, 21 O SDC2 DAT3 (sd) 8,
65 0x41 0x48/0, 22 O SDC2 DAT2 (sd) 8,
66 0x42 0x48/0, 23 O SDC2 DAT1 (sd) 8,
67 0x43 0x48/0,0 24 O(I) SDC2 DAT0 (sd) high 8,
Bank 3
68 0x44 4,0 0 I PCM_DOUT
69 0x45 4,0 1 I PCM_DIN
70 0x46 4,0 2 I PCM_SYNC
71 0x47 4,0 3 I PCM_CLK
72 0x48 4
73 0x49 5
74 0x4a 6
75 0x4b 7
76 0x4c 8 O + lcd power related=1
77 0x4d 9 O usb charging disable=0
78 0x4e 10
79 0x4f 11
80 0x50 12
81 0x51 13
82 0x52 0 14 O lcd pwr1=1 BT pwr=1
83 0x53 3 15 I irq, pwr-Gkey
84 0x54 (0) 16 O headphone/headset = 1
85 0x55 17
86 0x56 18 O keyboard backlight
87 0x57 19
88 0x58 20 SDC3 CLK; 2,104,0; 2,c4,0
89 0x59 0 21 O AUD_HP_EN=1 sdc3 CMD; 2,107,0 microP RST
90 0x5a 22 I irq, phone related, usb_id (on raph120 0=AC charger 1=AC disconnected) sdc3 DAT3 2,184,0
91 0x5b 0 23 O + cif VCMPDP pin sdc3 DAT2 2,184,0
92 0x5c 0 24 O + cif main rst (0,msleep3,1) sdc3 DAT1 2,184,0
93 0x5d 0 25 O + cif vga(1,msleep2,0,msleep1,=1) sdc3 DAT0 2,184,0 battery related
94 0x5e 26 I irq CAP_SENz (NAVI) ext SPK related
Bank 4
95 0x5f 1,0 0 I
96 0x60 1,0 1 I
97 0x61 2 I lcd vsync
98 0x62 3 O lcd pwr=1 lcd pwr=1
99 0x63 0 4 O + lcd pwr=1 lcd pwr=1
100 0x64 5 usb phy reset: =0, msleep 1, =1, msleep 3 (raph 120: 1=USB host connected; 0=disconnected)
101 0x65 0,0/1 6 O BT uart reset: =0,msleep 50,=1 bt rst
102 0x66 0 7 O wifi pwr1=1 wifi pwr1=1
103 0x67 0 8 O wifi/bt pwr2=1 wifi/bt pwr2=1
104 0x68 9
105 0x69 10
106 0x6a 11
Bank 5
107 0x6b 0 + cif
108 0x6c 8,1 1 O BT RTS
109 0x6d 0 2 O + cif power (big=0,small=1 cond)
110 0x6e 3
111 0x6f 4 4 O ulpi_data0 2,4,1
112 0x70 4 5 O ulpi_data1 2,4,1
113 0x71 4 6 O ulpi_data2 2,4,1
114 0x72 4 7 O ulpi_data3 2,4,1
115 0x73 4 8 O ulpi_data4 2,4,1
116 0x74 4 9 O ulpi_data5 2,4,1
117 0x75 4 10 O ulpi_data6 2,4,1
118 0x76 4 11 O ulpi_data7 2,4,1
119 0x77 4 12 I ulpi_dir 2,4,1
120 0x78 4 13 I ulpi_next 2,4,1
121 0x79 4 14 O ulpi_stop 2,4,1

Back to Raphael Main Page