phy: rockchip-inno-usb2: support tuning phy for rk3399
authorWilliam Wu <wulf@rock-chips.com>
Sat, 7 Jan 2017 05:33:57 +0000 (13:33 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 9 Jan 2017 02:57:32 +0000 (10:57 +0800)
commitb5bda305479661c4dc995f94df67abdf71b4bc4e
treea2172543308bf08dc27359dddebac4f5923e4d57
parentcc0af0c51d8f679c29574fb2ad77b8e34608abd7
phy: rockchip-inno-usb2: support tuning phy for rk3399

This patch adds a method to tuning phy with the following
parameters to improve usb driver strength and increase usb2
compatibility.

1. Set max ODT compensation voltage and current tuning reference.
2. Set max pre-emphasis level.
3. Disable the pre-emphasize in eop state and chirp state
   to avoid mis-trigger the disconnect detection and also
   avoid hs handshake fail.

We don't enable the phy tuning by default. If you want to
tuning phy, you can add a property "rockchip,u2phy-tuning"
in u2phy node, like this:

&u2phy0 {
rockchip,u2phy-tuning;
};

&u2phy1 {
rockchip,u2phy-tuning;
};

Change-Id: Iaa70e2ad3d5d06662be6c05e4d20784e5bb85ae9
Signed-off-by: William Wu <wulf@rock-chips.com>
Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.txt
drivers/phy/phy-rockchip-inno-usb2.c