From patchwork Mon Feb 29 10:34:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Coquelin X-Patchwork-Id: 8450991 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 475C7C0553 for ; Mon, 29 Feb 2016 10:37:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6FF442025A for ; Mon, 29 Feb 2016 10:37:19 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 91AAD20254 for ; Mon, 29 Feb 2016 10:37:18 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aaLB3-00008Q-7i; Mon, 29 Feb 2016 10:35:45 +0000 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aaLAx-0008L2-N2 for linux-arm-kernel@lists.infradead.org; Mon, 29 Feb 2016 10:35:40 +0000 Received: by mail-wm0-x234.google.com with SMTP id p65so62114514wmp.1 for ; Mon, 29 Feb 2016 02:35:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=sYKhqOpO8ZB4sqNLB0rKYGlE3SRd7/5tz8VK22EKFmI=; b=LUhraQ5IRv3hZT0N6tddqFUbV9ODSvqosvn5vA7qkTn6iNnPeTdys2KAgoAPBAXjC8 fyBwPo4MATHqBQiDum0HpmSQ6qSou0A0uRV5t5c1vK6ZIMUwNzD+cAJ4lzUFH0zmUMvm b7oosi5H1MsH/3wotkFFEL2l1hhbvYhqdklcCJgTFMGQ+xLPCLOguxxXw+dnfbWOSzOD EKinDqrNh/RxyZgrZVc8W0acTZfeeSl1k578id7eG9NJcmEgC9+ukbuLIswMxslavHoT zaEblTEZRBoK2PRDf/fw5tsUkawRLc25fK3yKDJwe+def+8ClGkp20a2ER5TkpnH7+v0 aS3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=sYKhqOpO8ZB4sqNLB0rKYGlE3SRd7/5tz8VK22EKFmI=; b=MUNHj9599s7UCzEOALMlPZy4PUuHBe27JI/vcFYMeH/nl/l3nMFhHYKCJjk+4Kwfo0 2cNWJ+Mdy7zzOzaLk2TmVuWjUGbH/rQoa7j8SwEI3HfKZtJbcYJ/Zi1LY2jtzbA3Tadf 4B0kuWdTiFcQm9PIMV8bGJWhdE1K0biF8i9MxtM4R3qDeuCXUbv+YH2yOu03x1scTo9b RCnylKr7SL+1TYuwvJ89t5v99jGVcuVrhzIA7SGsYvxg0NDAyOIfOl/Pk7E1FesoXpVM XwMCiiYGTze0t8y3nRD0ipnCmAY+74iuqAjNdLrPrxmV5VToV4Z7LGtz2KPSX6cIS55V Bwsg== X-Gm-Message-State: AD7BkJL5nN68CcL/Pxk4kbUokPJbFLAAUVAcx3bq9427RpsX+Xcs5ngN/lkh8wn0h0z+Og== X-Received: by 10.194.61.131 with SMTP id p3mr13784197wjr.159.1456742117418; Mon, 29 Feb 2016 02:35:17 -0800 (PST) Received: from lmecul0520.st.com. (180.20.90.92.rev.sfr.net. [92.90.20.180]) by smtp.gmail.com with ESMTPSA id w17sm15689865wmw.5.2016.02.29.02.34.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Feb 2016 02:35:16 -0800 (PST) From: Maxime Coquelin To: Arnd Bergmann , olof@lixom.net, khilman@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: dts: stm32429i-eval: Add USB HS host mode support Date: Mon, 29 Feb 2016 11:34:39 +0100 Message-Id: <1456742079-8648-1-git-send-email-mcoquelin.stm32@gmail.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160229_023540_045771_BA0038B9 X-CRM114-Status: GOOD ( 11.02 ) X-Spam-Score: -2.5 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, lee.jones@linaro.org, linux-kernel@vger.kernel.org, bruherrera@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds USB HS support in host mode only. This port supports OTG mode, but the device more is not working properly as of now. Once the device mode fixed, the node will be updated to support OTG. Signed-off-by: Maxime Coquelin --- arch/arm/boot/dts/stm32429i-eval.dts | 16 ++++++++++++++++ arch/arm/boot/dts/stm32f429.dtsi | 30 ++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts index 1ae57fa..76a10d3 100644 --- a/arch/arm/boot/dts/stm32429i-eval.dts +++ b/arch/arm/boot/dts/stm32429i-eval.dts @@ -81,6 +81,13 @@ gpios = <&gpiog 12 1>; }; }; + + usbotg_hs_phy: usbphy { + #phy-cells = <0>; + compatible = "usb-nop-xceiv"; + clocks = <&rcc 0 30>; + clock-names = "main_clk"; + }; }; &clk_hse { @@ -92,3 +99,12 @@ pinctrl-names = "default"; status = "okay"; }; + +&usbotg_hs { + dr_mode = "host"; + phys = <&usbotg_hs_phy>; + phy-names = "usb2-phy"; + pinctrl-0 = <&usbotg_hs_pins_a>; + pinctrl-names = "default"; + status = "okay"; +}; diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index 598362e..ee82756 100644 --- a/arch/arm/boot/dts/stm32f429.dtsi +++ b/arch/arm/boot/dts/stm32f429.dtsi @@ -278,6 +278,26 @@ bias-disable; }; }; + + usbotg_hs_pins_a: usbotg_hs@0 { + pins { + pinmux = , + , + , + , + , + , + , + , + , + , + , + ; + bias-disable; + drive-push-pull; + slew-rate = <2>; + }; + }; }; rcc: rcc@40023810 { @@ -318,6 +338,16 @@ st,mem2mem; }; + usbotg_hs: usb@40040000 { + compatible = "snps,dwc2"; + dma-ranges; + reg = <0x40040000 0x40000>; + interrupts = <77>; + clocks = <&rcc 0 29>; + clock-names = "otg"; + status = "disabled"; + }; + rng: rng@50060800 { compatible = "st,stm32-rng"; reg = <0x50060800 0x400>;