From patchwork Mon Sep 29 09:15:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 38065 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f72.google.com (mail-ee0-f72.google.com [74.125.83.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D81BA202DB for ; Mon, 29 Sep 2014 09:15:19 +0000 (UTC) Received: by mail-ee0-f72.google.com with SMTP id e51sf292491eek.11 for ; Mon, 29 Sep 2014 02:15:18 -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=cHdv8TdhVIcPfnQTelY9FDretwTWH+1In+X3V49khQQ=; b=ZaVQwZbobznh12CqJ6FToy3hWi6mlMrDoyuodCRBeKskLLcwf+TEXr97Zl5oTJC9Yv 6kMg4jlFf4X6REwrQ0v7ag9Kvw0y9cbfccjMdmV5s6tHf1BRYSSjcC3gb0iu0/LME9OG sCaG9mt8W+H2VUsFMQ9zftN+/2eXcT9iUpQIhywL8H9XpX9SY9EctjKZ+HV1EMU/DduM txi7jtmoHkiNhCwFytKKX6bF9T03r3XhZwTbgS6aADD6ICNieaqXbF5cV2Q6ZEG/8YcW Bnvk6kJKtSMievoD7YMM3gad+e6/CCiqnoG04B0OwbeWNaQrFHbnF303IYtML9T5D2iy zldg== X-Gm-Message-State: ALoCoQnEV76Mo3PwQHDMda/8SZwMyq5/K6Ph6p6CMZhNDoJFoYR6pZuDPb4dVjJ74haFbnoBeVXX X-Received: by 10.180.106.197 with SMTP id gw5mr1613239wib.1.1411982118962; Mon, 29 Sep 2014 02:15:18 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.41 with SMTP id g9ls61560laa.93.gmail; Mon, 29 Sep 2014 02:15:18 -0700 (PDT) X-Received: by 10.152.19.225 with SMTP id i1mr37995787lae.21.1411982118606; Mon, 29 Sep 2014 02:15:18 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com [209.85.215.49]) by mx.google.com with ESMTPS id db6si17608774lad.9.2014.09.29.02.15.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Sep 2014 02:15:18 -0700 (PDT) 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 mail-la0-f49.google.com with SMTP id ge10so3014547lab.36 for ; Mon, 29 Sep 2014 02:15:18 -0700 (PDT) X-Received: by 10.112.163.103 with SMTP id yh7mr35979548lbb.73.1411982118487; Mon, 29 Sep 2014 02:15:18 -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 of9csp140262lbb; Mon, 29 Sep 2014 02:15:17 -0700 (PDT) X-Received: by 10.66.254.195 with SMTP id ak3mr56547840pad.142.1411982116975; Mon, 29 Sep 2014 02:15:16 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sv8si3183706pab.233.2014.09.29.02.15.16 for ; Mon, 29 Sep 2014 02:15:16 -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 S1753499AbaI2JPJ (ORCPT + 27 others); Mon, 29 Sep 2014 05:15:09 -0400 Received: from mail-we0-f182.google.com ([74.125.82.182]:39898 "EHLO mail-we0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751396AbaI2JPG (ORCPT ); Mon, 29 Sep 2014 05:15:06 -0400 Received: by mail-we0-f182.google.com with SMTP id x48so1402356wes.41 for ; Mon, 29 Sep 2014 02:15:05 -0700 (PDT) X-Received: by 10.194.157.135 with SMTP id wm7mr1676225wjb.117.1411982104413; Mon, 29 Sep 2014 02:15:04 -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 q18sm11000320wik.12.2014.09.29.02.15.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Sep 2014 02:15:03 -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 2/4] ARM: DT: apq8064: Add usb host support. Date: Mon, 29 Sep 2014 10:15:00 +0100 Message-Id: <1411982100-7964-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.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 | 16 ++++++ arch/arm/boot/dts/qcom-apq8064.dtsi | 85 ++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index b396c83..d6036b8 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 = "ok"; + }; + + usb4_phy:phy@12530000 { + status = "ok"; + }; + + usb3: usb@12520000 { + status = "ok"; + }; + + usb4: usb@12530000 { + status = "ok"; + }; + amba { /* eMMC */ sdcc1: sdcc@12400000 { diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi index 9c2c8e6..491a136 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -263,6 +263,91 @@ #address-cells = <1>; #size-cells = <0>; + pm8921_s3: pm8921-s3 { + compatible = "qcom,rpm-pm8921-smps"; + reg = ; + + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1400000>; + qcom,boot-load = <49360>; + qcom,switch-mode-frequency = <3200000>; + regulator-always-on; + }; + + pm8921_l3: pm8921-l3 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + + regulator-min-microvolt = <3050000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + qcom,boot-load = <50000>; + }; + + pm8921_l23: pm8921-l23 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1800000>; + qcom,boot-load = <50000>; + regulator-always-on; + }; + + }; + + usb3_phy:phy@12520000 { + compatible = "qcom,usb-otg-ci"; + reg = <0x12520000 0x400>; + interrupts = <0 188 0>; + 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 0>; + 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 0>; + status = "disabled"; + usb-phy = <&usb3_phy>; + }; + + usb4: usb@12530000 { + compatible = "qcom,ehci-host"; + reg = <0x12530000 0x400>; + interrupts = <0 215 0>; + status = "disabled"; + usb-phy = <&usb4_phy>; }; /* Temporary fixed regulator */