devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] tune the HS USB PHYs on stm32mp15 eval and disco boards
@ 2021-10-25 15:17 Fabrice Gasnier
  2021-10-25 15:17 ` [PATCH 1/2] ARM: dts: stm32: tune the HS USB PHYs on stm32mp15xx-dkx Fabrice Gasnier
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Fabrice Gasnier @ 2021-10-25 15:17 UTC (permalink / raw)
  To: alexandre.torgue
  Cc: robh+dt, amelie.delaunay, linux-arm-kernel, devicetree,
	linux-kernel, linux-stm32, fabrice.gasnier

This series tune the HS USB PHYs on stm32mp15 eval and disco boards, now that
dt-bindings and drivers have been merged in [1].

[1] https://lore.kernel.org/all/20211015161427.220784-1-amelie.delaunay@foss.st.com/

Fabrice Gasnier (2):
  ARM: dts: stm32: tune the HS USB PHYs on stm32mp15xx-dkx
  ARM: dts: stm32: tune the HS USB PHYs on stm32mp157c-ev1

 arch/arm/boot/dts/stm32mp157c-ev1.dts  | 22 ++++++++++++++++++++++
 arch/arm/boot/dts/stm32mp15xx-dkx.dtsi | 16 ++++++++++++++++
 2 files changed, 38 insertions(+)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] ARM: dts: stm32: tune the HS USB PHYs on stm32mp15xx-dkx
  2021-10-25 15:17 [PATCH 0/2] tune the HS USB PHYs on stm32mp15 eval and disco boards Fabrice Gasnier
@ 2021-10-25 15:17 ` Fabrice Gasnier
  2021-10-25 15:17 ` [PATCH 2/2] ARM: dts: stm32: tune the HS USB PHYs on stm32mp157c-ev1 Fabrice Gasnier
  2021-11-25 15:42 ` [PATCH 0/2] tune the HS USB PHYs on stm32mp15 eval and disco boards Alexandre TORGUE
  2 siblings, 0 replies; 4+ messages in thread
From: Fabrice Gasnier @ 2021-10-25 15:17 UTC (permalink / raw)
  To: alexandre.torgue
  Cc: robh+dt, amelie.delaunay, linux-arm-kernel, devicetree,
	linux-kernel, linux-stm32, fabrice.gasnier

This patch adds phy tuning parameters for usbphyc port0 (USBH controller)
and usbphyc port1 (OTG controller).
Phy tuning parameters are used to adjust the phy settings to compensate
parasitics, which can be due to USB receptacle, routing, and ESD protection
component.

Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
---
 arch/arm/boot/dts/stm32mp15xx-dkx.dtsi | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi b/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi
