From patchwork Thu Apr 9 08:23:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 46906 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AAD1F21416 for ; Thu, 9 Apr 2015 08:23:14 +0000 (UTC) Received: by wgin8 with SMTP id n8sf14755697wgi.0 for ; Thu, 09 Apr 2015 01:23:13 -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=j3747pZV43mvkDyLRaaJfbu0lSkB1tlnwGzBa7zd59Q=; b=K1WA+IfnTv1Tk8VtBKk2ZbGBjGy9ogvqAIq+rdkx/TyoXe81mkTxXS1srUdsveIVOu rv+vK/IRUL5nnSfa7EgV0b9SDgloAYobYqpqwEmXkOQOsarz1fLN6ilBAkb8dJtq+WPs rLnHYoRjLOR4hunX7CAyzRTW6sKp87JU6B+c2KRMU5F18ymOKCKreIVOW0gy7ZyhwvWF CVl2WFSfBFu4SlZakmJf7op/hwSGZGhPqq7jyzaIff8O5oghj6bfd+0eQzvHWVgwqcH4 6dGZjH78lPmf8VDbtNOycJhR7zhr7nBpKP7XoLfzfV24Eu0ENaNbKqPxuxbCK2xC2h8X tKGA== X-Gm-Message-State: ALoCoQmhOwVl0IdNoIT6uUdiM141RZkxT+BigGI0d1wb9ka8a1Ja1iMlBev31SjKvU3Xkwwtm/O6 X-Received: by 10.112.122.39 with SMTP id lp7mr5672101lbb.5.1428567793906; Thu, 09 Apr 2015 01:23:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.234.236 with SMTP id uh12ls294761lac.54.gmail; Thu, 09 Apr 2015 01:23:13 -0700 (PDT) X-Received: by 10.112.119.234 with SMTP id kx10mr23602832lbb.35.1428567793761; Thu, 09 Apr 2015 01:23:13 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id cq9si10847723lad.134.2015.04.09.01.23.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Apr 2015 01:23:13 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by lagv1 with SMTP id v1so84017144lag.3 for ; Thu, 09 Apr 2015 01:23:13 -0700 (PDT) X-Received: by 10.112.160.227 with SMTP id xn3mr26588222lbb.112.1428567793656; Thu, 09 Apr 2015 01:23:13 -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.112.67.65 with SMTP id l1csp328475lbt; Thu, 9 Apr 2015 01:23:12 -0700 (PDT) X-Received: by 10.68.182.132 with SMTP id ee4mr53946112pbc.24.1428567790839; Thu, 09 Apr 2015 01:23:10 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rt5si13051641pab.25.2015.04.09.01.23.09; Thu, 09 Apr 2015 01:23:10 -0700 (PDT) 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 S1753429AbbDIIXI (ORCPT + 5 others); Thu, 9 Apr 2015 04:23:08 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:33789 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753062AbbDIIXH (ORCPT ); Thu, 9 Apr 2015 04:23:07 -0400 Received: by wiax7 with SMTP id x7so49791761wia.0 for ; Thu, 09 Apr 2015 01:23:06 -0700 (PDT) X-Received: by 10.180.104.33 with SMTP id gb1mr4027222wib.33.1428567786796; Thu, 09 Apr 2015 01:23:06 -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 k6sm19081765wia.6.2015.04.09.01.23.04 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Apr 2015 01:23:05 -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, inux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH 03/10] ARM: dts: apq8064: Add USB OTG support Date: Thu, 9 Apr 2015 09:23:02 +0100 Message-Id: <1428567782-10851-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1428567674-10672-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1428567674-10672-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.215.49 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 | 16 +++++++++++++++ arch/arm/boot/dts/qcom-apq8064.dtsi | 32 ++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index 0b562f0..17a0946 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -49,6 +49,13 @@ }; }; + /* 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"; @@ -64,6 +71,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 2d7703d..cca9162 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -549,6 +549,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>; @@ -579,6 +594,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>;