From patchwork Thu Oct 18 21:09:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evan Green X-Patchwork-Id: 10648247 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0AC9D1057 for ; Thu, 18 Oct 2018 21:10:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F088A28D6D for ; Thu, 18 Oct 2018 21:10:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E40BC28D85; Thu, 18 Oct 2018 21:10:09 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D47628D6D for ; Thu, 18 Oct 2018 21:10:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727574AbeJSFM7 (ORCPT ); Fri, 19 Oct 2018 01:12:59 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:43275 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727528AbeJSFMu (ORCPT ); Fri, 19 Oct 2018 01:12:50 -0400 Received: by mail-pf1-f193.google.com with SMTP id p24-v6so15441551pff.10 for ; Thu, 18 Oct 2018 14:09:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=C21QYdTfz09iS1Hzt4A9FPL9X6rUDQrdVSY18Xmu2nc=; b=j3AUMW06Zb+x5XcfA2ieAgwKBdqTQXet6fKLzyexCpDMAV80GUZtajHaezgL1+Cb5x LOFI/+ccXerSqgE0YAgKWNdejoqa+OUz/DMOEUuTKFekIWhZvVfvzwHeU92uXlptaHyl t+pMcumyEFKi/Zej79xdF5BiZWsVtcMN2N6MM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=C21QYdTfz09iS1Hzt4A9FPL9X6rUDQrdVSY18Xmu2nc=; b=L5hX68s8Tv41Enw6WqVgrQSuGrIvmZkzQfUC0akJU9GvemXoDNTRs2AlOHE33zR6dX s4HnnRMrR4ZfkIt8y9Ok65wy/T/nxWspf/ymuZXPj4zmcWJ33xGichSelfGlpn0K2m2x fNYTfG2EYb9JAPKcfoBdwafty9KUEsju5emwDN7VVxR9WBDxaq40zv1KHFzPjC4xXCuj aj6rINV8HdSe7OUlO/LMzpOvGJB9T5DNrZYb1/Q2XXFQmZ4SgmRSuATeay4DagT9b9d6 QCO3EEz4S+7XQvel3D+43JWlXmnGP2wMbi7WzbpNJn6MYwZtKnM4mUaSWnuPiKs7fvWy KifQ== X-Gm-Message-State: ABuFfoi99mIeI98pDWQm55Wfh/gli58/gGEcBBLjjpmMLnHVE/uwIiEZ l2Pxj6LawIutuGf920J7ENzDLg== X-Google-Smtp-Source: ACcGV61shdQiXY0/t0sMdshDLoLybA+FspmUwKFllCf/vi2ReR0miNqNTwRCPEUOJ9NibNblXQHa4A== X-Received: by 2002:a63:2503:: with SMTP id l3-v6mr29811965pgl.69.1539896997573; Thu, 18 Oct 2018 14:09:57 -0700 (PDT) Received: from evgreen2.mtv.corp.google.com ([2620:15c:202:201:e418:c825:76cf:5f64]) by smtp.gmail.com with ESMTPSA id i29-v6sm35133678pfj.82.2018.10.18.14.09.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Oct 2018 14:09:56 -0700 (PDT) From: Evan Green To: Rob Herring , Mark Rutland , Andy Gross , David Brown , Kishon Vijay Abraham I , Douglas Anderson , Manu Gautam , Can Guo , Vivek Gautam , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, swboyd@chromium.org Cc: Evan Green Subject: [PATCH v2 3/5] arm64: dts: qcom: sdm845: add UFS controller Date: Thu, 18 Oct 2018 14:09:31 -0700 Message-Id: <20181018210933.113592-4-evgreen@chromium.org> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20181018210933.113592-1-evgreen@chromium.org> References: <20181018210933.113592-1-evgreen@chromium.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This change adds the UFS controller and PHY to SDM845. Signed-off-by: Evan Green Signed-off-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 67 ++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index b72bdb0a31a5..9c72edb678ec 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -808,6 +808,73 @@ }; }; + ufshc1: ufshc@1d84000 { + compatible = "qcom,sdm845-ufshc", "qcom,ufshc", + "jedec,ufs-2.0"; + reg = <0x1d84000 0x2500>; + interrupts = ; + phys = <&ufsphy1_lanes>; + phy-names = "ufsphy"; + lanes-per-direction = <2>; + power-domains = <&gcc UFS_PHY_GDSC>; + + clock-names = + "core_clk", + "bus_aggr_clk", + "iface_clk", + "core_clk_unipro", + "ref_clk", + "tx_lane0_sync_clk", + "rx_lane0_sync_clk", + "rx_lane1_sync_clk"; + clocks = + <&gcc GCC_UFS_PHY_AXI_CLK>, + <&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>, + <&gcc GCC_UFS_PHY_AHB_CLK>, + <&gcc GCC_UFS_PHY_UNIPRO_CORE_CLK>, + <&rpmhcc RPMH_CXO_CLK>, + <&gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>, + <&gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>, + <&gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>; + freq-table-hz = + <50000000 200000000>, + <0 0>, + <0 0>, + <37500000 150000000>, + <0 0>, + <0 0>, + <0 0>, + <0 0>; + + resets = <&gcc GCC_UFS_PHY_BCR>; + reset-names = "rst"; + + status = "disabled"; + }; + + ufsphy1: phy@1d87000 { + compatible = "qcom,sdm845-qmp-ufs-phy"; + reg = <0x1d87000 0x18c>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + clock-names = "ref", + "ref_aux"; + clocks = <&gcc GCC_UFS_MEM_CLKREF_CLK>, + <&gcc GCC_UFS_PHY_PHY_AUX_CLK>; + + status = "disabled"; + + ufsphy1_lanes: lanes@1d87400 { + reg = <0x1d87400 0x108>, + <0x1d87600 0x1e0>, + <0x1d87c00 0x1dc>, + <0x1d87800 0x108>, + <0x1d87a00 0x1e0>; + #phy-cells = <0>; + }; + }; + tcsr_mutex_regs: syscon@1f40000 { compatible = "syscon"; reg = <0x1f40000 0x40000>;