linux/drivers/phy/mediatek
AngeloGioacchino Del Regno d6306fc5d7 phy: mediatek: tphy: Cleanup and document slew calibration
While it's true that, generally, the T-PHY V3 does not support the
slew calibration process, some minor versions of it actually do,
moreover, some SoCs may not support this even though the version
of the PHY IP does.

The reference clock and rate coefficient parameters are used only
for slew calibration: move those to platform data, then document
and change the checks in hs_slew_rate_calibrate() to perform the
calibration only if:
 - EYE value was not supplied (pre-calculated calibration); and
 - Slew reference clock value is present (not zero); and
 - Slew coefficient is present (not zero).

Moreover, change the probe function to always check if both the
slew reference clock and coefficient properties are present and,
if not, assign the value from platform data (which, as reminder,
if not added means that it's zero!), instead of checking the PHY
IP version.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20250623120315.109881-3-angelogioacchino.delregno@collabora.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2025-06-26 16:33:42 -07:00
..
Kconfig phy: mediatek: phy-mtk-hdmi: add regulator dependency 2024-12-24 20:38:53 +05:30
Makefile phy: add driver for MediaTek XFI T-PHY 2024-04-12 16:52:56 +05:30
phy-mtk-dp.c phy: phy-mtk-dp: Fix an error code in probe() 2023-07-12 22:27:02 +05:30
phy-mtk-hdmi-mt2701.c phy: mediatek: hdmi: mt2701: use common helper to access registers 2022-09-24 11:57:50 +05:30
phy-mtk-hdmi-mt8173.c phy: mediatek: hdmi: mt8173: use common helper to access registers 2022-09-24 11:57:50 +05:30
phy-mtk-hdmi-mt8195.c phy: mediatek: phy-mtk-hdmi: Register PHY provided regulator 2024-12-04 19:55:33 +05:30
phy-mtk-hdmi-mt8195.h phy: mediatek: phy-mtk-hdmi: Register PHY provided regulator 2024-12-04 19:55:33 +05:30
phy-mtk-hdmi.c phy: mediatek: phy-mtk-hdmi: Register PHY provided regulator 2024-12-04 19:55:33 +05:30
phy-mtk-hdmi.h phy: mediatek: phy-mtk-hdmi: Register PHY provided regulator 2024-12-04 19:55:33 +05:30
phy-mtk-io.h phy: mediatek: remove temporary variable @mask_ 2023-02-02 18:35:13 +05:30
phy-mtk-mipi-csi-0-5-rx-reg.h phy: mtk-mipi-csi: add driver for CSI phy 2024-02-07 15:02:13 +01:00
phy-mtk-mipi-csi-0-5.c phy: constify of_phandle_args in xlate 2024-02-23 17:43:14 +05:30
phy-mtk-mipi-dsi-mt8173.c phy: mediatek: mipi: mt8173: use common helper to access registers 2022-09-24 11:57:50 +05:30
phy-mtk-mipi-dsi-mt8183.c phy: mediatek: mipi: mt8183: fix minimal supported frequency 2023-11-27 18:23:26 +05:30
phy-mtk-mipi-dsi.c phy: mediatek: mipi-dsi: Compress of_device_id match entries 2023-07-12 22:27:42 +05:30
phy-mtk-mipi-dsi.h phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
phy-mtk-pcie.c phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
phy-mtk-tphy.c phy: mediatek: tphy: Cleanup and document slew calibration 2025-06-26 16:33:42 -07:00
phy-mtk-ufs.c phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
phy-mtk-xfi-tphy.c phy: add driver for MediaTek XFI T-PHY 2024-04-12 16:52:56 +05:30
phy-mtk-xsphy.c phy: mediatek: xsphy: support type switch by pericfg 2025-05-14 09:24:44 +01:00