phy: rockchip: usbdp: Fix LFPS detect threshold control

According to the LFPS Tx Low Power/LFPS Rx Detect Threshold [1],
the device under test(DUT) must not respond if LFPS below the
minimum LFPS Rx Detect Threshold 100mV. Test fail on Rockchip
platforms, because the default LFPS detect threshold is set to
65mV.

The usbdp phy LFPS detect threshold voltage could be set to
30mV ~ 140mV, and since there could be 10-20% PVT variation,
we set LFPS detect threshold voltage to 110mV.

[1] https://compliance.usb.org/resources/LFPS_Rx_Tx_Low_Power_Compliance_Update_Rev5.pdf
Change-Id: Idf17df242090027b3b8eb731423a1aa536ed8c09
Signed-off-by: William Wu <william.wu@rock-chips.com>
This commit is contained in:
William Wu
2024-10-21 18:19:42 +08:00
committed by Tao Huang
parent fbdf4ef963
commit 11ca1d9953

View File

@@ -401,7 +401,8 @@ static const struct reg_sequence udphy_init_sequence[] = {
{0x0070, 0x7D}, {0x0074, 0x68},
{0x0AF4, 0x1A}, {0x1AF4, 0x1A},
{0x0440, 0x3F}, {0x10D4, 0x08},
{0x20D4, 0x08}, {0x0024, 0x6e}
{0x20D4, 0x08}, {0x0024, 0x6e},
{0x09C0, 0x0A}, {0x19C0, 0x0A}
};
static inline int grfreg_write(struct regmap *base,