From patchwork Mon Jul 31 06:44:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 9871043 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8A27D6038F for ; Mon, 31 Jul 2017 06:46:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B9F628572 for ; Mon, 31 Jul 2017 06:46:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7090028595; Mon, 31 Jul 2017 06:46:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0DFE128572 for ; Mon, 31 Jul 2017 06:46:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=8qygxsps5JovIZRvnhzN70ZmoYjlNe4c1ImNTEAY3ug=; b=ZPBGT1or4G6e/zCh8a6eYJXX5X Ue2Qcs75PCTnGygUxDXEaFlhEVwJvce3xCYnzZZSb9O6Bt5QFloWHP2hxrPDDfAmmrlguk90B3t9T /fO5YaQoIkhmpPRmJVG9NmqgvJdS4sOyBLzJPgiN/9vT3vSBAmA+gjUjZRtBK8DobgzovmzucfqTS 9KHx0Fxk9dsGVW6cSMacKpUt759cNU+WGqMFo09qbdooMbvMpdRj7e2hiPiFYC2EqqymA1b+sxYEE sLwdgGvni7lJ0SKYaxzrp8pMGdlnpXQdV38EfpBCqrH789FrF/xJsaBAB099mAfIznLIZbOIbREcK /xfzriOQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dc4Si-0003cK-LZ; Mon, 31 Jul 2017 06:45:56 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dc4S4-0001u5-Pe for linux-arm-kernel@lists.infradead.org; Mon, 31 Jul 2017 06:45:22 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id B597F60A08; Mon, 31 Jul 2017 06:44:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1501483499; bh=W+8h8eIWms/sx4t6uf3BjyOilVNUSZX0onFIdxU9wtw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d7i4VKukxL+bVrk0GpEONC9JcJvZ+SCtvQpihlrH5h3KG1sb90YcAoQPjhArdXcgk RiTlW6yYWpseRXqHikauXXN8fvZ3kVUKDyec0pp6KxaWiQpW7h7PLSuEmtVWoamHxI 1eiaZVAAY7rLhihBtsQQNREcJDz/poc7hjT8MiGA= Received: from blr-ubuntu-41.ap.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: vivek.gautam@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 27859601EC; Mon, 31 Jul 2017 06:44:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1501483498; bh=W+8h8eIWms/sx4t6uf3BjyOilVNUSZX0onFIdxU9wtw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PX4DDa4Jp9J4HgPoQICtKaMZuMaz37cTWu78WYWbgcMEphR0uqyv/iDCKfOETiqpH r6pRtzp97jTgpGYizHnkiAiyl8uxVH2N1inKOLBiTgQQ5R0ACKcQge38FlFo4apjeJ VeBZ41Gk8yLIf8LfTFicJKB5GN+iTkBjFdln3JLc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 27859601EC Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=vivek.gautam@codeaurora.org From: Vivek Gautam To: andy.gross@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/4] arm64: dts: msm8996: Add device node for qcom qusb2 phy Date: Mon, 31 Jul 2017 12:14:41 +0530 Message-Id: <1501483484-2207-2-git-send-email-vivek.gautam@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501483484-2207-1-git-send-email-vivek.gautam@codeaurora.org> References: <1501483484-2207-1-git-send-email-vivek.gautam@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170730_234516_963886_1E270949 X-CRM114-Status: GOOD ( 10.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, Vivek Gautam , 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-Virus-Scanned: ClamAV using ClamSMTP Adding device node for QUSB2 phy and the required infrastructure to enable support for the same. This phy is used by dwc3 controller present on msm8996. Signed-off-by: Vivek Gautam --- arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 8 +++++ arch/arm64/boot/dts/qcom/msm8996.dtsi | 51 ++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi index 5366708ee78f..4476e9238150 100644 --- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi @@ -88,6 +88,14 @@ cd-gpios = <&msmgpio 38 0x1>; status = "okay"; }; + + phy@7411000 { + status = "okay"; + }; + + phy@7412000 { + status = "okay"; + }; }; diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index d6a30fe81b77..019ec9345dbc 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -621,6 +621,57 @@ <960000000>, <825000000>; }; + + qfprom@74000 { + compatible = "qcom,qfprom"; + reg = <0x74000 0x8ff>; + #address-cells = <1>; + #size-cells = <1>; + + qusb2p_hstx_trim: hstx_trim@24e { + reg = <0x24e 0x2>; + bits = <5 4>; + }; + + qusb2s_hstx_trim: hstx_trim@24f { + reg = <0x24f 0x1>; + bits = <1 4>; + }; + }; + + hsusb_phy1: phy@7411000 { + compatible = "qcom,msm8996-qusb2-phy"; + reg = <0x7411000 0x180>; + #phy-cells = <0>; + + clocks = <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>, + <&gcc GCC_RX1_USB2_CLKREF_CLK>; + clock-names = "cfg_ahb", "ref"; + + vdda-pll-supply = <&pm8994_l12>; + vdda-phy-dpdm-supply = <&pm8994_l24>; + + resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>; + nvmem-cells = <&qusb2p_hstx_trim>; + status = "disabled"; + }; + + hsusb_phy2: phy@7412000 { + compatible = "qcom,msm8996-qusb2-phy"; + reg = <0x7412000 0x180>; + #phy-cells = <0>; + + clocks = <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>, + <&gcc GCC_RX2_USB2_CLKREF_CLK>; + clock-names = "cfg_ahb", "ref"; + + vdda-pll-supply = <&pm8994_l12>; + vdda-phy-dpdm-supply = <&pm8994_l24>; + + resets = <&gcc GCC_QUSB2PHY_SEC_BCR>; + nvmem-cells = <&qusb2s_hstx_trim>; + status = "disabled"; + }; }; adsp-pil {