From patchwork Fri Apr 10 12:34:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 47027 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qk0-f199.google.com (mail-qk0-f199.google.com [209.85.220.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7895121416 for ; Fri, 10 Apr 2015 12:34:27 +0000 (UTC) Received: by qkmm15 with SMTP id m15sf25479257qkm.1 for ; Fri, 10 Apr 2015 05:34:27 -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=MGLNJm+V4RLxR5U/+YMwYtJ7lwvLKJR2K+jdClLQuwQ=; b=dRBIwmRQ6YwWCgEdDTTVkIzM8C9o+TgTf8EZR9B0ymOLX18vFlFkS7Ys5gi6TGr9+t 8kt8lchO7sg2NL5IA0GsL5ioZQEMRGJLrg0/Yo0aHkp0Bxun1R2lXxn5/42wr3JxpYNm kNZRKj/3T+zzfyU2DnQgxpqkf/48+ku03J8qV1gOD+Si1Wrd76NO9Ll13vvxInuQxbuB H+gbs4HeQ0krPL9lSsfvAdGHOAcZcgoST5UgPGtfiHCNcCJRXjiMJFSL0qKW6dYfpM8j H/CbFvgdwACkcwSG5u2qEPDlNDtfH8wsLY4bmNrIbiqKvFA5VRH/Qp68ObySBxootkoB k+fw== X-Gm-Message-State: ALoCoQlsVT0kBObvcTE47C7xWF8aF8Z+AICTMxpnrCIPUOrtjXH/xWTzHg8SwEyogQXogwZJT9WZ X-Received: by 10.140.234.150 with SMTP id f144mr1504150qhc.9.1428669267322; Fri, 10 Apr 2015 05:34:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.99.49 with SMTP id p46ls1661370qge.51.gmail; Fri, 10 Apr 2015 05:34:27 -0700 (PDT) X-Received: by 10.52.151.15 with SMTP id um15mr1209774vdb.64.1428669267232; Fri, 10 Apr 2015 05:34:27 -0700 (PDT) Received: from mail-vn0-f41.google.com (mail-vn0-f41.google.com. [209.85.216.41]) by mx.google.com with ESMTPS id b16si1615617vdj.55.2015.04.10.05.34.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Apr 2015 05:34:27 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.216.41 as permitted sender) client-ip=209.85.216.41; Received: by vnbf62 with SMTP id f62so5123110vnb.3 for ; Fri, 10 Apr 2015 05:34:27 -0700 (PDT) X-Received: by 10.140.23.133 with SMTP id 5mr1351771qgp.84.1428669267085; Fri, 10 Apr 2015 05:34: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.96.155.231 with SMTP id vz7csp984040qdb; Fri, 10 Apr 2015 05:34:26 -0700 (PDT) X-Received: by 10.66.63.7 with SMTP id c7mr2322789pas.13.1428669265803; Fri, 10 Apr 2015 05:34:25 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ax3si2786965pbc.46.2015.04.10.05.34.24; Fri, 10 Apr 2015 05:34:25 -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 S932644AbbDJMeT (ORCPT + 5 others); Fri, 10 Apr 2015 08:34:19 -0400 Received: from mail-lb0-f177.google.com ([209.85.217.177]:35408 "EHLO mail-lb0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932678AbbDJMeP (ORCPT ); Fri, 10 Apr 2015 08:34:15 -0400 Received: by lbbuc2 with SMTP id uc2so12478375lbb.2 for ; Fri, 10 Apr 2015 05:34:13 -0700 (PDT) X-Received: by 10.194.190.49 with SMTP id gn17mr2753975wjc.11.1428669253567; Fri, 10 Apr 2015 05:34:13 -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 df1sm6910674wib.12.2015.04.10.05.34.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Apr 2015 05:34:12 -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 03/12] ARM: dts: apq8064: Add usb host support. Date: Fri, 10 Apr 2015 13:34:09 +0100 Message-Id: <1428669249-10906-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-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.216.41 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 device tree nodes to support two usb hosts on APQ8064 SOC. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 22 ++++++++++++++ arch/arm/boot/dts/qcom-apq8064.dtsi | 47 ++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index ca2d7ba..8fe60fc 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -116,6 +116,28 @@ }; }; + usb3_phy: phy@12520000 { + status = "okay"; + vddcx-supply = <&pm8921_s3>; + v3p3-supply = <&pm8921_l3>; + v1p8-supply = <&pm8921_l23>; + }; + + usb4_phy: phy@12530000 { + status = "okay"; + vddcx-supply = <&pm8921_s3>; + v3p3-supply = <&pm8921_l3>; + v1p8-supply = <&pm8921_l23>; + }; + + usb3: usb@12520000 { + status = "okay"; + }; + + usb4: usb@12530000 { + status = "okay"; + }; + amba { /* eMMC */ sdcc1: sdcc@12400000 { diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi index 19629c9..99d8e07 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -2,6 +2,7 @@ #include "skeleton.dtsi" #include +#include #include #include #include @@ -300,6 +301,52 @@ }; }; + usb3_phy: phy@12520000 { + compatible = "qcom,usb-otg-ci"; + reg = <0x12520000 0x400>; + interrupts = ; + status = "disabled"; + dr_mode = "host"; + + clocks = <&gcc USB_HS3_XCVR_CLK>, + <&gcc USB_HS3_H_CLK>; + clock-names = "core", "iface"; + + resets = <&gcc USB_HS3_RESET>; + reset-names = "link"; + }; + + usb4_phy: phy@12530000 { + compatible = "qcom,usb-otg-ci"; + reg = <0x12530000 0x400>; + interrupts = ; + status = "disabled"; + dr_mode = "host"; + + clocks = <&gcc USB_HS4_XCVR_CLK>, + <&gcc USB_HS4_H_CLK>; + clock-names = "core", "iface"; + + resets = <&gcc USB_HS4_RESET>; + reset-names = "link"; + }; + + usb3: usb@12520000 { + compatible = "qcom,ehci-host"; + reg = <0x12520000 0x400>; + interrupts = ; + status = "disabled"; + usb-phy = <&usb3_phy>; + }; + + usb4: usb@12530000 { + compatible = "qcom,ehci-host"; + reg = <0x12530000 0x400>; + interrupts = ; + status = "disabled"; + usb-phy = <&usb4_phy>; + }; + /* Temporary fixed regulator */ vsdcc_fixed: vsdcc-regulator { compatible = "regulator-fixed";