STRUCT ROCKCHIP_USB2PHY_PORT_CFG(9)
π struct rockchip_usb2phy_port_cfg(9) π
okay so bestie, this is a page straight out of the Kernel API Manual β the manual name is literally struct rockc...phy_port_cfg(9) (yes, the header truncates it like that, it's giving "we ran out of room on the label"). It's the struct that holds all the usb-phy port configuration for Rockchip's USB2 PHY. Let's get into it π
β¨ NAME β¨
struct rockchip_usb2phy_port_cfg β usb-phy port configuration. that's it, that's the whole vibe. it's the config struct. it holds registers. it's iconic π
πΈ SYNOPSIS πΈ
struct rockchip_usb2phy_port_cfg {
struct usb2phy_reg phy_sus;
struct usb2phy_reg bvalid_det_en;
struct usb2phy_reg bvalid_det_st;
struct usb2phy_reg bvalid_det_clr;
struct usb2phy_reg disfall_en;
struct usb2phy_reg disfall_st;
struct usb2phy_reg disfall_clr;
struct usb2phy_reg disrise_en;
struct usb2phy_reg disrise_st;
struct usb2phy_reg disrise_clr;
struct usb2phy_reg idfall_det_en;
struct usb2phy_reg idfall_det_st;
struct usb2phy_reg idfall_det_clr;
struct usb2phy_reg idrise_det_en;
struct usb2phy_reg idrise_det_st;
struct usb2phy_reg idrise_det_clr;
struct usb2phy_reg ls_det_en;
struct usb2phy_reg ls_det_st;
struct usb2phy_reg ls_det_clr;
struct usb2phy_reg utmi_avalid;
struct usb2phy_reg utmi_bvalid;
struct usb2phy_reg utmi_id;
struct usb2phy_reg utmi_ls;
struct usb2phy_reg utmi_hstdet;
};
no cap, every single member is a struct usb2phy_reg β consistent queen behavior π twenty-four of them. we love a uniform cast.
π¦ Members π¦
phy_susβ phy suspend register. the "go to sleep" switch, lowkey π¦bvalid_det_enβ vbus valid rise detection enable register. turns the detector on πbvalid_det_stβ vbus valid rise detection status register. tells you what the detector saw πbvalid_det_clrβ vbus valid rise detection clear register. wipes the status clean, fresh start energy β¨disfall_enβ host disconnect fall edge detection enable.disfall_stβ host disconnect fall edge detection state.disfall_clrβ host disconnect fall edge detection clear.disrise_enβ host disconnect rise edge detection enable.disrise_stβ host disconnect rise edge detection state.disrise_clrβ host disconnect rise edge detection clear.idfall_det_enβ id detection enable register, falling edge. (yes, falling edge, write that down π)idfall_det_stβ id detection state register, falling edge.idfall_det_clrβ id detection clear register, falling edge.idrise_det_enβ id detection enable register, rising edge. (and this one's rising, don't mix them up bestie π)idrise_det_stβ id detection state register, rising edge.idrise_det_clrβ id detection clear register, rising edge.ls_det_enβ linestate detection enable register.ls_det_stβ linestate detection state register.ls_det_clrβ linestate detection clear register.utmi_avalidβ utmi vbus avalid status register. (that's "avalid" with two a's, keep it exactly like that π)utmi_bvalidβ utmi vbus bvalid status register.utmi_idβ utmi id state register.utmi_lsβ utmi linestate state register.utmi_hstdetβ utmi host disconnect register. the disconnect gossip column fr fr π
π₯ SEE ALSO π₯
- Kernel file
./drivers/phy/rockchip/phy-rockchip-inno-usb2.c enum usb_chg_state(9)struct rockchip_chg_det_reg(9)struct rockchip_usb2phy_cfg(9)struct rockchip_usb2phy_port(9)struct rockchip_usb2phy(9)
all the sibling structs and that one enum, living their best lives in the same file π«Ά
that's the whole page bestie, go forth and configure your ports π
πΈ sign-off szn: this one comes from ./drivers/phy/rockchip, dated October 2026, and the manual title at the bottom is struct rockc...phy_port_cfg(9) β same truncated legend as the top, we stan a consistent header β¨π
π¦ 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