From patchwork Tue Sep 30 14:09:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 38156 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 2257020549 for ; Tue, 30 Sep 2014 14:10:24 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id n3sf3739158wiv.9 for ; Tue, 30 Sep 2014 07:10:23 -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=MmRiy+/xZfBTpEVMsl4xRKk2kyH9XgCDVeR1EfIGeZ4=; b=MzltnYxaNWme2RIMkQRxaGuMtgGFWty6Mpzhzput5aZsSLTJhy16Tjne1DPhqB4VYT xdMBRvePvLVcjiEFgazyf1b2IjSjSY1TZQTUsEk7TkAWbsZIjK2UR5PDITFIaa3gTTiI XRTRqnAwOS1bbbr6bQ31hkIubQiENPtcMx+UtbSEIa7bBici4VPUxPCrtxr/QRjrphxM XgeIFnFGWcGRMMqEInWbl0oyByNjpQVJ5BrvIVUhEwLYW13JCVmf08uEU+LrsyhaPpxz TsI0HJt1kcVvGwzj9lgJDVycPEu+m1wNsI9j1m2LBSspK2WVxxznYbLIazEAkRgdF8w/ Ma6w== X-Gm-Message-State: ALoCoQn2tnej/McXg/ZUlL3szmRFWRbw7Fa6sctxnOR+eDWwK63MjAtm8p9BXH3PUBLxyf8/79da X-Received: by 10.112.168.225 with SMTP id zz1mr390268lbb.8.1412086223003; Tue, 30 Sep 2014 07:10:23 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.3.132 with SMTP id c4ls45674lac.88.gmail; Tue, 30 Sep 2014 07:10:22 -0700 (PDT) X-Received: by 10.152.20.132 with SMTP id n4mr17541367lae.86.1412086222777; Tue, 30 Sep 2014 07:10:22 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53]) by mx.google.com with ESMTPS id xm7si22907073lbb.97.2014.09.30.07.10.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 30 Sep 2014 07:10:22 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by mail-la0-f53.google.com with SMTP id gq15so2459076lab.40 for ; Tue, 30 Sep 2014 07:10:22 -0700 (PDT) X-Received: by 10.152.5.168 with SMTP id t8mr47093785lat.67.1412086222616; Tue, 30 Sep 2014 07:10:22 -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 of9csp354366lbb; Tue, 30 Sep 2014 07:10:21 -0700 (PDT) X-Received: by 10.70.65.7 with SMTP id t7mr40735665pds.133.1412086221125; Tue, 30 Sep 2014 07:10:21 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k16si27252085pdl.35.2014.09.30.07.10.15 for ; Tue, 30 Sep 2014 07:10:21 -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 S1752095AbaI3OKH (ORCPT + 27 others); Tue, 30 Sep 2014 10:10:07 -0400 Received: from mail-we0-f181.google.com ([74.125.82.181]:49267 "EHLO mail-we0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752033AbaI3OKF (ORCPT ); Tue, 30 Sep 2014 10:10:05 -0400 Received: by mail-we0-f181.google.com with SMTP id u57so3580053wes.40 for ; Tue, 30 Sep 2014 07:10:03 -0700 (PDT) X-Received: by 10.194.103.200 with SMTP id fy8mr4096423wjb.123.1412086203591; Tue, 30 Sep 2014 07:10:03 -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 t1sm15308595wiy.8.2014.09.30.07.10.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Sep 2014 07:10:02 -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 2/4] ARM: dts: apq8064: Add usb host support. Date: Tue, 30 Sep 2014 15:09:58 +0100 Message-Id: <1412086198-20983-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.215.53 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 | 16 +++++++++ arch/arm/boot/dts/qcom-apq8064.dtsi | 55 ++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index b396c83..3288bf7 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -40,6 +40,22 @@ }; }; + usb3_phy: phy@12520000 { + status = "okay"; + }; + + usb4_phy: phy@12530000 { + status = "okay"; + }; + + 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 64708cb..b2dd549 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 @@ -543,6 +544,60 @@ }; + usb3_phy:phy@12520000 { + compatible = "qcom,usb-otg-ci"; + reg = <0x12520000 0x400>; + interrupts = <0 188 IRQ_TYPE_NONE>; + status = "disabled"; + dr_mode = "host"; + + clocks = <&gcc USB_HS3_XCVR_CLK>, + <&gcc USB_HS3_H_CLK>; + clock-names = "core", "iface"; + + vddcx-supply = <&pm8921_s3>; + v3p3-supply = <&pm8921_l3>; + v1p8-supply = <&pm8921_l23>; + + resets = <&gcc USB_HS3_RESET>; + reset-names = "link"; + }; + + usb4_phy:phy@12530000 { + compatible = "qcom,usb-otg-ci"; + reg = <0x12530000 0x400>; + interrupts = <0 215 IRQ_TYPE_NONE>; + status = "disabled"; + dr_mode = "host"; + + clocks = <&gcc USB_HS4_XCVR_CLK>, + <&gcc USB_HS4_H_CLK>; + clock-names = "core", "iface"; + + vddcx-supply = <&pm8921_s3>; + v3p3-supply = <&pm8921_l3>; + v1p8-supply = <&pm8921_l23>; + + resets = <&gcc USB_HS4_RESET>; + reset-names = "link"; + }; + + usb3: usb@12520000 { + compatible = "qcom,ehci-host"; + reg = <0x12520000 0x400>; + interrupts = <0 188 IRQ_TYPE_NONE>; + status = "disabled"; + usb-phy = <&usb3_phy>; + }; + + usb4: usb@12530000 { + compatible = "qcom,ehci-host"; + reg = <0x12530000 0x400>; + interrupts = <0 215 IRQ_TYPE_NONE>; + status = "disabled"; + usb-phy = <&usb4_phy>; + }; + /* Temporary fixed regulator */ vsdcc_fixed: vsdcc-regulator { compatible = "regulator-fixed";