Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751829AbdH1OWc (ORCPT ); Mon, 28 Aug 2017 10:22:32 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:55342 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751464AbdH1OVL (ORCPT ); Mon, 28 Aug 2017 10:21:11 -0400 From: Amelie Delaunay To: Greg Kroah-Hartman , Rob Herring , Mark Rutland , Russell King , Maxime Coquelin , Alexandre Torgue , John Youn CC: , , , , Benjamin Gaignard , Amelie Delaunay Subject: [PATCHv2 7/7] ARM: dts: stm32: Enable USB FS on stm32f746-disco Date: Mon, 28 Aug 2017 16:20:18 +0200 Message-ID: <1503930018-536-8-git-send-email-amelie.delaunay@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503930018-536-1-git-send-email-amelie.delaunay@st.com> References: <1503930018-536-1-git-send-email-amelie.delaunay@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.20.5] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-08-28_08:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 994 Lines: 40 This patch enables USB FS on stm32f746-disco (Host mode) with 5V VBUS enable. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32f746-disco.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/stm32f746-disco.dts b/arch/arm/boot/dts/stm32f746-disco.dts index 8f0c3d5..eeb430c 100644 --- a/arch/arm/boot/dts/stm32f746-disco.dts +++ b/arch/arm/boot/dts/stm32f746-disco.dts @@ -67,6 +67,14 @@ clocks = <&rcc 0 STM32F7_AHB1_CLOCK(OTGHSULPI)>; clock-names = "main_clk"; }; + + /* This turns on vbus for otg fs for host mode (dwc2) */ + vcc5v_otg_fs: vcc5v-otg-fs-regulator { + compatible = "regulator-fixed"; + gpio = <&gpiod 5 0>; + regulator-name = "vcc5_host1"; + regulator-always-on; + }; }; &clk_hse { @@ -87,3 +95,10 @@ pinctrl-names = "default"; status = "okay"; }; + +&usbotg_fs { + dr_mode = "host"; + pinctrl-0 = <&usbotg_fs_pins_a>; + pinctrl-names = "default"; + status = "okay"; +}; -- 2.7.4