USB PHY作用
USB控制器接受的是数字信号,USB PHY负责:在USB控制器与USB接口之间做数字信号与模拟信号的转换。
设备树节点
usbphy: phy@01c19400 {
compatible = “allwinner,sun8i-v3s-usb-phy”;
reg = <0x01c19400 0x2c>,
<0x01c1a800 0x4>;
reg-names = “phy_ctrl”,
“pmu0”;
clocks = <&ccu CLK_USB_PHY0>;
clock-names = “usb0_phy”;
resets = <&ccu RST_USB_PHY0>;
reset-names = “usb0_reset”;
status = “disabled”;
#phy-cells = <1>;
};
PHY驱动源码路径
linux-5.1.0\drivers\phy\allwinner\phy-sun4i-usb.c