From patchwork Mon Feb 23 07:55:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 44890 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f199.google.com (mail-we0-f199.google.com [74.125.82.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D920F21570 for ; Mon, 23 Feb 2015 07:55:22 +0000 (UTC) Received: by wesw55 with SMTP id w55sf10855014wes.0 for ; Sun, 22 Feb 2015 23:55:22 -0800 (PST) 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=4jlozIOnthGcmGqeB+KCWoGansohveX9J/S7++xyU4Y=; b=F9gqY8jf/ltvvpVnq0IrCORBJGi88HKqr3EIoY+/aeaVGo9zbOEShIBAR7y7tPeAaw 5iFYGx1TSeNORnKykQuIYOZo+ISIPDlxgb29W50C/TEjrWTdt3zwglOKpA1vb+xD+VK0 iGU10JoxwONpc8MiSKSuIOJY1p860+7E9C+HvsdjhpySY+DPW9QDpB07N/Ll51p8yRUE ZjS5UrSIr6HGnTRyGH/jEf7vk77avk3Q00qcaZ0ZHTQJbaUVXaTEcq3fCFhSNxB9tSP+ LswYjVD3q/l049A72KoJxFoM0DBH5hbqv3+6rZQtHqhrBcloWTlupaXtL4K3ULcp7wcW lM6Q== X-Gm-Message-State: ALoCoQmBixH6P/Ry3eB/Ga/aTEsduLR09PZ4evf+XO6xtxLY6AQ+s7NUTqK3ohha7wZnbeSM1TaP X-Received: by 10.112.161.9 with SMTP id xo9mr1092797lbb.7.1424678121729; Sun, 22 Feb 2015 23:55:21 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.20.67 with SMTP id l3ls507369lae.93.gmail; Sun, 22 Feb 2015 23:55:21 -0800 (PST) X-Received: by 10.152.21.136 with SMTP id v8mr8696552lae.64.1424678121421; Sun, 22 Feb 2015 23:55:21 -0800 (PST) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id sr5si25397549lbb.69.2015.02.22.23.55.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Feb 2015 23:55:21 -0800 (PST) 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 labgd6 with SMTP id gd6so16672759lab.7 for ; Sun, 22 Feb 2015 23:55:21 -0800 (PST) X-Received: by 10.112.211.200 with SMTP id ne8mr8461764lbc.73.1424678121136; Sun, 22 Feb 2015 23:55:21 -0800 (PST) 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.35.133 with SMTP id h5csp1103691lbj; Sun, 22 Feb 2015 23:55:20 -0800 (PST) X-Received: by 10.68.221.165 with SMTP id qf5mr16644512pbc.101.1424678119374; Sun, 22 Feb 2015 23:55:19 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fg4si11400388pad.31.2015.02.22.23.55.18; Sun, 22 Feb 2015 23:55:19 -0800 (PST) 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 S1752341AbbBWHzN (ORCPT + 28 others); Mon, 23 Feb 2015 02:55:13 -0500 Received: from mail-wi0-f170.google.com ([209.85.212.170]:46520 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752301AbbBWHzG (ORCPT ); Mon, 23 Feb 2015 02:55:06 -0500 Received: by mail-wi0-f170.google.com with SMTP id hi2so17426469wib.1 for ; Sun, 22 Feb 2015 23:55:05 -0800 (PST) X-Received: by 10.194.90.210 with SMTP id by18mr19013394wjb.80.1424678104964; Sun, 22 Feb 2015 23:55:04 -0800 (PST) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-2-96-88-56.as13285.net. [2.96.88.56]) by mx.google.com with ESMTPSA id hs7sm14688160wib.4.2015.02.22.23.55.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Feb 2015 23:55:04 -0800 (PST) From: Srinivas Kandagatla To: Kumar Gala , linux-arm-msm@vger.kernel.org Cc: 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 02/12] ARM: dts: apq8064: Add usb host support. Date: Mon, 23 Feb 2015 07:55:01 +0000 Message-Id: <1424678101-13009-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <424678035-12862-1-git-send-email-srinivas.kandagatla@linaro.org> References: <424678035-12862-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.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 device tree nodes to support two usb hosts on APQ8064 SOC. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 40 +++++++++++++++++++++++++ arch/arm/boot/dts/qcom-apq8064.dtsi | 47 ++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index e641001..40657a4 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -49,6 +49,46 @@ }; }; + rpm@108000 { + pm8921_s3: pm8921-s3 { + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1400000>; + qcom,switch-mode-frequency = <4800000>; + }; + + pm8921_l3: pm8921-l3 { + regulator-min-microvolt = <3050000>; + regulator-max-microvolt = <3300000>; + }; + + pm8921_l23: pm8921-l23 { + regulator-min-microvolt = <1700000>; + regulator-max-microvolt = <1900000>; + }; + }; + + 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 db5fc59..e33eb03 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 @@ -487,6 +488,52 @@ }; }; + 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"; + + 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"; + + 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";