From patchwork Mon Dec 10 19:28:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evan Green X-Patchwork-Id: 10722299 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 EEB356C5 for ; Mon, 10 Dec 2018 19:29:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DDB332A9BB for ; Mon, 10 Dec 2018 19:29:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D1BF62A9D4; Mon, 10 Dec 2018 19:29:16 +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 734272A9BB for ; Mon, 10 Dec 2018 19:29:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729301AbeLJT24 (ORCPT ); Mon, 10 Dec 2018 14:28:56 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:34150 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729298AbeLJT2z (ORCPT ); Mon, 10 Dec 2018 14:28:55 -0500 Received: by mail-pg1-f196.google.com with SMTP id 17so5430522pgg.1 for ; Mon, 10 Dec 2018 11:28:55 -0800 (PST) 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=029zCa/kXIkbhjJJ9PqSXZqbJI7NE+AHEj0/comb9Wo=; b=d/6zGUeizfINWF6i/7MFl7xN5dEiWJ1DAB7N+R6aLCDr4E0XdJF3QAv85agjkSkmXD nUyAYiiRV/wW0bh8vXiE+buvUDrHKaSLBVm1BhAn2aCTeMejOb+2+y5X940McVOcXNo2 iKjgYXAyAjwmEEzYg/r9s06YA7WWoBqETsvlk= 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=029zCa/kXIkbhjJJ9PqSXZqbJI7NE+AHEj0/comb9Wo=; b=rtL+m0Bo626Bu2a71dbEQkHKnEns3I0US/JYIm9HA+mrDi0jAFwpXJChVwUkp0Sgjt YHO9vgXUkINvakY4eKvABMaeupthgr+uD7u4yfoyHB12l60EczGgwzjW2vH6UW75vwrv SaXXdPpCRF5qusdVJDvcH8hrYv187npSyXbHRQI0oBq4Bgsc3Y6Hr4OLimbTQRFU1QDP vL2+FqodRh3qZahlMVfpgW7SsOVCi0i35wOQzoJpC+s2hAvTxNcuR/tCDw+87HqNqS2s QMX0REhTVTsHxBJfSkzbgqd8720NJ8m1yMu+7PI0FKtrHOuiblbFo7xWRljuGD25ueC9 e2ag== X-Gm-Message-State: AA+aEWZs0R4k1vXhu9wC2voyBk7c2EQXevY5Kv6jqHDQPLscnNiiEcTv 1i/e2YcRYt5Oc7FLh0eKmZqUdg== X-Google-Smtp-Source: AFSGD/U6ePPVvMC3BNNZ06p7C7Kq/8fRGbumzD0eC0kooFSkrAq0ArK6o7FhXT+nrk8c4M96vzgzpA== X-Received: by 2002:a62:e30d:: with SMTP id g13mr13425486pfh.151.1544470135036; Mon, 10 Dec 2018 11:28:55 -0800 (PST) Received: from evgreen2.mtv.corp.google.com ([2620:15c:202:201:ffda:7716:9afc:1301]) by smtp.gmail.com with ESMTPSA id v12sm18318674pgg.41.2018.12.10.11.28.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Dec 2018 11:28:54 -0800 (PST) From: Evan Green To: Andy Gross , Kishon Vijay Abraham I Cc: Douglas Anderson , Stephen Boyd , Evan Green , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , David Brown , Mark Rutland , linux-soc@vger.kernel.org Subject: [PATCH v7 3/5] arm64: dts: qcom: sdm845: add UFS controller Date: Mon, 10 Dec 2018 11:28:24 -0800 Message-Id: <20181210192826.241350-4-evgreen@chromium.org> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20181210192826.241350-1-evgreen@chromium.org> References: <20181210192826.241350-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 Add the UFS controller and PHY to SDM845. Signed-off-by: Evan Green Signed-off-by: Douglas Anderson Reviewed-by: Bjorn Andersson --- As Doug mentioned in v2, this should land after (or with) the driver fix in this series. Changes in v7: None Changes in v6: - Removed resets and reset-names (Bjorn) - Renamed nodes (Bjorn) Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - Renamed ufsphy to phy (Vivek) - Removed #clock-cells (Vivek) arch/arm64/boot/dts/qcom/sdm845.dtsi | 64 ++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index b72bdb0a31a57..4ad4eaf1d61ce 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -808,6 +808,70 @@ }; }; + ufs_mem_hc: ufshc@1d84000 { + compatible = "qcom,sdm845-ufshc", "qcom,ufshc", + "jedec,ufs-2.0"; + reg = <0x1d84000 0x2500>; + interrupts = ; + phys = <&ufs_mem_phy_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>; + + status = "disabled"; + }; + + ufs_mem_phy: 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"; + + ufs_mem_phy_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>;