STRUCT ROCKCHIP_USB2PHY(9)
π NAME π
struct rockchip_usb2phy β the driver data for the usb2.0 phy, bestie. that's it, that's the whole vibe β¨
πΈ SYNOPSIS πΈ
okay so here's the whole struct, every single field, no cap:
struct rockchip_usb2phy {
struct device *dev;
struct regmap *grf;
struct regmap *phy_base;
struct clk_bulk_data *clks;
struct clk *clk480m;
struct clk_hw clk480m_hw;
int num_clks;
struct reset_control *phy_reset;
enum usb_chg_state chg_state;
enum power_supply_type chg_type;
u8 dcd_retries;
struct extcon_dev *edev;
int irq;
const struct rockchip_usb2phy_cfg *phy_cfg;
struct rockchip_usb2phy_port ports[USB2PHY_NUM_PORTS];
};
π§ MEMBERS π§
the way each one of these has a whole personality, let's go π«Ά
devβ pointer to device. the main character, fr.grfβ the General Register Files regmap.phy_baseβ the USB PHY regmap. yes bestie, a separate regmap, keep up πclksβ array of phy input clocks. an array, so like, multiple.clk480mβ clock struct of phy output clk.clk480m_hwβ clock struct of phy output clk management.num_clksβ number of phy input clocks. it counts them. iconic.phy_resetβ phy reset control.chg_stateβ states involved in USB charger detection.chg_typeβ USB charger types.dcd_retriesβ the retry count used to track Data contact detection process. it's giving perseverance πedevβ extcon device for notification registrationirqβ muxed interrupt for single irq configurationphy_cfgβ phy register configuration, assigned by driver data.portsβ phy port instance. hi little port π
π SEE ALSO π
lowkey go read all of these too, iykyk:
- Kernel file
./drivers/phy/rockchip/phy-rockchip-inno-usb2.c enum usb_chg_state(9)struct rockchip_chg_det_reg(9)struct rockchip_usb2phy_port_cfg(9)struct rockchip_usb2phy_cfg(9)struct rockchip_usb2phy_port(9)
okay that's the whole page, mwah π this one lives at ./drivers/phy/rockchip and it's dated October 2026 β like, from the future?? anyway, it's part of the Kernel API Manual, and that's the tea πβ¨ 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