Commit 1ff37c22 authored by Peter Geis's avatar Peter Geis Committed by Heiko Stuebner

arm64: dts: rockchip: add Quartz64-A usb2 support

Add the nodes and regulators to enable usb2 support on the Quartz64
Model A.
Signed-off-by: default avatarPeter Geis <pgwipeout@gmail.com>
Tested-by: default avatarMichael Riesch <michael.riesch@wolfvision.net>
Link: https://lore.kernel.org/r/20211215210252.120923-9-pgwipeout@gmail.comSigned-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent 91c4c3e0
...@@ -124,6 +124,22 @@ vcc5v0_usb: vcc5v0_usb { ...@@ -124,6 +124,22 @@ vcc5v0_usb: vcc5v0_usb {
vin-supply = <&vcc12v_dcin>; vin-supply = <&vcc12v_dcin>;
}; };
/* all four ports are controlled by one gpio
* the host ports are sourced from vcc5v0_usb
* the otg port is sourced from vcc5v0_midu
*/
vcc5v0_usb20_host: vcc5v0_usb20_host {
compatible = "regulator-fixed";
enable-active-high;
gpio = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&vcc5v0_usb20_host_en>;
regulator-name = "vcc5v0_usb20_host";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
vin-supply = <&vcc5v0_usb>;
};
vcc3v3_sd: vcc3v3_sd { vcc3v3_sd: vcc3v3_sd {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
enable-active-low; enable-active-low;
...@@ -477,6 +493,12 @@ pmic_int_l: pmic-int-l { ...@@ -477,6 +493,12 @@ pmic_int_l: pmic-int-l {
}; };
}; };
usb2 {
vcc5v0_usb20_host_en: vcc5v0-usb20-host-en {
rockchip,pins = <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
vcc_sd { vcc_sd {
vcc_sd_h: vcc-sd-h { vcc_sd_h: vcc-sd-h {
rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
...@@ -551,3 +573,33 @@ bluetooth { ...@@ -551,3 +573,33 @@ bluetooth {
&uart2 { &uart2 {
status = "okay"; status = "okay";
}; };
&u2phy1_host {
phy-supply = <&vcc5v0_usb20_host>;
status = "okay";
};
&u2phy1_otg {
phy-supply = <&vcc5v0_usb20_host>;
status = "okay";
};
&u2phy1 {
status = "okay";
};
&usb_host0_ehci {
status = "okay";
};
&usb_host0_ohci {
status = "okay";
};
&usb_host1_ehci {
status = "okay";
};
&usb_host1_ohci {
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