From patchwork Mon Sep 29 09:15:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 4994801 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EDD829F1D4 for ; Mon, 29 Sep 2014 09:18:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2C3C2201FA for ; Mon, 29 Sep 2014 09:18:57 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 55EF820266 for ; Mon, 29 Sep 2014 09:18:56 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XYX3j-0003MI-GZ; Mon, 29 Sep 2014 09:15:55 +0000 Received: from mail-wg0-f51.google.com ([74.125.82.51]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XYX3g-0002zJ-T6 for linux-arm-kernel@lists.infradead.org; Mon, 29 Sep 2014 09:15:53 +0000 Received: by mail-wg0-f51.google.com with SMTP id b13so3917115wgh.34 for ; Mon, 29 Sep 2014 02:15:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+LFflXKMtlTrSRAJp9FNKInmxvQgaUTKb+ySmeS0Aec=; b=XEclJixQ9R1Pxh71ndFQ1knouAVILfB+8JhJ3ti+ALpSHiabXDy+s0zPYVOAM+wFcG jX31KpnXNvQKw9liWAZjXRMiVu1mE/exnlbwoiXCoTlAfxUZ7393/L1qn6Aw7vHLXEpw GmGi9wajc0VuERaB6bFG6E3FG2J+td6QRxXn3OFE5TB8mX3SuADOFGTQZnCfv9pmyGXS p0gpbTRYHTVv003dEYzA3/GfoJjEgyrHfeaSMggObw14i3XO7bbEcisiRx0b9b6MxHdm MGiMQGYgt0bH8g/228puGOjGqFHsajkeTfpx0i/h49A6DZykQyGnrzWNHN3lQSD2xRXg fofg== X-Gm-Message-State: ALoCoQk0zo7qwX/xKJ2ObaOnfF0IDZ8wG66Il19n2fQPJCtZb+10He+I+Nnyl0osYFRgcF73wiQY X-Received: by 10.180.107.100 with SMTP id hb4mr44742647wib.59.1411982131306; Mon, 29 Sep 2014 02:15:31 -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 li17sm10991365wic.13.2014.09.29.02.15.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Sep 2014 02:15:30 -0700 (PDT) From: Srinivas Kandagatla To: Kumar Gala , devicetree@vger.kernel.org Subject: [PATCH 3/4] ARM: DT: apq8064: Add USB OTG support Date: Mon, 29 Sep 2014 10:15:27 +0100 Message-Id: <1411982127-8048-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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140929_021553_085980_D7A6FB51 X-CRM114-Status: GOOD ( 10.08 ) X-Spam-Score: -0.7 (/) Cc: Mark Rutland , Russell King , arm@kernel.org, Pawel Moll , Ian Campbell , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , broonie@kernel.org, Srinivas Kandagatla , bjorn.andersson@sonymobile.com, lee.jones@linaro.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 | 14 +++++++++ arch/arm/boot/dts/qcom-apq8064.dtsi | 46 ++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index d6036b8..f41fb39 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -40,6 +40,11 @@ }; }; + /* OTG */ + usb1_phy:phy@12500000 { + status = "ok"; + }; + usb3_phy:phy@12520000 { status = "ok"; }; @@ -48,6 +53,15 @@ status = "ok"; }; + gadget1:gadget@12500000 { + status = "ok"; + }; + + /* OTG */ + usb1: usb@12500000 { + status = "ok"; + }; + usb3: usb@12520000 { status = "ok"; }; diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi index 491a136..38d3efa 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -284,6 +284,16 @@ qcom,boot-load = <50000>; }; + pm8921_l4: pm8921-l4 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + qcom,boot-load = <50000>; + }; + pm8921_l23: pm8921-l23 { compatible = "qcom,rpm-pm8921-pldo"; reg = ; @@ -296,6 +306,25 @@ }; + usb1_phy:phy@12500000 { + compatible = "qcom,usb-otg-ci"; + reg = <0x12500000 0x400>; + interrupts = <0 100 0>; + status = "disabled"; + dr_mode = "host"; + + clocks = <&gcc USB_HS1_XCVR_CLK>, + <&gcc USB_HS1_H_CLK>; + clock-names = "core", "iface"; + + vddcx-supply = <&pm8921_s3>; + v3p3-supply = <&pm8921_l3>; + v1p8-supply = <&pm8921_l4>; + + resets = <&gcc USB_HS1_RESET>; + reset-names = "link"; + }; + usb3_phy:phy@12520000 { compatible = "qcom,usb-otg-ci"; reg = <0x12520000 0x400>; @@ -334,6 +363,23 @@ reset-names = "link"; }; + gadget1:gadget@12500000 { + compatible = "qcom,ci-hdrc"; + reg = <0x12500000 0x400>; + status = "disabled"; + dr_mode = "peripheral"; + interrupts = <0 100 0>; + usb-phy = <&usb1_phy>; + }; + + usb1: usb@12500000 { + compatible = "qcom,ehci-host"; + reg = <0x12500000 0x400>; + interrupts = <0 100 0>; + status = "disabled"; + usb-phy = <&usb1_phy>; + }; + usb3: usb@12520000 { compatible = "qcom,ehci-host"; reg = <0x12520000 0x400>;