* [PATCH 0/2] Add USB OTG HS support on stm32mp157c
@ 2018-05-17 15:47 Amelie Delaunay
2018-05-17 15:47 ` [PATCH 1/2] ARM: dts: stm32: add USB OTG HS support for stm32mp157c SoC Amelie Delaunay
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Amelie Delaunay @ 2018-05-17 15:47 UTC (permalink / raw)
To: Maxime Coquelin, Alexandre Torgue, Rob Herring, Mark Rutland
Cc: linux-arm-kernel, devicetree, linux-kernel, Amelie Delaunay
This patchset adds support for USB OTG HS on stm32mp157c SoC.
It also enables USB OTG HS on stm32mp157c-ev1 board in Peripheral mode.
Amelie Delaunay (2):
ARM: dts: stm32: add USB OTG HS support for stm32mp157c SoC
ARM: dts: stm32: enable USB OTG HS on stm32mp157c-ev1
arch/arm/boot/dts/stm32mp157c-ev1.dts | 7 +++++++
arch/arm/boot/dts/stm32mp157c.dtsi | 15 +++++++++++++++
2 files changed, 22 insertions(+)
--
2.7.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] ARM: dts: stm32: add USB OTG HS support for stm32mp157c SoC
2018-05-17 15:47 [PATCH 0/2] Add USB OTG HS support on stm32mp157c Amelie Delaunay
@ 2018-05-17 15:47 ` Amelie Delaunay
2018-05-17 15:47 ` [PATCH 2/2] ARM: dts: stm32: enable USB OTG HS on stm32mp157c-ev1 Amelie Delaunay
2018-06-26 9:27 ` [PATCH 0/2] Add USB OTG HS support on stm32mp157c Alexandre Torgue
2 siblings, 0 replies; 4+ messages in thread
From: Amelie Delaunay @ 2018-05-17 15:47 UTC (permalink / raw)
To: Maxime Coquelin, Alexandre Torgue, Rob Herring, Mark Rutland
Cc: linux-arm-kernel, devicetree, linux-kernel, Amelie Delaunay
This patch adds support for USB OTG HS on STM32MP157C SoC.
USB OTG HS controller is based on DWC2 controller.
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
---
arch/arm/boot/dts/stm32mp157c.dtsi | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi
index b66f673..6c3815f 100644
--- a/arch/arm/boot/dts/stm32mp157c.dtsi
+++ b/arch/arm/boot/dts/stm32mp157c.dtsi
@@ -600,6 +600,21 @@
clocks = <&rcc DMAMUX>;
};
+ usbotg_hs: usb-otg@49000000 {
+ compatible = "snps,dwc2";
+ reg = <0x49000000 0x10000>;
+ clocks = <&rcc USBO_K>;
+ clock-names = "otg";
+ resets = <&rcc USBO_R>;
+ reset-names = "dwc2";
+ interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
+ g-rx-fifo-size = <256>;
+ g-np-tx-fifo-size = <32>;
+ g-tx-fifo-size = <128 128 64 64 64 64 32 32>;
+ dr_mode = "otg";
+ status = "disabled";
+ };
+
rcc: rcc@50000000 {
compatible = "st,stm32mp1-rcc", "syscon";
reg = <0x50000000 0x1000>;
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] ARM: dts: stm32: enable USB OTG HS on stm32mp157c-ev1
2018-05-17 15:47 [PATCH 0/2] Add USB OTG HS support on stm32mp157c Amelie Delaunay
2018-05-17 15:47 ` [PATCH 1/2] ARM: dts: stm32: add USB OTG HS support for stm32mp157c SoC Amelie Delaunay
@ 2018-05-17 15:47 ` Amelie Delaunay
2018-06-26 9:27 ` [PATCH 0/2] Add USB OTG HS support on stm32mp157c Alexandre Torgue
2 siblings, 0 replies; 4+ messages in thread
From: Amelie Delaunay @ 2018-05-17 15:47 UTC (permalink / raw)
To: Maxime Coquelin, Alexandre Torgue, Rob Herring, Mark Rutland
Cc: linux-arm-kernel, devicetree, linux-kernel, Amelie Delaunay
This patch enables USB OTG HS on stm32mp157c-ev1 in Peripheral mode.
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
---
arch/arm/boot/dts/stm32mp157c-ev1.dts | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/boot/dts/stm32mp157c-ev1.dts b/arch/arm/boot/dts/stm32mp157c-ev1.dts
index 9382d80..5a0b77e 100644
--- a/arch/arm/boot/dts/stm32mp157c-ev1.dts
+++ b/arch/arm/boot/dts/stm32mp157c-ev1.dts
@@ -103,6 +103,13 @@
};
};
+&usbotg_hs {
+ dr_mode = "peripheral";
+ phys = <&usbphyc_port1 0>;
+ phy-names = "usb2-phy";
+ status = "okay";
+};
+
&usbphyc {
status = "okay";
};
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] Add USB OTG HS support on stm32mp157c
2018-05-17 15:47 [PATCH 0/2] Add USB OTG HS support on stm32mp157c Amelie Delaunay
2018-05-17 15:47 ` [PATCH 1/2] ARM: dts: stm32: add USB OTG HS support for stm32mp157c SoC Amelie Delaunay
2018-05-17 15:47 ` [PATCH 2/2] ARM: dts: stm32: enable USB OTG HS on stm32mp157c-ev1 Amelie Delaunay
@ 2018-06-26 9:27 ` Alexandre Torgue
2 siblings, 0 replies; 4+ messages in thread
From: Alexandre Torgue @ 2018-06-26 9:27 UTC (permalink / raw)
To: Amelie Delaunay, Maxime Coquelin, Rob Herring, Mark Rutland
Cc: linux-arm-kernel, devicetree, linux-kernel
Hi Amélie
On 05/17/2018 05:47 PM, Amelie Delaunay wrote:
> This patchset adds support for USB OTG HS on stm32mp157c SoC.
> It also enables USB OTG HS on stm32mp157c-ev1 board in Peripheral mode.
>
> Amelie Delaunay (2):
> ARM: dts: stm32: add USB OTG HS support for stm32mp157c SoC
> ARM: dts: stm32: enable USB OTG HS on stm32mp157c-ev1
>
> arch/arm/boot/dts/stm32mp157c-ev1.dts | 7 +++++++
> arch/arm/boot/dts/stm32mp157c.dtsi | 15 +++++++++++++++
> 2 files changed, 22 insertions(+)
>
Series applied on stm32-next.
Regards
Alex
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-06-26 9:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-17 15:47 [PATCH 0/2] Add USB OTG HS support on stm32mp157c Amelie Delaunay
2018-05-17 15:47 ` [PATCH 1/2] ARM: dts: stm32: add USB OTG HS support for stm32mp157c SoC Amelie Delaunay
2018-05-17 15:47 ` [PATCH 2/2] ARM: dts: stm32: enable USB OTG HS on stm32mp157c-ev1 Amelie Delaunay
2018-06-26 9:27 ` [PATCH 0/2] Add USB OTG HS support on 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).