index 899bfe0..48c7a11 100644
--- a/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi
+++ b/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi
@@ -694,10 +694,26 @@
 
 &usbphyc_port0 {
 	phy-supply = <&vdd_usb>;
+	st,tune-hs-dc-level = <2>;
+	st,enable-fs-rftime-tuning;
+	st,enable-hs-rftime-reduction;
+	st,trim-hs-current = <15>;
+	st,trim-hs-impedance = <1>;
+	st,tune-squelch-level = <3>;
+	st,tune-hs-rx-offset = <2>;
+	st,no-lsfs-sc;
 };
 
 &usbphyc_port1 {
 	phy-supply = <&vdd_usb>;
+	st,tune-hs-dc-level = <2>;
+	st,enable-fs-rftime-tuning;
+	st,enable-hs-rftime-reduction;
+	st,trim-hs-current = <15>;
+	st,trim-hs-impedance = <1>;
+	st,tune-squelch-level = <3>;
+	st,tune-hs-rx-offset = <2>;
+	st,no-lsfs-sc;
 };
 
 &vrefbuf {
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] ARM: dts: stm32: tune the HS USB PHYs on stm32mp157c-ev1
  2021-10-25 15:17 [PATCH 0/2] tune the HS USB PHYs on stm32mp15 eval and disco boards Fabrice Gasnier
  2021-10-25 15:17 ` [PATCH 1/2] ARM: dts: stm32: tune the HS USB PHYs on stm32mp15xx-dkx Fabrice Gasnier
@ 2021-10-25 15:17 ` Fabrice Gasnier
  2021-11-25 15:42 ` [PATCH 0/2] tune the HS USB PHYs on stm32mp15 eval and disco boards Alexandre TORGUE
  2 siblings, 0 replies; 4+ messages in thread
From: Fabrice Gasnier @ 2021-10-25 15:17 UTC (permalink / raw)
  To: alexandre.torgue
  Cc: robh+dt, amelie.delaunay, linux-arm-kernel, devicetree,
	linux-kernel, linux-stm32, fabrice.gasnier

This patch adds phy tuning parameters for usbphyc port0 (USBH controller)
and usbphyc port1 (OTG controller).
Phy tuning parameters are used to adjust the phy settings to compensate
parasitics, which can be due to USB receptacle, routing, and ESD protection
component.

Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
---
 arch/arm/boot/dts/stm32mp157c-ev1.dts | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/arch/arm/boot/dts/stm32mp157c-ev1.dts b/arch/arm/boot/dts/stm32mp157c-ev1.dts
index 5c5b1dd..e222d2d 100644
--- a/arch/arm/boot/dts/stm32mp157c-ev1.dts
+++ b/arch/arm/boot/dts/stm32mp157c-ev1.dts
@@ -375,3 +375,25 @@
 &usbphyc {
 	status = "okay";
 };
+
+&usbphyc_port0 {
+	st,tune-hs-dc-level = <2>;
+	st,enable-fs-rftime-tuning;
+	st,enable-hs-rftime-reduction;
+	st,trim-hs-current = <15>;
+	st,trim-hs-impedance = <1>;
+	st,tune-squelch-level = <3>;
+	st,tune-hs-rx-offset = <2>;
+	st,no-lsfs-sc;
+};
+
+&usbphyc_port1 {
+	st,tune-hs-dc-level = <2>;
+	st,enable-fs-rftime-tuning;
+	st,enable-hs-rftime-reduction;
+	st,trim-hs-current = <15>;
+	st,trim-hs-impedance = <1>;
+	st,tune-squelch-level = <3>;
+	st,tune-hs-rx-offset = <2>;
+	st,no-lsfs-sc;
+};
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] tune the HS USB PHYs on stm32mp15 eval and disco boards
  2021-10-25 15:17 [PATCH 0/2] tune the HS USB PHYs on stm32mp15 eval and disco boards Fabrice Gasnier
  2021-10-25 15:17 ` [PATCH 1/2] ARM: dts: stm32: tune the HS USB PHYs on stm32mp15xx-dkx Fabrice Gasnier
  2021-10-25 15:17 ` [PATCH 2/2] ARM: dts: stm32: tune the HS USB PHYs on stm32mp157c-ev1 Fabrice Gasnier
@ 2021-11-25 15:42 ` Alexandre TORGUE
  2 siblings, 0 replies; 4+ messages in thread
From: Alexandre TORGUE @ 2021-11-25 15:42 UTC (permalink / raw)
  To: Fabrice Gasnier
  Cc: robh+dt, amelie.delaunay, linux-arm-kernel, devicetree,
	linux-kernel, linux-stm32

Hi Fabrice

On 10/25/21 5:17 PM, Fabrice Gasnier wrote:
> This series tune the HS USB PHYs on stm32mp15 eval and disco boards, now that
> dt-bindings and drivers have been merged in [1].
> 
> [1] https://lore.kernel.org/all/20211015161427.220784-1-amelie.delaunay@foss.st.com/
> 
> Fabrice Gasnier (2):
>    ARM: dts: stm32: tune the HS USB PHYs on stm32mp15xx-dkx
>    ARM: dts: stm32: tune the HS USB PHYs on stm32mp157c-ev1
> 
>   arch/arm/boot/dts/stm32mp157c-ev1.dts  | 22 ++++++++++++++++++++++
>   arch/arm/boot/dts/stm32mp15xx-dkx.dtsi | 16 ++++++++++++++++
>   2 files changed, 38 insertions(+)
> 

Series applied on stm32-next.

Thanks!
Alex

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-25 15:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-25 15:17 [PATCH 0/2] tune the HS USB PHYs on stm32mp15 eval and disco boards Fabrice Gasnier
2021-10-25 15:17 ` [PATCH 1/2] ARM: dts: stm32: tune the HS USB PHYs on stm32mp15xx-dkx Fabrice Gasnier
2021-10-25 15:17 ` [PATCH 2/2] ARM: dts: stm32: tune the HS USB PHYs on stm32mp157c-ev1 Fabrice Gasnier
2021-11-25 15:42 ` [PATCH 0/2] tune the HS USB PHYs on stm32mp15 eval and disco boards Alexandre TORGUE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).