STRUCT MTK_PHY_PDATA(9)
π struct mtk_phy_pdata π
okay bestie, welcome to the Kernel API Manual, section 9 β this is the whole page for struct mtk_phy_pdata, which is literally just SoC specific platform data β¨. it's the little bundle of settings that tells the MediaTek PHY driver how your particular chip wants to be handled. no cap, it's small but it's doing a lot of work π«Ά
πΈ NAME πΈ
struct mtk_phy_pdata β SoC specific platform data π
β SYNOPSIS β
here's the whole struct, character for character, do not touch:
struct mtk_phy_pdata {
bool avoid_rx_sen_degradation;
bool sw_pll_48m_to_26m;
bool sw_efuse_supported;
u8 slew_ref_clock_mhz;
u8 slew_rate_coefficient;
enum mtk_phy_version version;
};
π Members π
okay so these are the fields, and each one has main character energy in its own way π
avoid_rx_sen_degradation
Avoid TX Sensitivity level degradation β and this is MT6795/8173 only, so if you're on some other SoC, this one's not for you bestie π
sw_pll_48m_to_26m
a workaround for the V3 IP (MT8195) β it switches the 48MHz PLL from fractional mode to integer so it can output 26MHz for U2PHY π₯ literally just vibes and clock math.
sw_efuse_supported
this one switches off eFuse auto-load from the PHY, and instead applies values read from a different nvmem (usually a different eFuse array) β the one that's pointed at in the device tree node for this PHY π iykyk.
slew_ref_clock_mhz
the default reference clock, in MHz, for slew rate calibration π°οΈ
slew_rate_coefficient
the coefficient for slew rate calibration β yes it pairs with the one above, they're a matching set π
version
the PHY IP Version π¦
β¨ SEE ALSO β¨
- Kernel file
./drivers/phy/mediatek/phy-mtk-tphy.cβ go read it, it's where all this actually gets used, fr fr π
bestie reminder: if you're editing this struct, every field is load-bearing. don't just delete one because the vibe check failed π
and that's the page!! π from ./drivers/phy/mediatek, dated October 2026 β mwah, take care of your PHY pdata, ily πΈππ¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms