From patchwork Mon Sep 29 09:15:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 38066 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 540DC202DB for ; Mon, 29 Sep 2014 09:15:44 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id d49sf4019652eek.4 for ; Mon, 29 Sep 2014 02:15:43 -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=gjRWL23DQ2FaUEHak07o/pSkHv0pUBNNNFh2cI4baPo=; b=HxXk3r6DhaEJ2WjYZFZNDZ+0uXtFoWU5yO9UmwZ8aRx/PLuUEH82KKbZvyccWR0/PZ DnBcJhy0zvQjhImlausMM/Y7zOArWmMVz7kLSCAEYDmCtU7JWIB3pjCyYQtqDWLJ2Kg2 Mm78VPCfXyAhZxn22tgRfMIrolil05zM4Hgj/Cp+JcOVEd9W4teqGCYEBzc6dLzCcWOZ /zXusWPyGTdmQBkst6O3lUIKhA3gemyCwB7j99RzhduTMUnthI4QIoHgMNzSiQcKi/43 Vnc81WfdjqZBmdWJ+zoG0YvFubd6aFv4WnhRTvzbkesThzVadZb+HOy+5Yvom9SUfIFS SPTQ== X-Gm-Message-State: ALoCoQlvdfs1cRslYzLo0IYNEDqobhboVg1/DdpdqAdXwcoZfZMZE/vFHjKjhp0r49VQUdhKVu0b X-Received: by 10.112.198.226 with SMTP id jf2mr1351296lbc.1.1411982143391; Mon, 29 Sep 2014 02:15:43 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.39 with SMTP id x7ls609514lax.31.gmail; Mon, 29 Sep 2014 02:15:43 -0700 (PDT) X-Received: by 10.152.197.2 with SMTP id iq2mr2555755lac.87.1411982142745; Mon, 29 Sep 2014 02:15:42 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com [209.85.217.170]) by mx.google.com with ESMTPS id pt7si17441646lbb.120.2014.09.29.02.15.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Sep 2014 02:15:42 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by mail-lb0-f170.google.com with SMTP id n15so5806381lbi.15 for ; Mon, 29 Sep 2014 02:15:42 -0700 (PDT) X-Received: by 10.112.134.229 with SMTP id pn5mr10053877lbb.22.1411982142631; Mon, 29 Sep 2014 02:15:42 -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 of9csp140308lbb; Mon, 29 Sep 2014 02:15:41 -0700 (PDT) X-Received: by 10.68.182.98 with SMTP id ed2mr58366154pbc.95.1411982141090; Mon, 29 Sep 2014 02:15:41 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id da2si9361294pbb.46.2014.09.29.02.15.40 for ; Mon, 29 Sep 2014 02:15:41 -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 S1752209AbaI2JPg (ORCPT + 27 others); Mon, 29 Sep 2014 05:15:36 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:39909 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751396AbaI2JPc (ORCPT ); Mon, 29 Sep 2014 05:15:32 -0400 Received: by mail-wi0-f179.google.com with SMTP id d1so522433wiv.12 for ; Mon, 29 Sep 2014 02:15:31 -0700 (PDT) X-Received: by 10.180.107.100 with SMTP id hb4mr44742647wib.59.1411982131306; Mon, 29 Sep 2014 02:15:31 -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 li17sm10991365wic.13.2014.09.29.02.15.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Sep 2014 02:15:30 -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 3/4] ARM: DT: apq8064: Add USB OTG support Date: Mon, 29 Sep 2014 10:15:27 +0100 Message-Id: <1411982127-8048-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1411982044-7873-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1411982044-7873-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.170 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 | 46 ++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index d6036b8..f41fb39 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 = "ok"; + }; + usb3_phy:phy@12520000 { status = "ok"; }; @@ -48,6 +53,15 @@ status = "ok"; }; + gadget1:gadget@12500000 { + status = "ok"; + }; + + /* OTG */ + usb1: usb@12500000 { + status = "ok"; + }; + usb3: usb@12520000 { status = "ok"; }; diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi index 491a136..38d3efa 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -284,6 +284,16 @@ qcom,boot-load = <50000>; }; + pm8921_l4: pm8921-l4 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + qcom,boot-load = <50000>; + }; + pm8921_l23: pm8921-l23 { compatible = "qcom,rpm-pm8921-pldo"; reg = ; @@ -296,6 +306,25 @@ }; + usb1_phy:phy@12500000 { + compatible = "qcom,usb-otg-ci"; + reg = <0x12500000 0x400>; + interrupts = <0 100 0>; + 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>; @@ -334,6 +363,23 @@ reset-names = "link"; }; + gadget1:gadget@12500000 { + compatible = "qcom,ci-hdrc"; + reg = <0x12500000 0x400>; + status = "disabled"; + dr_mode = "peripheral"; + interrupts = <0 100 0>; + usb-phy = <&usb1_phy>; + }; + + usb1: usb@12500000 { + compatible = "qcom,ehci-host"; + reg = <0x12500000 0x400>; + interrupts = <0 100 0>; + status = "disabled"; + usb-phy = <&usb1_phy>; + }; + usb3: usb@12520000 { compatible = "qcom,ehci-host"; reg = <0x12520000 0x400>;