STRUCT QUSB2_PHY(9)
π struct qusb2_phy(9) β from the Kernel API Manual, bestie
okay so picture this: it's a whole struct in the kernel, right, and it's the one holding all the qusb2 phy attributes. literally its entire job. iconic of it, honestly π«Ά
β¨ NAME β¨
struct qusb2_phy β the structure that holds all the qusb2 phy attributes π
πΈ SYNOPSIS πΈ
struct qusb2_phy {
struct phy *phy;
void __iomem *base;
struct clk *cfg_ahb_clk;
struct clk *ref_clk;
struct clk *iface_clk;
struct reset_control *phy_reset;
struct regulator_bulk_data vregs[QUSB2_NUM_VREGS];
struct regmap *tcsr;
struct nvmem_cell *cell;
struct override_params overrides;
const struct qusb2_phy_cfg *cfg;
bool has_se_clk_scheme;
bool phy_initialized;
enum phy_mode mode;
};
like, look at her. every single field accounted for. no notes π
π Members π
okay bestie let's go field by field, i promise it's not that deep:
phyβ the generic phy. the main character of the whole thing fr.baseβ iomapped memory space for qubs2 phy (yes that's the spelling in the source, don't come for me π).cfg_ahb_clkβ the AHB2PHY interface clock β°ref_clkβ the phy reference clock, the vibe-setter of clocksiface_clkβ the phy interface clockphy_resetβ the phy reset control, hold my hand while i reset you energyvregsβ regulator supplies bulk data β it's literallystruct regulator_bulk_data vregs[QUSB2_NUM_VREGS], an entire array of them, slaytcsrβ the TCSR syscon register map πΊοΈcellβ the nvmem cell containing the phy tuning value, lowkey importantoverridesβ pointer to the structure for all the overriding tuning params β every last one of themcfgβ the phy config datahas_se_clk_schemeβ aboolthat indicates if the PHY has the single-ended ref clock scheme β¨phy_initializedβ aboolthat indicates if the PHY has been initialized β the "have we done this already" flagmodeβ the current PHY mode, anenum phy_mode, living its truth
π¦ SEE ALSO π¦
- Kernel file
./drivers/phy/qualcomm/phy-qcom-qusb2.cβ go read the source, iykyk π
and that's the whole page, no cap. this one's from ./drivers/phy/qualcomm, dated October 2026, and it's struct qusb2_phy(9) β periodt π§π
π¦ 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