From patchwork Thu Dec 6 23:32:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evan Green X-Patchwork-Id: 10717243 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 21F9A109C for ; Thu, 6 Dec 2018 23:32:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0EE902EF3E for ; Thu, 6 Dec 2018 23:32:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 00C592EF55; Thu, 6 Dec 2018 23:32:30 +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 8AA962EF3E for ; Thu, 6 Dec 2018 23:32:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726356AbeLFXcZ (ORCPT ); Thu, 6 Dec 2018 18:32:25 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:41678 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726347AbeLFXcY (ORCPT ); Thu, 6 Dec 2018 18:32:24 -0500 Received: by mail-pl1-f194.google.com with SMTP id u6so887094plm.8 for ; Thu, 06 Dec 2018 15:32:24 -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=F36H2yFwmgGDNBfcZxCvb5Zmw+1JrX+IJ0TMEgz6BGY=; b=SZfDT2YyMoznP+45Ot7gW7PSDNHkLXoXKLT271i/Hi+9+a8dTVb2qsV549lMOy1bBA IK1scs1jioSFTEdgEvUlZG5nuCb4G+1DAK9VpzOKGOQ89taroolmNW2bYLgxKDP/KlIw zyliwmGDhj8RJLt+2tXDEMQP1ofDdwbdeBp6Y= 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=F36H2yFwmgGDNBfcZxCvb5Zmw+1JrX+IJ0TMEgz6BGY=; b=Dh9JjwwE5euyKIF08MNNt1Lf+iNbRKVrE+E4qXN6hbjNevADqN7Gwp68FWGZVsQ94K GFSyWEpy2DiYd9xRzZ52kSrSZ0Y123a2ppZPv8YcWVUQeYJiZRFfFTdbgyA4qmKJN6rO 9okY0MY/m1Sd29Ku5WBZzg7QSlp7Dn8WKUR6QW/MTq+j7yWWSgxZywvWWQqkaWERTHnU uzxR0bV1wdAVVTfCp6C8Cp/oKk94I14zJ4ZmwPVapHSJo4HFixO6W/ZPNdNlX+uqd68o 95CPvxq0vOryUtdXY6E9aWr97Tcsv2hevcZsUKSMRomJyay41b4rKIfnSftvVjhsWXNM FHMw== X-Gm-Message-State: AA+aEWb0DWb+DT71RQ9T1wdmWyR9csaVuMTZ0W6yYea7EBGEgnsVgWOh 8ggvouo15knAmuEX5JHHQGbbJw== X-Google-Smtp-Source: AFSGD/U4lPLOPNyEF9BrOeMbgYKkAJNaHWt2gwo7ycPa1wiY17d4DxNllSoO60q5ylJWQNR/dSlCdw== X-Received: by 2002:a17:902:4c85:: with SMTP id b5mr28830814ple.226.1544139143452; Thu, 06 Dec 2018 15:32:23 -0800 (PST) Received: from evgreen2.mtv.corp.google.com ([2620:15c:202:201:ffda:7716:9afc:1301]) by smtp.gmail.com with ESMTPSA id s190sm2100875pfb.103.2018.12.06.15.32.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Dec 2018 15:32:22 -0800 (PST) From: Evan Green To: Rob Herring , 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 Subject: [PATCH v6 3/5] arm64: dts: qcom: sdm845: add UFS controller Date: Thu, 6 Dec 2018 15:32:02 -0800 Message-Id: <20181206233205.193244-4-evgreen@chromium.org> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20181206233205.193244-1-evgreen@chromium.org> References: <20181206233205.193244-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 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 1419b0098cb38..9e4ad805d2936 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -816,6 +816,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>;