LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 0/3] Add STM32 USBPHYC to stm32mp157c
@ 2018-04-19 14:59 Amelie Delaunay
  2018-04-19 14:59 ` [PATCH 1/3] ARM: dts: stm32: add USBPHYC support " Amelie Delaunay
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Amelie Delaunay @ 2018-04-19 14:59 UTC (permalink / raw)
  To: Maxime Coquelin, Alexandre Torgue, Rob Herring, Mark Rutland
  Cc: linux-arm-kernel, devicetree, linux-kernel, Amelie Delaunay

This series adds support for STM32 USBPHYC (USB PHY Controller) to
stm32mp157c SoC and enables it on stm32mp157c-ev1 board.

Amelie Delaunay (3):
  ARM: dts: stm32: add USBPHYC support to stm32mp157c
  ARM: dts: stm32: add supplies to usbphyc ports on stm32mp157c-ed1
  ARM: dts: stm32: enable USBPHYC on stm32mp157c-ev1

 arch/arm/boot/dts/stm32mp157c-ed1.dts | 12 ++++++++++++
 arch/arm/boot/dts/stm32mp157c-ev1.dts |  5 +++++
 arch/arm/boot/dts/stm32mp157c.dtsi    | 20 ++++++++++++++++++++
 3 files changed, 37 insertions(+)

-- 
2.7.4

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

* [PATCH 1/3] ARM: dts: stm32: add USBPHYC support to stm32mp157c
  2018-04-19 14:59 [PATCH 0/3] Add STM32 USBPHYC to stm32mp157c Amelie Delaunay
@ 2018-04-19 14:59 ` Amelie Delaunay
  2018-04-19 14:59 ` [PATCH 2/3] ARM: dts: stm32: add supplies to usbphyc ports on stm32mp157c-ed1 Amelie Delaunay
  2018-04-19 14:59 ` [PATCH 3/3] ARM: dts: stm32: enable USBPHYC on stm32mp157c-ev1 Amelie Delaunay
  2 siblings, 0 replies; 4+ messages in thread
From: Amelie Delaunay @ 2018-04-19 14:59 UTC (permalink / raw)
  To: Maxime Coquelin, Alexandre Torgue, Rob Herring, Mark Rutland
  Cc: linux-arm-kernel, devicetree, linux-kernel, Amelie Delaunay

Add support for USBPHYC (USB PHY Controller) to STM32MP157C SoC.
It manages two usb2 ports.

Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
---
 arch/arm/boot/dts/stm32mp157c.dtsi | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi
index bc3eddc..c64cac1 100644
--- a/arch/arm/boot/dts/stm32mp157c.dtsi
+++ b/arch/arm/boot/dts/stm32mp157c.dtsi
@@ -167,6 +167,26 @@
 			#reset-cells = <1>;
 		};
 
