From patchwork Fri Apr 10 12:34:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 47029 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f199.google.com (mail-ob0-f199.google.com [209.85.214.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D3A2F218DA for ; Fri, 10 Apr 2015 12:34:44 +0000 (UTC) Received: by obbeb7 with SMTP id eb7sf26170024obb.0 for ; Fri, 10 Apr 2015 05:34:44 -0700 (PDT) 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=hmq31TaqsQzM9iPALfcvOHZPLOhBvFnw2E3z2Q2v1Mo=; b=fSEOvt3NWwwcTROddT6ph5r6qptvjjXPC8zuUhOim3avxIOkYnwsEOzHHLQZs25ocF mh+aog9E1TxxxNolJJ4Tu8Y67be6JsOPOPfrOVA/5p8Ye2ecG41/s84SGqRcmgRJgxbx Pj1Y3hL1GHdmzuTcnBOOLHCGGIQlIyhqMMcaPrqZI0z4hCmjojNqZFUKtqx3V5Oo/SH6 JWYxFtV9prDmtvwNnee7NZdeswA0llti1Y0cvCsinwBb28+no3S+nR7mLgqsC1mJ1Spl 1RufYH51AUyti1AR241pUi42/ZxGXdy/Gnn+flqUbipCnKVx1TjvtxqeCZ920Ti2nXpi Klyw== X-Gm-Message-State: ALoCoQnz5adpAoGmziuCZjmSdMKqPYs5CM7Lx37CfC/G7KuBE2TK5UZx6J3Uo1LZG2bxLLTZKDlx X-Received: by 10.182.125.100 with SMTP id mp4mr1482818obb.21.1428669284518; Fri, 10 Apr 2015 05:34:44 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.104.174 with SMTP id a43ls1597848qgf.76.gmail; Fri, 10 Apr 2015 05:34:44 -0700 (PDT) X-Received: by 10.140.91.18 with SMTP id y18mr1344627qgd.90.1428669284448; Fri, 10 Apr 2015 05:34:44 -0700 (PDT) Received: from mail-qg0-f51.google.com (mail-qg0-f51.google.com. [209.85.192.51]) by mx.google.com with ESMTPS id w1si1651287qkw.20.2015.04.10.05.34.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Apr 2015 05:34:44 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.192.51 as permitted sender) client-ip=209.85.192.51; Received: by qgfi89 with SMTP id i89so386953qgf.1 for ; Fri, 10 Apr 2015 05:34:44 -0700 (PDT) X-Received: by 10.140.129.12 with SMTP id 12mr1424501qhb.102.1428669284327; Fri, 10 Apr 2015 05:34:44 -0700 (PDT) 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.96.155.231 with SMTP id vz7csp984241qdb; Fri, 10 Apr 2015 05:34:43 -0700 (PDT) X-Received: by 10.66.160.71 with SMTP id xi7mr2280990pab.19.1428669283205; Fri, 10 Apr 2015 05:34:43 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ke5si2721403pab.238.2015.04.10.05.34.42; Fri, 10 Apr 2015 05:34:43 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-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 S932815AbbDJMec (ORCPT + 27 others); Fri, 10 Apr 2015 08:34:32 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:34367 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754896AbbDJMeY (ORCPT ); Fri, 10 Apr 2015 08:34:24 -0400 Received: by wgso17 with SMTP id o17so16246951wgs.1 for ; Fri, 10 Apr 2015 05:34:23 -0700 (PDT) X-Received: by 10.194.109.97 with SMTP id hr1mr2710707wjb.10.1428669260259; Fri, 10 Apr 2015 05:34:20 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-78-145-247-151.as13285.net. [78.145.247.151]) by mx.google.com with ESMTPSA id e2sm2739257wjy.46.2015.04.10.05.34.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Apr 2015 05:34:19 -0700 (PDT) From: Srinivas Kandagatla To: galak@codeaurora.org, linux-arm-msm@vger.kernel.org Cc: bjorn.andersson@sonymobile.com, 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 v2 04/12] ARM: dts: apq8064: Add USB OTG support Date: Fri, 10 Apr 2015 13:34:16 +0100 Message-Id: <1428669256-10948-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1428669187-10775-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1428669187-10775-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@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.192.51 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 | 17 ++++++++++++++++ arch/arm/boot/dts/qcom-apq8064.dtsi | 32 ++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index 8fe60fc..122bf34 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -116,6 +116,14 @@ }; }; + /* 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>; @@ -130,6 +138,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 99d8e07..5aac9a5 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -301,6 +301,21 @@ }; }; + usb1_phy: phy@12500000 { + compatible = "qcom,usb-otg-ci"; + reg = <0x12500000 0x400>; + interrupts = ; + 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>; @@ -331,6 +346,23 @@ reset-names = "link"; }; + gadget1: gadget@12500000 { + compatible = "qcom,ci-hdrc"; + reg = <0x12500000 0x400>; + status = "disabled"; + dr_mode = "peripheral"; + interrupts = ; + usb-phy = <&usb1_phy>; + }; + + usb1: usb@12500000 { + compatible = "qcom,ehci-host"; + reg = <0x12500000 0x400>; + interrupts = ; + status = "disabled"; + usb-phy = <&usb1_phy>; + }; + usb3: usb@12520000 { compatible = "qcom,ehci-host"; reg = <0x12520000 0x400>;