From patchwork Tue Sep 30 14:10:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 38157 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C9D4F20549 for ; Tue, 30 Sep 2014 14:10:28 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id n3sf3739497wiv.5 for ; Tue, 30 Sep 2014 07:10:28 -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=cI+x7sbtRxkvzoEIN2pGgQVm+61I4ybScn8bcKIqMMw=; b=EYZPCZhc1HbUI83hNQnrf3uVDpRFcHK4wso1iiUm3aNEak1XxqLTCj/Cz5pgSVbSQU 6SIHDzOQLwa59vIrQlBPIXxDIRui6JNwnQpuIfrpdpeirZC1pSYuaG1iRecbaz2KtVJJ bhrCijDwT7dzx4jSz7FrComXCsiXHLpPD36Yy/mN1tJA67ygZDvQBiQg62icuGxhiZfz AEwpg/lMMPuNo2sdQCovo6el0uAyqJfsitlRkVkNLdHrptgIhISyuueKVTLO82F+tmSJ Jtuv6zqh2skg35kzGm6PcdSd9yEF6JxSMH24qT2z3UHsEBN+X7FqLFMbTWdv77m8cY6I 7uqw== X-Gm-Message-State: ALoCoQnfjPopk2Zlp7g6ZTHkv1WbU2JOlyeO0Bjf9BjhX2k2mhxjgIZVNnYCdI/EvFPxwDL8Ekhi X-Received: by 10.112.166.40 with SMTP id zd8mr490486lbb.17.1412086227972; Tue, 30 Sep 2014 07:10:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.39 with SMTP id 7ls23072lar.87.gmail; Tue, 30 Sep 2014 07:10:27 -0700 (PDT) X-Received: by 10.152.1.137 with SMTP id 9mr17679689lam.85.1412086227762; Tue, 30 Sep 2014 07:10:27 -0700 (PDT) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx.google.com with ESMTPS id e4si22075999lbs.54.2014.09.30.07.10.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 30 Sep 2014 07:10:27 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by mail-lb0-f182.google.com with SMTP id z11so8325841lbi.27 for ; Tue, 30 Sep 2014 07:10:27 -0700 (PDT) X-Received: by 10.152.88.16 with SMTP id bc16mr27781830lab.56.1412086227194; Tue, 30 Sep 2014 07:10:27 -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.130.169 with SMTP id of9csp354392lbb; Tue, 30 Sep 2014 07:10:26 -0700 (PDT) X-Received: by 10.66.155.105 with SMTP id vv9mr69020025pab.61.1412086225703; Tue, 30 Sep 2014 07:10:25 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w12si7630072pas.156.2014.09.30.07.10.24 for ; Tue, 30 Sep 2014 07:10:25 -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 S1752185AbaI3OKV (ORCPT + 27 others); Tue, 30 Sep 2014 10:10:21 -0400 Received: from mail-wg0-f50.google.com ([74.125.82.50]:57770 "EHLO mail-wg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752099AbaI3OKQ (ORCPT ); Tue, 30 Sep 2014 10:10:16 -0400 Received: by mail-wg0-f50.google.com with SMTP id l18so14172022wgh.21 for ; Tue, 30 Sep 2014 07:10:15 -0700 (PDT) X-Received: by 10.180.80.198 with SMTP id t6mr6428070wix.6.1412086215285; Tue, 30 Sep 2014 07:10:15 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-2-99-232-3.as13285.net. [2.99.232.3]) by mx.google.com with ESMTPSA id mc4sm15319107wic.6.2014.09.30.07.10.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Sep 2014 07:10:14 -0700 (PDT) From: Srinivas Kandagatla To: Kumar Gala , devicetree@vger.kernel.org Cc: broonie@kernel.org, lee.jones@linaro.org, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arm@kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@sonymobile.com, Srinivas Kandagatla Subject: [PATCH v2 3/4] ARM: dts: apq8064: Add USB OTG support Date: Tue, 30 Sep 2014 15:10:10 +0100 Message-Id: <1412086210-21025-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1412086159-20894-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1412086159-20894-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.217.182 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 | 14 ++++++++++++ arch/arm/boot/dts/qcom-apq8064.dtsi | 36 ++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index 3288bf7..f221e9e 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -40,6 +40,11 @@ }; }; + /* OTG */ + usb1_phy: phy@12500000 { + status = "okay"; + }; + usb3_phy: phy@12520000 { status = "okay"; }; @@ -48,6 +53,15 @@ status = "okay"; }; + gadget1: gadget@12500000 { + status = "ok"; + }; + + /* 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 b2dd549..28643fb 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -544,6 +544,25 @@ }; + 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"; + + vddcx-supply = <&pm8921_s3>; + v3p3-supply = <&pm8921_l3>; + v1p8-supply = <&pm8921_l4>; + + resets = <&gcc USB_HS1_RESET>; + reset-names = "link"; + }; + usb3_phy:phy@12520000 { compatible = "qcom,usb-otg-ci"; reg = <0x12520000 0x400>; @@ -582,6 +601,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>;