phy: rockchip-inno-usb2: tuning USB 2.0 squelch detection threshold
authorMeng Dongyang <daniel.meng@rock-chips.com>
Mon, 17 Apr 2017 06:11:58 +0000 (14:11 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 17 Apr 2017 10:06:18 +0000 (18:06 +0800)
commitfc6a791259803fee75599123cbd45bcb9b010ad0
tree58bd99adbd12ee8f8b08df652f9df0e13b75afa4
parentdd9460f5938865d264199eebbee6a14786cb4e7a
phy: rockchip-inno-usb2: tuning USB 2.0 squelch detection threshold

According to USB 2.0 Spec Table 7-7, the High-speed squelch
detection threshold Min 100mV and Max 150mV, and we set USB
2.0 PHY0 and PHY1 squelch detection threshold to 150mV by
default, so if the amplitude of differential voltage envelope
is < 150 mV, the USB 2.0 PHYs envelope detector will indicate
it as squelch.

On RK3399 box, if we connect usb device with a 4 meter cable,
we can see that the impedance of U2 cable is too big according
to the eye-diagram test report, and this cause serious signal
attenuation at the end of receiver, the amplitude of differential
voltage falls below 150mV.

This patch aims to reduce the PHY0 and PHY1 otg-ports squelch
detection threshold to 125mV (host-ports still use 150mV by
default), this is helpful to increase USB 2.0 PHY compatibility.

Change-Id: Iec8b4043a3440d6f2a5fb18ff59ac0f4988019e9
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
drivers/phy/phy-rockchip-inno-usb2.c