Commit 254a1f6a authored by Michael Riesch's avatar Michael Riesch Committed by Heiko Stuebner

arm64: dts: rockchip: add usb3 support to the radxa rock3 model a

The Radxa ROCK3 Model A features one USB 3.0 host port and one USB 3.0
OTG/DRD port. Enable them in the device tree.
Signed-off-by: default avatarMichael Riesch <michael.riesch@wolfvision.net>
Link: https://lore.kernel.org/r/20220425133502.405512-2-michael.riesch@wolfvision.netSigned-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent 13e0ee34
...@@ -96,6 +96,26 @@ vcc5v0_usb_host: vcc5v0-usb-host { ...@@ -96,6 +96,26 @@ vcc5v0_usb_host: vcc5v0-usb-host {
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
vin-supply = <&vcc5v0_usb>; vin-supply = <&vcc5v0_usb>;
}; };
vcc5v0_usb_otg: vcc5v0-usb-otg-regulator {
compatible = "regulator-fixed";
enable-active-high;
gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&vcc5v0_usb_otg_en>;
regulator-name = "vcc5v0_usb_otg";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
vin-supply = <&vcc5v0_usb>;
};
};
&combphy0 {
status = "okay";
};
&combphy1 {
status = "okay";
}; };
&cpu0 { &cpu0 {
...@@ -416,6 +436,9 @@ usb { ...@@ -416,6 +436,9 @@ usb {
vcc5v0_usb_host_en: vcc5v0_usb_host_en { vcc5v0_usb_host_en: vcc5v0_usb_host_en {
rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
}; };
vcc5v0_usb_otg_en: vcc5v0_usb_otg_en {
rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
};
}; };
}; };
...@@ -479,6 +502,11 @@ &usb_host0_ohci { ...@@ -479,6 +502,11 @@ &usb_host0_ohci {
status = "okay"; status = "okay";
}; };
&usb_host0_xhci {
extcon = <&usb2phy0>;
status = "okay";
};
&usb_host1_ehci { &usb_host1_ehci {
status = "okay"; status = "okay";
}; };
...@@ -487,6 +515,24 @@ &usb_host1_ohci { ...@@ -487,6 +515,24 @@ &usb_host1_ohci {
status = "okay"; status = "okay";
}; };
&usb_host1_xhci {
status = "okay";
};
&usb2phy0 {
status = "okay";
};
&usb2phy0_host {
phy-supply = <&vcc5v0_usb_host>;
status = "okay";
};
&usb2phy0_otg {
vbus-supply = <&vcc5v0_usb_otg>;
status = "okay";
};
&usb2phy1 { &usb2phy1 {
status = "okay"; status = "okay";
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment