ARM: dts: stm32: enable USB HS phys on stm32mp135f-dk
authorAmelie Delaunay <amelie.delaunay@foss.st.com>
Fri, 14 Oct 2022 14:15:05 +0000 (16:15 +0200)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Mon, 24 Oct 2022 09:53:38 +0000 (11:53 +0200)
USBPHYC manages the two USB High-Speed phys. port0 is used by USBH and
port1 is used by USBOTG.
Enable and tune both PHYs on stm32mp135f-dk.

Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/stm32mp135f-dk.dts

index edf4b3c..ae65bad 100644 (file)
        pinctrl-0 = <&uart4_pins_a>;
        status = "okay";
 };
+
+&usbphyc {
+       status = "okay";
+};
+
+&usbphyc_port0 {
+       phy-supply = <&vdd_usb>;
+       st,current-boost-microamp = <1000>;
+       st,decrease-hs-slew-rate;
+       st,tune-hs-dc-level = <2>;
+       st,enable-hs-rftime-reduction;
+       st,trim-hs-current = <11>;
+       st,trim-hs-impedance = <2>;
+       st,tune-squelch-level = <1>;
+       st,enable-hs-rx-gain-eq;
+       st,no-hs-ftime-ctrl;
+       st,no-lsfs-sc;
+};
+
+&usbphyc_port1 {
+       phy-supply = <&vdd_usb>;
+       st,current-boost-microamp = <1000>;
+       st,decrease-hs-slew-rate;
+       st,tune-hs-dc-level = <2>;
+       st,enable-hs-rftime-reduction;
+       st,trim-hs-current = <11>;
+       st,trim-hs-impedance = <2>;
+       st,tune-squelch-level = <1>;
+       st,enable-hs-rx-gain-eq;
+       st,no-hs-ftime-ctrl;
+       st,no-lsfs-sc;
+};