Commit 08bde1e7 authored by Luca Weiss's avatar Luca Weiss Committed by Vinod Koul
Browse files

phy: qualcomm: phy-qcom-eusb2-repeater: Support tune-res-fsdif prop



Support reading the FS Differential TX Output Resistance Tuning from
devicetree and writing the register, as required on some boards.

Reviewed-by: default avatarAbel Vesa <abel.vesa@linaro.org>
Reviewed-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: default avatarLuca Weiss <luca.weiss@fairphone.com>
Link: https://lore.kernel.org/r/20250709-sm7635-eusb-repeater-v2-2-b6eff075c097@fairphone.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 791cfbe1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -136,6 +136,9 @@ static int eusb2_repeater_init(struct phy *phy)
	if (!of_property_read_u8(np, "qcom,tune-usb2-preem", &val))
		regmap_write(regmap, base + EUSB2_TUNE_IUSB2, val);

	if (!of_property_read_u8(np, "qcom,tune-res-fsdif", &val))
		regmap_write(regmap, base + EUSB2_TUNE_RES_FSDIF, val);

	/* Wait for status OK */
	ret = regmap_read_poll_timeout(regmap, base + EUSB2_RPTR_STATUS, poll_val,
				       poll_val & RPTR_OK, 10, 5);