STRUCT ROCKCHIP_USB2PHY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 registration
  • irq β€” muxed interrupt for single irq configuration
  • phy_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