Project

General

Profile

NexusSI902xSerial » History » Version 8

Paul Kocialkowski, 02/12/2015 09:40 AM

1 2 Paul Kocialkowski
h1. Nexus S (I902x) UART
2 1 Paul Kocialkowski
3 3 Paul Kocialkowski
The Nexus S (I902x) allows accessing an UART serial port through the USB connector. A FSA9480 switch is in charge of switching the USB connector between UART and USB (among other choices).
4 8 Paul Kocialkowski
The UART signal can itself be switched between the S5PC110 SoC UART and the XMM6160 modem UART by the MAX8998 PMIC. It is switched to the S5PC110 SoC UART by default.
5 3 Paul Kocialkowski
6
According to the Nexus S (I902x) Schematics:
7 4 Paul Kocialkowski
!crespo_fsa9480.jpg!
8 3 Paul Kocialkowski
9
Depending on the resistor value between the USB connector ID and GND pins, the FSA9480 will automatically switch the USB connector to the selected device, as mentioned on the FSA9480 datasheet. A resistor value of 150k Ohm will switch the USB connector to UART.
10 1 Paul Kocialkowski
11
h2. Hardware setup
12
13 5 Paul Kocialkowski
In order to switch the USB connector to UART, a *150k Ohm* resistor has to be placed between the *ID* and *GND* pins of the USB connector.
14
15
According to the FSA9480 datasheet, table 3 (Accessory auto configuration table), *UART Rx* is routed to *USB DP (D+)* and *UART Tx* is routed to *USB DM (D-)*.
16
Hence, the *USB DP (D+)* has to be connected to the UART adapter's *Tx* pin and the *USB DM (D-)* has to be connected to the UART adapter's *Rx* pin.
17
*GND* has to be made common between the USB connector and the UART adapter. There is no need to connect the USB connector's VBUS to a positive voltage.
18
19 7 Paul Kocialkowski
The cable can be connected to the device at any time (the FSA9480 will automatically switch the USB connector to UART, even when the device is already on).
20
21 1 Paul Kocialkowski
h2. Software setup
22 6 Paul Kocialkowski
23
h3. USB connector switch
24
25 1 Paul Kocialkowski
Alternatively, it is possible to switch the USB connector to UART at run-time. It is advised to follow the following procedure:
26 8 Paul Kocialkowski
# /sys/devices/platform/i2c-gpio.7/i2c-7/7-0025/switch