+		usbphyc: usbphyc@5a006000 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			compatible = "st,stm32mp1-usbphyc";
+			reg = <0x5a006000 0x1000>;
+			clocks = <&rcc USBPHY_K>;
+			resets = <&rcc USBPHY_R>;
+			status = "disabled";
+
+			usbphyc_port0: usb-phy@0 {
+				#phy-cells = <0>;
+				reg = <0>;
+			};
+
+			usbphyc_port1: usb-phy@1 {
+				#phy-cells = <1>;
+				reg = <1>;
+			};
+		};
+
 		usart1: serial@5c000000 {
 			compatible = "st,stm32h7-uart";
 			reg = <0x5c000000 0x400>;
-- 
2.7.4

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

* [PATCH 2/3] ARM: dts: stm32: add supplies to usbphyc ports on stm32mp157c-ed1
  2018-04-19 14:59 [PATCH 0/3] Add STM32 USBPHYC to stm32mp157c Amelie Delaunay
  2018-04-19 14:59 ` [PATCH 1/3] ARM: dts: stm32: add USBPHYC support " Amelie Delaunay
@ 2018-04-19 14:59 ` Amelie Delaunay
  2018-04-19 14:59 ` [PATCH 3/3] ARM: dts: stm32: enable USBPHYC on stm32mp157c-ev1 Amelie Delaunay
  2 siblings, 0 replies; 4+ messages in thread
From: Amelie Delaunay @ 2018-04-19 14:59 UTC (permalink / raw)
  To: Maxime Coquelin, Alexandre Torgue, Rob Herring, Mark Rutland
  Cc: linux-arm-kernel, devicetree, linux-kernel, Amelie Delaunay

USBPHYC ports require 3 supplies: 3v3, 1v1 and 1v8.
This patch adds the corresponding properties on stm32mp157c-ed1 board.

Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
---
 arch/arm/boot/dts/stm32mp157c-ed1.dts | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/stm32mp157c-ed1.dts b/arch/arm/boot/dts/stm32mp157c-ed1.dts
index 9f90337a..78b2686 100644
--- a/arch/arm/boot/dts/stm32mp157c-ed1.dts
+++ b/arch/arm/boot/dts/stm32mp157c-ed1.dts
@@ -30,3 +30,15 @@
 	pinctrl-0 = <&uart4_pins_a>;
 	status = "okay";
 };
+
+&usbphyc_port0 {
+	phy-supply = <&vdd_usb>;
+	vdda1v1-supply = <&reg11>;
+	vdda1v8-supply = <&reg18>;
+};
+
+&usbphyc_port1 {
+	phy-supply = <&vdd_usb>;
+	vdda1v1-supply = <&reg11>;
+	vdda1v8-supply = <&reg18>;
+};
-- 
2.7.4

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

* [PATCH 3/3] ARM: dts: stm32: enable USBPHYC on stm32mp157c-ev1
  2018-04-19 14:59 [PATCH 0/3] Add STM32 USBPHYC to stm32mp157c Amelie Delaunay
  2018-04-19 14:59 ` [PATCH 1/3] ARM: dts: stm32: add USBPHYC support " Amelie Delaunay
  2018-04-19 14:59 ` [PATCH 2/3] ARM: dts: stm32: add supplies to usbphyc ports on stm32mp157c-ed1 Amelie Delaunay
@ 2018-04-19 14:59 ` Amelie Delaunay
  2 siblings, 0 replies; 4+ messages in thread
From: Amelie Delaunay @ 2018-04-19 14:59 UTC (permalink / raw)
  To: Maxime Coquelin, Alexandre Torgue, Rob Herring, Mark Rutland
  Cc: linux-arm-kernel, devicetree, linux-kernel, Amelie Delaunay

This patch enables USBPHYC (USB PHY Controller) on stm32mp157c-ev1.
This enables the two usbphyc usb2 ports.

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

diff --git a/arch/arm/boot/dts/stm32mp157c-ev1.dts b/arch/arm/boot/dts/stm32mp157c-ev1.dts
index 57e6dbc..070cdad 100644
--- a/arch/arm/boot/dts/stm32mp157c-ev1.dts
+++ b/arch/arm/boot/dts/stm32mp157c-ev1.dts
@@ -19,3 +19,8 @@
 		serial0 = &uart4;
 	};
 };
+
+&usbphyc {
+	status = "okay";
+};
+
-- 
2.7.4

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

end of thread, other threads:[~2018-04-19 15:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-19 14:59 [PATCH 0/3] Add STM32 USBPHYC to stm32mp157c Amelie Delaunay
2018-04-19 14:59 ` [PATCH 1/3] ARM: dts: stm32: add USBPHYC support " Amelie Delaunay
2018-04-19 14:59 ` [PATCH 2/3] ARM: dts: stm32: add supplies to usbphyc ports on stm32mp157c-ed1 Amelie Delaunay
2018-04-19 14:59 ` [PATCH 3/3] ARM: dts: stm32: enable USBPHYC on stm32mp157c-ev1 Amelie Delaunay

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).