diff options
| author | Luca Weiss <luca.weiss@fairphone.com> | 2025-07-09 16:55:15 +0200 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2025-08-13 12:19:25 +0530 |
| commit | 08bde1e7c71396fcf96b0410b1c4cb6bee5b8741 (patch) | |
| tree | e41c730fd07bbde596a72edb64375072b7038152 /drivers/phy/qualcomm | |
| parent | 791cfbe1c56076c9d3bcf856b5175bfbc9c5a2d4 (diff) | |
| download | linux-08bde1e7c71396fcf96b0410b1c4cb6bee5b8741.tar.gz linux-08bde1e7c71396fcf96b0410b1c4cb6bee5b8741.tar.bz2 linux-08bde1e7c71396fcf96b0410b1c4cb6bee5b8741.zip | |
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>
Diffstat (limited to 'drivers/phy/qualcomm')
| -rw-r--r-- | drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c b/drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c index e0f2acc8109c..b2f8f1314e90 100644 --- a/drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c +++ b/drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c @@ -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); |
