From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755237AbdJPQR3 (ORCPT ); Mon, 16 Oct 2017 12:17:29 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:58542 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755164AbdJPQRV (ORCPT ); Mon, 16 Oct 2017 12:17:21 -0400 Subject: Re: [PATCHv2 0/7] Add support for USB OTG on STM32F7 To: Amelie Delaunay , Greg Kroah-Hartman , Rob Herring , Mark Rutland , Russell King , Maxime Coquelin , John Youn CC: , , , , Benjamin Gaignard References: <1503930018-536-1-git-send-email-amelie.delaunay@st.com> From: Alexandre Torgue Message-ID: Date: Mon, 16 Oct 2017 18:16:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <1503930018-536-1-git-send-email-amelie.delaunay@st.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-10-16_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Amélie, On 08/28/2017 04:20 PM, Amelie Delaunay wrote: > The STM32F7 MCU family embeds two DWC2 USB OTG cores. One core is USB > OTG FS and the other is USB OTG HS. The USB FS core only works with its > internal phy whilst the USB HS core can work in HS with external ULPI phy > or in FS/LS with the on-chip FS phy. > > Amelie Delaunay (7): > dt-bindings: usb: Document the STM32F7 DWC2 USB OTG HS core binding > usb: dwc2: add support for STM32F7 USB OTG HS > ARM: dts: stm32: Add USB HS support for STM32F746 MCU > ARM: dts: stm32: Enable USB HS on stm32746g-eval > ARM: dts: stm32: Enable USB HS on stm32f746-disco > ARM: dts: stm32: Add USB FS support for STM32F746 MCU > ARM: dts: stm32: Enable USB FS on stm32f746-disco > > Documentation/devicetree/bindings/usb/dwc2.txt | 2 + > arch/arm/boot/dts/stm32746g-eval.dts | 16 ++++++ > arch/arm/boot/dts/stm32f746-disco.dts | 30 ++++++++++ > arch/arm/boot/dts/stm32f746.dtsi | 80 ++++++++++++++++++++++++++ > drivers/usb/dwc2/params.c | 11 ++++ > 5 files changed, 139 insertions(+) > Patches 3 to 7 applied on stm32-dt-for-v4.15 branch. Currently USB stack is not enabled by default (and will not be). If you plan to use USB don't forget to create a reserved memory region for DMA pool (as DMA and caches are not friends on cortex-M7) in devicetree. Reserved memory region for DMA pool support will be added in stm32F7 and stm32H7 devicetree as soon series "ARM: NOMMU: MPU updates" from Vladimir Murzin will be merged. Regards Alex