From patchwork Mon Feb 23 07:55:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 44891 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CC59F21570 for ; Mon, 23 Feb 2015 07:55:29 +0000 (UTC) Received: by lbvp9 with SMTP id p9sf10901290lbv.1 for ; Sun, 22 Feb 2015 23:55:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=nhEsTczCHU7oQfah7x2ynK+KjZPZjDAcUq4kR8mKtU0=; b=Lf6hY+yagIo+frZWfMF6ead4BRL13dRoOXLgPxkshY3LIZNlZVPKgBlpF/pULfJw3J Dmj+5HCQZrHjghtnWgKEpgfacCLg4ETgQ2s3xwxF4HEZ8trrcqjm1yGS1vYsmdLysnA1 7N9/ejbk9QK7+2s6OgLMHcezzWy+htadLix5C0uwtD/WSeYxi36K6sK5HWjao+EaxQsm xIlRZy8gyath75+++5SfIUyyzZ6wDLipjcFp0qObsh+i+9XmyZNNVFHmc61JcIdFO4P8 JDqnPealSJDOwdJMsMfrHS8VGkfi6Z0WmUmFmE6ZXYgyjzp2S4tca2XiiKvaBwrrTnhp /RsA== X-Gm-Message-State: ALoCoQn0HlElVyszINcve05jZEHfLIlUf89o1fI2/u+pcKjCRaXGnv2pfTK+zDCV/qWVArE/TtPN X-Received: by 10.112.35.135 with SMTP id h7mr1067143lbj.23.1424678128814; Sun, 22 Feb 2015 23:55:28 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.208 with SMTP id l16ls460798laa.66.gmail; Sun, 22 Feb 2015 23:55:28 -0800 (PST) X-Received: by 10.152.3.42 with SMTP id 10mr8560163laz.84.1424678128606; Sun, 22 Feb 2015 23:55:28 -0800 (PST) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id v8si4310520laz.18.2015.02.22.23.55.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Feb 2015 23:55:28 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by lbdu10 with SMTP id u10so16802687lbd.7 for ; Sun, 22 Feb 2015 23:55:28 -0800 (PST) X-Received: by 10.112.162.167 with SMTP id yb7mr8423721lbb.76.1424678128459; Sun, 22 Feb 2015 23:55:28 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp1103744lbj; Sun, 22 Feb 2015 23:55:27 -0800 (PST) X-Received: by 10.68.203.226 with SMTP id kt2mr16595481pbc.141.1424678126748; Sun, 22 Feb 2015 23:55:26 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id no9si5559226pdb.6.2015.02.22.23.55.25; Sun, 22 Feb 2015 23:55:26 -0800 (PST) Received-SPF: none (google.com: linux-arm-msm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752343AbbBWHzR (ORCPT + 5 others); Mon, 23 Feb 2015 02:55:17 -0500 Received: from mail-wg0-f42.google.com ([74.125.82.42]:64429 "EHLO mail-wg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752345AbbBWHzO (ORCPT ); Mon, 23 Feb 2015 02:55:14 -0500 Received: by mail-wg0-f42.google.com with SMTP id n12so24019595wgh.1 for ; Sun, 22 Feb 2015 23:55:13 -0800 (PST) X-Received: by 10.180.14.7 with SMTP id l7mr18360173wic.40.1424678112810; Sun, 22 Feb 2015 23:55:12 -0800 (PST) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-2-96-88-56.as13285.net. [2.96.88.56]) by mx.google.com with ESMTPSA id bd8sm54369238wjc.21.2015.02.22.23.55.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Feb 2015 23:55:12 -0800 (PST) From: Srinivas Kandagatla To: Kumar Gala , linux-arm-msm@vger.kernel.org Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Russell King , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH 03/12] ARM: dts: apq8064: Add USB OTG support Date: Mon, 23 Feb 2015 07:55:08 +0000 Message-Id: <1424678108-13052-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <424678035-12862-1-git-send-email-srinivas.kandagatla@linaro.org> References: <424678035-12862-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srinivas.kandagatla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch adds USB OTG support on USB1 of APQ8064 SOC. Tested on IFC6410 with ethernet gadget. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 22 ++++++++++++++++++++ arch/arm/boot/dts/qcom-apq8064.dtsi | 32 ++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index 40657a4..1723cdf 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -61,12 +61,25 @@ regulator-max-microvolt = <3300000>; }; + pm8921_l4: pm8921-l4 { + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1800000>; + }; + pm8921_l23: pm8921-l23 { regulator-min-microvolt = <1700000>; regulator-max-microvolt = <1900000>; }; }; + /* OTG */ + usb1_phy: phy@12500000 { + status = "okay"; + vddcx-supply = <&pm8921_s3>; + v3p3-supply = <&pm8921_l3>; + v1p8-supply = <&pm8921_l4>; + }; + usb3_phy: phy@12520000 { status = "okay"; vddcx-supply = <&pm8921_s3>; @@ -81,6 +94,15 @@ v1p8-supply = <&pm8921_l23>; }; + gadget1: gadget@12500000 { + status = "okay"; + }; + + /* OTG */ + usb1: usb@12500000 { + status = "okay"; + }; + usb3: usb@12520000 { status = "okay"; }; diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi index e33eb03..c251c72 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -488,6 +488,21 @@ }; }; + usb1_phy: phy@12500000 { + compatible = "qcom,usb-otg-ci"; + reg = <0x12500000 0x400>; + interrupts = <0 100 IRQ_TYPE_NONE>; + status = "disabled"; + dr_mode = "host"; + + clocks = <&gcc USB_HS1_XCVR_CLK>, + <&gcc USB_HS1_H_CLK>; + clock-names = "core", "iface"; + + resets = <&gcc USB_HS1_RESET>; + reset-names = "link"; + }; + usb3_phy: phy@12520000 { compatible = "qcom,usb-otg-ci"; reg = <0x12520000 0x400>; @@ -518,6 +533,23 @@ reset-names = "link"; }; + gadget1: gadget@12500000 { + compatible = "qcom,ci-hdrc"; + reg = <0x12500000 0x400>; + status = "disabled"; + dr_mode = "peripheral"; + interrupts = <0 100 IRQ_TYPE_NONE>; + usb-phy = <&usb1_phy>; + }; + + usb1: usb@12500000 { + compatible = "qcom,ehci-host"; + reg = <0x12500000 0x400>; + interrupts = <0 100 IRQ_TYPE_NONE>; + status = "disabled"; + usb-phy = <&usb1_phy>; + }; + usb3: usb@12520000 { compatible = "qcom,ehci-host"; reg = <0x12520000 0x400>;