[PATCH v4 05/16] phy: rockchip: usbdp: Fix LFPS detect threshold control
Neil Armstrong
neil.armstrong at linaro.org
Wed May 6 07:49:35 PDT 2026
On 4/28/26 18:13, Sebastian Reichel wrote:
> From: William Wu <william.wu at rock-chips.com>
>
> 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
>
> Signed-off-by: William Wu <william.wu at rock-chips.com>
> [Taken over from rockchip's kernel tree; the registers are not described
> in the TRM]
> Signed-off-by: Sebastian Reichel <sebastian.reichel at collabora.com>
> ---
> drivers/phy/rockchip/phy-rockchip-usbdp.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/phy/rockchip/phy-rockchip-usbdp.c b/drivers/phy/rockchip/phy-rockchip-usbdp.c
> index 1f686844c337..97e53b933225 100644
> --- a/drivers/phy/rockchip/phy-rockchip-usbdp.c
> +++ b/drivers/phy/rockchip/phy-rockchip-usbdp.c
> @@ -413,7 +413,8 @@ static const struct reg_sequence rk_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 rk_udphy_grfreg_write(struct regmap *base,
>
Reviewed-by: Neil Armstrong <neil.armstrong at linaro.org>
Thanks,
Neil
More information about the linux-phy
mailing list