From patchwork Wed Oct 1 09:06:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 38225 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3E2CC202E7 for ; Wed, 1 Oct 2014 09:07:03 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id 10sf275560lbg.9 for ; Wed, 01 Oct 2014 02:07:01 -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=FyZObGkNjl4HQAj5CHWhUML3qmmm75wgJbRnne0yWbk=; b=dnNV5ciCcwZWBwCRAXeDqCKk9MR4F09VIpzRW+CbgDjoy2ssRNACNCP2jXY3yay9Rf FR9mKZWzQKewD0RaLUHydPv72RvSQWs9YqhkYU+yXrz1zO4o7ofjT25bJW24puDQ7MdA NOwRmPEa2PdN+L6ezybUU8+J9tKg4H/oEBMOn8Pt4yjXllWzU412Fmze3yMuRRt3gQjF 4gazjwzVHkVk3fEa3WLyEuDOIIzOsskSFzArIEhTHhkfI+aeEL+dLv/k1/UVsb7wP74i EAWaHmvpIke6An9qMSciWMZflD8x/p/jxjy6M2hNyDJYfissOaaX2dyywSWalw6/KVt/ DyRw== X-Gm-Message-State: ALoCoQmiqlfr94zDDtcZBay4u/WbHZqwUtJbKwomzojft/d0CorGXpczAdfXHID/gkllRjtgKQRZ X-Received: by 10.152.23.166 with SMTP id n6mr16198laf.9.1412154421836; Wed, 01 Oct 2014 02:07:01 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.65 with SMTP id 1ls134255las.63.gmail; Wed, 01 Oct 2014 02:07:01 -0700 (PDT) X-Received: by 10.112.143.34 with SMTP id sb2mr3187524lbb.18.1412154421600; Wed, 01 Oct 2014 02:07:01 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com [209.85.215.51]) by mx.google.com with ESMTPS id ao5si574787lbc.58.2014.10.01.02.07.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 01 Oct 2014 02:07:01 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id ge10so350275lab.24 for ; Wed, 01 Oct 2014 02:07:01 -0700 (PDT) X-Received: by 10.112.130.226 with SMTP id oh2mr16307915lbb.100.1412154421496; Wed, 01 Oct 2014 02:07:01 -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 of9csp494375lbb; Wed, 1 Oct 2014 02:07:00 -0700 (PDT) X-Received: by 10.66.160.167 with SMTP id xl7mr22391814pab.97.1412154419950; Wed, 01 Oct 2014 02:06:59 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id uf4si348785pbc.38.2014.10.01.02.06.59 for ; Wed, 01 Oct 2014 02:06:59 -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 S1752056AbaJAJGw (ORCPT + 27 others); Wed, 1 Oct 2014 05:06:52 -0400 Received: from mail-wg0-f52.google.com ([74.125.82.52]:35466 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752007AbaJAJGr (ORCPT ); Wed, 1 Oct 2014 05:06:47 -0400 Received: by mail-wg0-f52.google.com with SMTP id n12so579590wgh.23 for ; Wed, 01 Oct 2014 02:06:46 -0700 (PDT) X-Received: by 10.194.220.7 with SMTP id ps7mr61341789wjc.28.1412154406622; Wed, 01 Oct 2014 02:06:46 -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 ka3sm475268wjc.3.2014.10.01.02.06.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Oct 2014 02:06:46 -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, linux-arm-msm@vger.kernel.org, bjorn.andersson@sonymobile.com, Srinivas Kandagatla Subject: [PATCH v3 2/4] ARM: dts: apq8064: Add usb host support. Date: Wed, 1 Oct 2014 10:06:43 +0100 Message-Id: <1412154403-2776-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1412154355-2639-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1412154355-2639-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.51 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 b396c83..96c7b2c 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -40,6 +40,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";