From patchwork Wed Oct 1 09:06:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 38226 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 21148202E7 for ; Wed, 1 Oct 2014 09:07:14 +0000 (UTC) Received: by mail-ee0-f72.google.com with SMTP id e51sf272818eek.11 for ; Wed, 01 Oct 2014 02:07:13 -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=yI68fE6zepMwk/PlOFLvb0moBrqNlphlLFavkktHYCM=; b=CpJfS13uy6rg9gtTAQmn4SkZdUT+wLMHQ6z4VSZnRa7SHur28mPmoWs0jjtR9ruGcV oANmaJwjNZf3+zdJm6U9X51s2qjCgjaZKZ043o9gEa8B0qt/fHS2IIi02iQ4cUdFlgbn aqZOuds0vV6ZB2hZt6zInlur3nvE7j3Z/T8fDNRZElJs5ywsb9iq43E6xSqrlqY4lvoY 8wz8Mmsa+95djUd2CZjVyAVfUu8E887f03ZnnUYEkP0+T3CS0nqicIB7nM20BzN4EA6C pWpVKyDxc4vSrq2xiYMhuayaVNAHnmX6ORc2EXlucD8avxX2ZfyYVIwhn2oePhAz+wTc P33A== X-Gm-Message-State: ALoCoQnCpCTlzn8mE4FvRPGWO6aFIw7ixDIQ0h00AuCKbee1MjYjw2SUGHHPKS6Hana6FeqLQddM X-Received: by 10.152.26.225 with SMTP id o1mr3403747lag.4.1412154433252; Wed, 01 Oct 2014 02:07:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.165 with SMTP id f5ls139779lam.33.gmail; Wed, 01 Oct 2014 02:07:13 -0700 (PDT) X-Received: by 10.112.161.70 with SMTP id xq6mr51284481lbb.49.1412154433083; Wed, 01 Oct 2014 02:07:13 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com [209.85.215.46]) by mx.google.com with ESMTPS id rc5si467794lac.118.2014.10.01.02.07.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 01 Oct 2014 02:07:12 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by mail-la0-f46.google.com with SMTP id gi9so369982lab.5 for ; Wed, 01 Oct 2014 02:07:12 -0700 (PDT) X-Received: by 10.152.45.1 with SMTP id i1mr3700183lam.56.1412154432748; Wed, 01 Oct 2014 02:07:12 -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 of9csp494393lbb; Wed, 1 Oct 2014 02:07:10 -0700 (PDT) X-Received: by 10.66.139.106 with SMTP id qx10mr76572791pab.126.1412154429415; Wed, 01 Oct 2014 02:07:09 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ha11si260828pbd.120.2014.10.01.02.07.08 for ; Wed, 01 Oct 2014 02:07:09 -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 S1752112AbaJAJG7 (ORCPT + 27 others); Wed, 1 Oct 2014 05:06:59 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:35430 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752063AbaJAJGy (ORCPT ); Wed, 1 Oct 2014 05:06:54 -0400 Received: by mail-wi0-f179.google.com with SMTP id d1so1074484wiv.12 for ; Wed, 01 Oct 2014 02:06:53 -0700 (PDT) X-Received: by 10.180.104.7 with SMTP id ga7mr12425396wib.36.1412154413045; Wed, 01 Oct 2014 02:06:53 -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 i5sm483563wjz.0.2014.10.01.02.06.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Oct 2014 02:06:52 -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 3/4] ARM: dts: apq8064: Add USB OTG support Date: Wed, 1 Oct 2014 10:06:49 +0100 Message-Id: <1412154409-2828-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.46 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 USB OTG support on USB1 of APQ8064 SOC. Tested on IFC6410 with ethernet gadget. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 22 ++++++++++++++++++++ arch/arm/boot/dts/qcom-apq8064.dtsi | 32 ++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index 96c7b2c..3e2c777 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -52,12 +52,25 @@ regulator-max-microvolt = <3300000>; }; + pm8921_l4: pm8921-l4 { + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1800000>; + }; + pm8921_l23: pm8921-l23 { regulator-min-microvolt = <1700000>; regulator-max-microvolt = <1900000>; }; }; + /* OTG */ + usb1_phy: phy@12500000 { + status = "okay"; + vddcx-supply = <&pm8921_s3>; + v3p3-supply = <&pm8921_l3>; + v1p8-supply = <&pm8921_l4>; + }; + usb3_phy: phy@12520000 { status = "okay"; vddcx-supply = <&pm8921_s3>; @@ -72,6 +85,15 @@ v1p8-supply = <&pm8921_l23>; }; + gadget1: gadget@12500000 { + status = "okay"; + }; + + /* OTG */ + usb1: usb@12500000 { + status = "okay"; + }; + usb3: usb@12520000 { status = "okay"; }; diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi index e33eb03..c251c72 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -488,6 +488,21 @@ }; }; + usb1_phy: phy@12500000 { + compatible = "qcom,usb-otg-ci"; + reg = <0x12500000 0x400>; + interrupts = <0 100 IRQ_TYPE_NONE>; + status = "disabled"; + dr_mode = "host"; + + clocks = <&gcc USB_HS1_XCVR_CLK>, + <&gcc USB_HS1_H_CLK>; + clock-names = "core", "iface"; + + resets = <&gcc USB_HS1_RESET>; + reset-names = "link"; + }; + usb3_phy: phy@12520000 { compatible = "qcom,usb-otg-ci"; reg = <0x12520000 0x400>; @@ -518,6 +533,23 @@ reset-names = "link"; }; + gadget1: gadget@12500000 { + compatible = "qcom,ci-hdrc"; + reg = <0x12500000 0x400>; + status = "disabled"; + dr_mode = "peripheral"; + interrupts = <0 100 IRQ_TYPE_NONE>; + usb-phy = <&usb1_phy>; + }; + + usb1: usb@12500000 { + compatible = "qcom,ehci-host"; + reg = <0x12500000 0x400>; + interrupts = <0 100 IRQ_TYPE_NONE>; + status = "disabled"; + usb-phy = <&usb1_phy>; + }; + usb3: usb@12520000 { compatible = "qcom,ehci-host"; reg = <0x12520000 0x400>;