* [PATCH v2 0/4] Add STM32 USBPHYC to stm32mp157c
@ 2018-04-24 9:41 Amelie Delaunay
2018-04-24 9:41 ` [PATCH v2 1/4] ARM: dts: stm32: add USBPHYC support " Amelie Delaunay
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Amelie Delaunay @ 2018-04-24 9:41 UTC (permalink / raw)
To: Maxime Coquelin, Alexandre Torgue, Rob Herring, Mark Rutland,
Russell King, Arnd Bergmann, Kishon Vijay Abraham I
Cc: linux-arm-kernel, devicetree, linux-kernel, Amelie Delaunay
This series adds support for STM32 USB PHY Controller (USBPHYC) to
stm32mp157c SoC and enables it on stm32mp157c-ev1 board.
---
Changes in v2:
* Add reset dt-bindings include
* Add fixed regulators
* Enable CONFIG_PHY_STM32_USBPHYC in multi_v7_defconfig
Amelie Delaunay (4):
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
ARM: multi_v7_defconfig: enable STM32 USB PHY Controller (USBPHYC)
arch/arm/boot/dts/stm32mp157c-ed1.dts | 36 +++++++++++++++++++++++++++++++++++
arch/arm/boot/dts/stm32mp157c-ev1.dts | 5 +++++
arch/arm/boot/dts/stm32mp157c.dtsi | 21 ++++++++++++++++++++
arch/arm/configs/multi_v7_defconfig | 1 +
4 files changed, 63 insertions(+)
--
2.7.4
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v2 1/4] ARM: dts: stm32: add USBPHYC support to stm32mp157c
2018-04-24 9:41 [PATCH v2 0/4] Add STM32 USBPHYC to stm32mp157c Amelie Delaunay
@ 2018-04-24 9:41 ` Amelie Delaunay
2018-04-24 9:41 ` [PATCH v2 2/4] ARM: dts: stm32: add supplies to usbphyc ports on stm32mp157c-ed1 Amelie Delaunay
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Amelie Delaunay @ 2018-04-24 9:41 UTC (permalink / raw)
To: Maxime Coquelin, Alexandre Torgue, Rob Herring, Mark Rutland,
Russell King, Arnd Bergmann, Kishon Vijay Abraham I
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 | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi
index bc3eddc..547b18e 100644
--- a/arch/arm/boot/dts/stm32mp157c.dtsi
+++ b/arch/arm/boot/dts/stm32mp157c.dtsi
@@ -5,6 +5,7 @@
*/
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/stm32mp1-clks.h>
+#include <dt-bindings/reset/stm32mp1-resets.h>
/ {
#address-cells = <1>;
@@ -167,6 +168,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 related [flat|nested] 6+ messages in thread
* [PATCH v2 2/4] ARM: dts: stm32: add supplies to usbphyc ports on stm32mp157c-ed1
2018-04-24 9:41 [PATCH v2 0/4] Add STM32 USBPHYC to stm32mp157c Amelie Delaunay
2018-04-24 9:41 ` [PATCH v2 1/4] ARM: dts: stm32: add USBPHYC support " Amelie Delaunay
@ 2018-04-24 9:41 ` Amelie Delaunay
2018-04-24 9:41 ` [PATCH v2 3/4] ARM: dts: stm32: enable USBPHYC on stm32mp157c-ev1 Amelie Delaunay
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Amelie Delaunay @ 2018-04-24 9:41 UTC (permalink / raw)
To: Maxime Coquelin, Alexandre Torgue, Rob Herring, Mark Rutland,
Russell King, Arnd Bergmann, Kishon Vijay Abraham I
Cc: linux-arm-kernel, devicetree, linux-kernel, Amelie Delaunay
USBPHYC ports require 3 supplies: 3v3, 1v1 and 1v8.
This patch adds the corresponding properties to usbphyc ports on
stm32mp157c-ed1 board.
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
---
arch/arm/boot/dts/stm32mp157c-ed1.dts | 36 +++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/arch/arm/boot/dts/stm32mp157c-ed1.dts b/arch/arm/boot/dts/stm32mp157c-ed1.dts
index 9f90337a..aa52640 100644
--- a/arch/arm/boot/dts/stm32mp157c-ed1.dts
+++ b/arch/arm/boot/dts/stm32mp157c-ed1.dts
@@ -23,6 +23,30 @@
aliases {
serial0 = &uart4;
};
+
+ reg11: reg11 {
+ compatible = "regulator-fixed";
+ regulator-name = "reg11";
+ regulator-min-microvolt = <1100000>;
+ regulator-max-microvolt = <1100000>;
+ regulator-always-on;
+ };
+
+ reg18: reg18 {
+ compatible = "regulator-fixed";
+ regulator-name = "reg18";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-always-on;
+ };
+
+ vdd_usb: vdd_usb {
+ compatible = "regulator-fixed";
+ regulator-name = "vdd_usb";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-always-on;
+ };
};
&uart4 {
@@ -30,3 +54,15 @@
pinctrl-0 = <&uart4_pins_a>;
status = "okay";
};
+
+&usbphyc_port0 {
+ phy-supply = <&vdd_usb>;
+ vdda1v1-supply = <®11>;
+ vdda1v8-supply = <®18>;
+};
+
+&usbphyc_port1 {
+ phy-supply = <&vdd_usb>;
+ vdda1v1-supply = <®11>;
+ vdda1v8-supply = <®18>;
+};
--
2.7.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 3/4] ARM: dts: stm32: enable USBPHYC on stm32mp157c-ev1
2018-04-24 9:41 [PATCH v2 0/4] Add STM32 USBPHYC to stm32mp157c Amelie Delaunay
2018-04-24 9:41 ` [PATCH v2 1/4] ARM: dts: stm32: add USBPHYC support " Amelie Delaunay
2018-04-24 9:41 ` [PATCH v2 2/4] ARM: dts: stm32: add supplies to usbphyc ports on stm32mp157c-ed1 Amelie Delaunay
@ 2018-04-24 9:41 ` Amelie Delaunay
2018-04-24 9:41 ` [PATCH v2 4/4] ARM: multi_v7_defconfig: enable STM32 USB PHY Controller (USBPHYC) Amelie Delaunay
2018-05-03 7:49 ` [PATCH v2 0/4] Add STM32 USBPHYC to stm32mp157c Alexandre Torgue
4 siblings, 0 replies; 6+ messages in thread
From: Amelie Delaunay @ 2018-04-24 9:41 UTC (permalink / raw)
To: Maxime Coquelin, Alexandre Torgue, Rob Herring, Mark Rutland,
Russell King, Arnd Bergmann, Kishon Vijay Abraham I
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 related [flat|nested] 6+ messages in thread
* [PATCH v2 4/4] ARM: multi_v7_defconfig: enable STM32 USB PHY Controller (USBPHYC)
2018-04-24 9:41 [PATCH v2 0/4] Add STM32 USBPHYC to stm32mp157c Amelie Delaunay
` (2 preceding siblings ...)
2018-04-24 9:41 ` [PATCH v2 3/4] ARM: dts: stm32: enable USBPHYC on stm32mp157c-ev1 Amelie Delaunay
@ 2018-04-24 9:41 ` Amelie Delaunay
2018-05-03 7:49 ` [PATCH v2 0/4] Add STM32 USBPHYC to stm32mp157c Alexandre Torgue
4 siblings, 0 replies; 6+ messages in thread
From: Amelie Delaunay @ 2018-04-24 9:41 UTC (permalink / raw)
To: Maxime Coquelin, Alexandre Torgue, Rob Herring, Mark Rutland,
Russell King, Arnd Bergmann, Kishon Vijay Abraham I
Cc: linux-arm-kernel, devicetree, linux-kernel, Amelie Delaunay
Enable the STM32 USB PHY Controller (USBPHYC) driver, implemented on
STM32MP1 SoC.
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
---
arch/arm/configs/multi_v7_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig
index e6b3c96..e78b43f 100644
--- a/arch/arm/configs/multi_v7_defconfig
+++ b/arch/arm/configs/multi_v7_defconfig
@@ -972,6 +972,7 @@ CONFIG_PHY_QCOM_APQ8064_SATA=m
CONFIG_PHY_MIPHY28LP=y
CONFIG_PHY_RCAR_GEN2=m
CONFIG_PHY_STIH407_USB=y
+CONFIG_PHY_STM32_USBPHYC=y
CONFIG_PHY_SUN4I_USB=y
CONFIG_PHY_SUN9I_USB=y
CONFIG_PHY_SAMSUNG_USB2=m
--
2.7.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v2 0/4] Add STM32 USBPHYC to stm32mp157c
2018-04-24 9:41 [PATCH v2 0/4] Add STM32 USBPHYC to stm32mp157c Amelie Delaunay
` (3 preceding siblings ...)
2018-04-24 9:41 ` [PATCH v2 4/4] ARM: multi_v7_defconfig: enable STM32 USB PHY Controller (USBPHYC) Amelie Delaunay
@ 2018-05-03 7:49 ` Alexandre Torgue
4 siblings, 0 replies; 6+ messages in thread
From: Alexandre Torgue @ 2018-05-03 7:49 UTC (permalink / raw)
To: Amelie Delaunay, Maxime Coquelin, Rob Herring, Mark Rutland,
Russell King, Arnd Bergmann, Kishon Vijay Abraham I
Cc: linux-arm-kernel, devicetree, linux-kernel
Hi Amélie,
On 04/24/2018 11:41 AM, Amelie Delaunay wrote:
> This series adds support for STM32 USB PHY Controller (USBPHYC) to
> stm32mp157c SoC and enables it on stm32mp157c-ev1 board.
>
> ---
> Changes in v2:
> * Add reset dt-bindings include
> * Add fixed regulators
> * Enable CONFIG_PHY_STM32_USBPHYC in multi_v7_defconfig
>
> Amelie Delaunay (4):
> 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
> ARM: multi_v7_defconfig: enable STM32 USB PHY Controller (USBPHYC)
>
> arch/arm/boot/dts/stm32mp157c-ed1.dts | 36 +++++++++++++++++++++++++++++++++++
> arch/arm/boot/dts/stm32mp157c-ev1.dts | 5 +++++
> arch/arm/boot/dts/stm32mp157c.dtsi | 21 ++++++++++++++++++++
> arch/arm/configs/multi_v7_defconfig | 1 +
> 4 files changed, 63 insertions(+)
>
Series applied on stm32-next. To avoid DTC warnings using W=12, I just
renamed "vdd_usb" node by "vdd-usb".
Regards
Alex
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-05-03 7:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-24 9:41 [PATCH v2 0/4] Add STM32 USBPHYC to stm32mp157c Amelie Delaunay
2018-04-24 9:41 ` [PATCH v2 1/4] ARM: dts: stm32: add USBPHYC support " Amelie Delaunay
2018-04-24 9:41 ` [PATCH v2 2/4] ARM: dts: stm32: add supplies to usbphyc ports on stm32mp157c-ed1 Amelie Delaunay
2018-04-24 9:41 ` [PATCH v2 3/4] ARM: dts: stm32: enable USBPHYC on stm32mp157c-ev1 Amelie Delaunay
2018-04-24 9:41 ` [PATCH v2 4/4] ARM: multi_v7_defconfig: enable STM32 USB PHY Controller (USBPHYC) Amelie Delaunay
2018-05-03 7:49 ` [PATCH v2 0/4] Add STM32 USBPHYC to stm32mp157c 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).