From patchwork Thu Feb 4 17:09:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 376324 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp1562607jah; Thu, 4 Feb 2021 11:24:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJyP3IPFSTi3v8EwObtuRHr5E/KmoLF7MyOiO+J21FbogrdN13i19qUcVkf5DFKIGae2m7Le X-Received: by 2002:a05:6402:3122:: with SMTP id dd2mr139047edb.262.1612466664071; Thu, 04 Feb 2021 11:24:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612466664; cv=none; d=google.com; s=arc-20160816; b=DJOWgtceG/kGHSMFDPlwkKSwG6/L2fit6CYVJegvf1dXjJDilov2QxxuR5+3X7otUl x59+SZ217mX4m9nMvWPnWW+WpNYsgT43O/tYlXCHxQssY+GtQqp4bK6GoMNZVIsoucYT uoQ0WvsXcp463RPY2GdwMUH7g/lPww5FikHV2jsIzhEaXa4NIlBXgjwwTHz4m2v/XSx2 fjizMMZwZn/sbQfgsGE6ozErXkiy07Z4j0qd+6doVPQ/P/wQdHiNtXtboQfvZCGNWTxk j0d3K3KmQaNmHg2rBexR/jF2kxUMlFnCueJnc1xblQ3Wr4+GbxEd5SYzCPv+omX8gHya DEdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=b2Ar8DcuzmPoMvXDDWemKruqtPNTkbsIeLRngZxVMFM=; b=C8vGFt/5oo75TuhkDhGtqFJJKWelDc7tu/G7Qi9R9fXQ6FB2gLyUjS2NJzmUnnpqSs OAXZ4fZxw2v25ft4eavC9FTkgjKhpgy9Etmr8yYc7KNoiI6U8y/u4+Fk3Gx9RBo5nqAW u3ADRNdN4bYSAUwm/aiBu+QrUnqSsTA5bVK5Wnkg5K2yLhApe9cViIbZYw0jZeOER4ju rMjmqeO8nk/xZEMcviB7am4A8FFhp/MeDAQyk04Yxd/goHVZvYcxvyrNdEcK2kHgM4kZ lyRGUg+8+gpYM2P4QWL1W4CFrXH8xtELxlApbC6ER2e+xNMoHujW6UxU5sLku06ItrpN 3ozg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mZb6C2ZH; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z9si4466267edr.555.2021.02.04.11.24.23; Thu, 04 Feb 2021 11:24:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mZb6C2ZH; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239799AbhBDTXJ (ORCPT + 16 others); Thu, 4 Feb 2021 14:23:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:56766 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237638AbhBDRKY (ORCPT ); Thu, 4 Feb 2021 12:10:24 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6D46B64F72; Thu, 4 Feb 2021 17:09:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612458568; bh=xoWq4aqI+4Cn3qczfLSrx0Hoi/7jeG+0q0yZ6kUSHEI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mZb6C2ZHWcIsQ9vh/meYf1QtwEykwrBwN/jD7JbFvj6AoZY9KwvNm4b9Di7dP59xt sEKVPjV+Tz4FehL5zPN+3XwEsc2XMhOQ2HRGNv12xeK3mKKEqtuFaqXqgACC8iOjoH K7sqE/+hBSCMP1AHSNFHBxYAIdhseiEr5Yf51lr1RqcDrl9vM4qEs7Wc0LPA+g+R/o GKePDhA+6pqiFucxd3JHdrITtlynclJ8rZrvFjgpceC9mpuhLJTBXocF53aHrLpiSl o10iqV1r+9ZZlO/KIHd12KZlN08a7CP3rYu6vFwmlpRLjTjvUPu7HtipzX+/lyaKt5 ScOr7Vz2PgPWw== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , linux-kernel@vger.kernel.org Subject: [PATCH 4/6] arm64: dts: qcom: Add SM8350 UFS nodes Date: Thu, 4 Feb 2021 22:39:05 +0530 Message-Id: <20210204170907.63545-5-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210204170907.63545-1-vkoul@kernel.org> References: <20210204170907.63545-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This adds UFS HC and UFS phy nodes to the SM8350 DTS Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 76 ++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) -- 2.26.2 diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index e51d9ca0210c..188f4011352c 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -593,6 +593,82 @@ rpmhcc: clock-controller { }; + ufs_mem_hc: ufshc@1d84000 { + compatible = "qcom,sm8350-ufshc", "qcom,ufshc", + "jedec,ufs-2.0"; + reg = <0 0x01d84000 0 0x3000>; + interrupts = ; + phys = <&ufs_mem_phy_lanes>; + phy-names = "ufsphy"; + lanes-per-direction = <2>; + #reset-cells = <1>; + resets = <&gcc 25>; + reset-names = "rst"; + + power-domains = <&gcc 3>; + + iommus = <&apps_smmu 0xe0 0x0>; + + clock-names = + "ref_clk", + "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 = + <&rpmhcc RPMH_CXO_CLK>, + <&gcc 155>, + <&gcc 16>, + <&gcc 154>, + <&gcc 170>, + <&rpmhcc RPMH_CXO_CLK>, + <&gcc 168>, + <&gcc 164>, + <&gcc 166>; + freq-table-hz = + <75000000 300000000>, + <75000000 300000000>, + <0 0>, + <0 0>, + <75000000 300000000>, + <0 0>, + <0 0>, + <75000000 300000000>, + <75000000 300000000>; + status = "disabled"; + }; + + ufs_mem_phy: phy@1d87000 { + compatible = "qcom,sm8350-qmp-ufs-phy"; + reg = <0 0x01d87000 0 0xe10>; + #address-cells = <2>; + #size-cells = <2>; + #clock-cells = <1>; + ranges; + clock-names = "ref", + "ref_aux"; + clocks = <&rpmhcc RPMH_CXO_CLK>, + <&gcc 161>; + + resets = <&ufs_mem_hc 0>; + reset-names = "ufsphy"; + status = "disabled"; + + ufs_mem_phy_lanes: lanes@1d87400 { + reg = <0 0x01d87400 0 0x108>, + <0 0x01d87600 0 0x1e0>, + <0 0x01d87c00 0 0x1dc>, + <0 0x01d87800 0 0x108>, + <0 0x01d87a00 0 0x1e0>; + #phy-cells = <0>; + #clock-cells = <0>; + }; + }; + usb_1_hsphy: phy@88e3000 { compatible = "qcom,sm8350-usb-hs-phy", "qcom,usb-snps-hs-7nm-phy";