Skip to content

Commit 787595b

Browse files
Nicolas Frattarolimmind
authored andcommitted
arm64: dts: rockchip: complete USB nodes on ROCK 4D
The ROCK 4D uses both USB controllers, and both of which in host mode. However, it still names one of the supplies for them "OTG" in the schematic. Fix the "host" supply's input, and add the "otg" supply. Enable the remaining USB PHY nodes, and the first controller node as well. Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com> Link: https://lore.kernel.org/r/20250630-rock4d-reg-usb-wifi-v1-2-1057f412d98c@collabora.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent 9a625a2 commit 787595b

1 file changed

Lines changed: 39 additions & 2 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3576-rock-4d.dts

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,21 @@
180180
regulator-min-microvolt = <5000000>;
181181
regulator-max-microvolt = <5000000>;
182182
regulator-name = "vcc5v0_host";
183-
vin-supply = <&vcc_5v0_device>;
183+
vin-supply = <&vcc_5v0_sys>;
184+
};
185+
186+
vcc_5v0_otg: regulator-vcc-5v0-otg {
187+
compatible = "regulator-fixed";
188+
enable-active-high;
189+
gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>;
190+
pinctrl-names = "default";
191+
pinctrl-0 = <&usb_otg_pwren>;
192+
regulator-always-on;
193+
regulator-boot-on;
194+
regulator-min-microvolt = <5000000>;
195+
regulator-max-microvolt = <5000000>;
196+
regulator-name = "vcc5v0_otg";
197+
vin-supply = <&vcc_5v0_sys>;
184198
};
185199

186200
vcc_5v0_sys: regulator-vcc-5v0-sys {
@@ -699,7 +713,11 @@
699713

700714
usb {
701715
usb_host_pwren: usb-host-pwren {
702-
rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
716+
rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_down>;
717+
};
718+
usb_otg_pwren: usb-otg-pwren {
719+
rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_down>;
720+
703721
};
704722
};
705723
};
@@ -738,10 +756,20 @@
738756
status = "okay";
739757
};
740758

759+
&u2phy0_otg {
760+
phy-supply = <&vcc_5v0_otg>;
761+
status = "okay";
762+
};
763+
741764
&u2phy1 {
742765
status = "okay";
743766
};
744767

768+
&u2phy1_otg {
769+
phy-supply = <&vcc_5v0_host>;
770+
status = "okay";
771+
};
772+
745773
&uart0 {
746774
pinctrl-0 = <&uart0m0_xfer>;
747775
status = "okay";
@@ -751,6 +779,15 @@
751779
status = "okay";
752780
};
753781

782+
&usbdp_phy {
783+
status = "okay";
784+
};
785+
786+
&usb_drd0_dwc3 {
787+
dr_mode = "host";
788+
status = "okay";
789+
};
790+
754791
&usb_drd1_dwc3 {
755792
dr_mode = "host";
756793
status = "okay";

0 commit comments

Comments
 (0)