From patchwork Tue Mar 29 01:32:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 8681171 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 18218C0553 for ; Tue, 29 Mar 2016 01:34:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3F60320160 for ; Tue, 29 Mar 2016 01:34:46 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5D44E2015E for ; Tue, 29 Mar 2016 01:34:45 +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 1akiWs-00042Z-T9; Tue, 29 Mar 2016 01:33:10 +0000 Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1akiWm-0003Vu-Ma for linux-arm-kernel@lists.infradead.org; Tue, 29 Mar 2016 01:33:06 +0000 Received: by mail-pa0-x234.google.com with SMTP id zm5so1481269pac.0 for ; Mon, 28 Mar 2016 18:32:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Itsk13ZuZuzfsZ2RnDkem3W8JfmRxehpfjVcAJKqTbc=; b=CQzxqgih7DxGLTHDTF48lxXPsPcZG0UGEQhAlpn0ge3DylkXKqW355AdvwCt5NxncF y8OOPhKtnGwFP1YEFbVd3DnHGh9db8d/mlQfqpzUc89v1VBqF9xap1OV4HAAQz5yUCdW GRCdDAVb7LXtQK6Y9cBrzj3e0ijdjRa3TQsrM= 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; bh=Itsk13ZuZuzfsZ2RnDkem3W8JfmRxehpfjVcAJKqTbc=; b=mOGBl3Ebn1OVyOEDjhuvnYV5exDnJpUWJMxh+tS9hIuHICcEmuBUVbHzuMMbNRKHv7 UmBncf4zHfZWNByRbur9e4uIBaJCHo45+nu7tpt6/XcUR+MVz0KhY1GSvHSqHiNbt1D3 jNYNDcn0os3wnt9Gkrf1RESlfLaZ8mkYaa1prQCq6ApiS8Lr6F8hjxKnrxjtV6vh61kj vaz5CUauP4T6BZLaIpd6P7L3pRykiBCb+vQBK5Y9TX3qr3LB1HjVDn/LyS6cK1x+sK1R 5vC335CnCcqtNY32G025mFRG/gv/CH2Y5z8YyiBr5VSQhartVQu8bFZL2/x5B+6Vzeb1 uB5w== X-Gm-Message-State: AD7BkJKT9ykL4e6a9M2XGYHAtxoaNNW+kvGkBtO+aKfnPT/EbYwyeOPgjlBU/hNAvM/eAuiE X-Received: by 10.66.190.131 with SMTP id gq3mr47152906pac.42.1459215163780; Mon, 28 Mar 2016 18:32:43 -0700 (PDT) Received: from localhost.localdomain (ip68-111-223-48.sd.sd.cox.net. [68.111.223.48]) by smtp.gmail.com with ESMTPSA id m84sm38419243pfi.75.2016.03.28.18.32.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Mar 2016 18:32:42 -0700 (PDT) From: Bjorn Andersson To: Andy Gross Subject: [PATCH 1/4] ARM: dts: qcom: msm8974: Add USB gadget nodes Date: Mon, 28 Mar 2016 18:32:36 -0700 Message-Id: <1459215159-2576-1-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160328_183304_958493_719D8267 X-CRM114-Status: GOOD ( 10.48 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,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 From: Bjorn Andersson Add the necessary nodes for USB gadget on MSM8974 and enable these for Honami. Signed-off-by: Bjorn Andersson Signed-off-by: Bjorn Andersson --- .../boot/dts/qcom-msm8974-sony-xperia-honami.dts | 8 +++++ arch/arm/boot/dts/qcom-msm8974.dtsi | 38 ++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-sony-xperia-honami.dts b/arch/arm/boot/dts/qcom-msm8974-sony-xperia-honami.dts index a0398b69f4f2..453eede25a43 100644 --- a/arch/arm/boot/dts/qcom-msm8974-sony-xperia-honami.dts +++ b/arch/arm/boot/dts/qcom-msm8974-sony-xperia-honami.dts @@ -367,6 +367,14 @@ }; }; + + usb-phy@f9a55000 { + status = "ok"; + }; + + usb@f9a55000 { + status = "ok"; + }; }; &spmi_bus { diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index ef5330578431..927075137b76 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -489,6 +489,44 @@ #dma-cells = <1>; qcom,ee = <0>; }; + + usb1_phy: usb-phy@f9a55000 { + compatible = "qcom,usb-otg-snps"; + + reg = <0xf9a55000 0x400>; + interrupts-extended = <&intc 0 134 0>, <&intc 0 140 0>, + <&spmi_bus 0 0x9 0 0>; + interrupt-names = "core_irq", "async_irq", "pmic_id_irq"; + + vddcx-supply = <&pm8841_s2>; + v3p3-supply = <&pm8941_l24>; + v1p8-supply = <&pm8941_l6>; + + dr_mode = "otg"; + qcom,phy-init-sequence = <0x63 0x81 0xfffffff>; + qcom,otg-control = <1>; + qcom,phy-num = <0>; + + resets = <&gcc GCC_USB2A_PHY_BCR>, <&gcc GCC_USB_HS_BCR>; + reset-names = "phy", "link"; + + clocks = <&gcc GCC_XO_CLK>, <&gcc GCC_USB_HS_SYSTEM_CLK>, + <&gcc GCC_USB_HS_AHB_CLK>; + clock-names = "phy", "core", "iface"; + + status = "disabled"; + }; + + usb@f9a55000 { + compatible = "qcom,ci-hdrc"; + reg = <0xf9a55000 0x400>; + dr_mode = "otg"; + interrupts = <0 134 0>, <0 140 0>; + interrupt-names = "core_irq", "async_irq"; + usb-phy = <&usb1_phy>; + + status = "disabled"; + }; }; smd {