Skip to content

Commit 08bde1e

Browse files
lweiss-fairphonevinodkoul
authored andcommitted
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: Abel Vesa <abel.vesa@linaro.org> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Signed-off-by: Luca Weiss <luca.weiss@fairphone.com> Link: https://lore.kernel.org/r/20250709-sm7635-eusb-repeater-v2-2-b6eff075c097@fairphone.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 791cfbe commit 08bde1e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ static int eusb2_repeater_init(struct phy *phy)
136136
if (!of_property_read_u8(np, "qcom,tune-usb2-preem", &val))
137137
regmap_write(regmap, base + EUSB2_TUNE_IUSB2, val);
138138

139+
if (!of_property_read_u8(np, "qcom,tune-res-fsdif", &val))
140+
regmap_write(regmap, base + EUSB2_TUNE_RES_FSDIF, val);
141+
139142
/* Wait for status OK */
140143
ret = regmap_read_poll_timeout(regmap, base + EUSB2_RPTR_STATUS, poll_val,
141144
poll_val & RPTR_OK, 10, 5);

0 commit comments

Comments
 (0)