SoC:RK3588S
根据文档,USB控制器和PHY定义在rk3588s-evb.dtsi,且默认全部为打开的
原理图中的USB30_2对应dts中的usbhost3_0、usbhost_dwc3_0
若无在其他dts中引用且定义为disabled,可以默认不用管,只需要确保evb中的配置不变即可
我们的原理图设计上,是与USB2 HOST_1进行组合的
因此USB PHY在DTS中的定义为USB2.0 PHY3
#USB2.0 PHY3配置"phy-supply"属性,⽤于控制VBUS输出5V
&u2phy3_host {
phy-supply = <&vcc5v0_host>;
}
所以总体的USB 3.0配置为
#USB2.0 PHY3配置"phy-supply"属性,⽤于控制VBUS输出5V
&u2phy3_host {
phy-supply = <&vcc5v0_host>;
}
#VBUS GPIO配置,在USB2.0 PHY驱动中控制该GPIO
vcc5v0_host: vcc5v0-host {
compatible = "regulator-fixed";
regulator-name = "vcc5v0_host";
regulator-boot-on;
regulator-always-on;
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
enable-active-high;
gpio = <&gpio1 RK_PA6 GPIO_ACTIVE_HIGH>;
vin-supply = <&vcc5v0_usb>;
pinctrl-names = "default";
pinctrl-0 = <&vcc5v0_host_en>;
};
#使能USB3.1/SATA/PCIe Combo PHY
&combphy2_psu {
status = "okay";
};
#配置USB3.1 HOST2 Controller
&usbhost3_0 {
status = "okay";
};
&usbhost_dwc3_0 {
dr_mode = "host";
status = "okay";
};