From patchwork Wed Nov 6 08:46:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 178633 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp303739ilf; Wed, 6 Nov 2019 00:47:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxanzoH3UbczgMHzr3hp9WyCTL9VEbuSWH3S1wQz6OJfWf7bFieTPWTKDqS8djzQuEr74BC X-Received: by 2002:a50:ef17:: with SMTP id m23mr1338775eds.81.1573030041552; Wed, 06 Nov 2019 00:47:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573030041; cv=none; d=google.com; s=arc-20160816; b=sNyenSrphopxP7fgC4LMarrJP0W/dNeIfoSLTVms12tmlY8c2YbgZnGbFcVDoDBl2b vJIntQUMJ46TOFu1kfhV5W+xy8yIpgRhhhtEr/ccy8eIHElUL7VTlsDlUTRTatIc+pf1 /bXJ7ypjf70n5uycQsl7/x28pFmLKx8beWcf9Tlm3rNa25lt7EV047KPNv2SGHlaXl9R MnHJUQ4rqrjf2pX4xx2tp+IWTdSaSOS+kTzax9GkO2NJzYDlzuVHq17jCf6/pHWKK6gk W+zF5ZigTrFJ+RsL/F68trqF2Kf1wXlyuS8sH6/Nu3gDfjEd3rjOeU5ESsHOyIiYu4lL 8wng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=HN5vBIzuDbN5lh9noGw5E7wI4bbEHHZjKPRdWFINRwI=; b=Sx2SWsDxflzDFBlUXlUtCjT2wdHFR8Mm/SLVtaoiu23H52J3cI4V//LxljV3wdl8ZA von34UiTRc5u5jgEd2R4bb7Q+/dIxOv/zLY11QjlctakCFl/2uiW3pQD0kQKyX5UQ4X8 6WgOwqdEeQ9JPmqexd12o1pPcEU3kacNm822W7ad2XEDvkMl1c3oMh0nfXwc17yN4RSa DhfAWhfLoUcGFOFa6rVRJuUHmik4dbc6PvbE18KHa/PJCHQg1+8z3fSP/G8P6WYLseV7 KHOL0Vv60LAdmai9iTj5UsRf8SrLT43ykYdNnMLQOmzWMzr/+gYh680i9yu1eX2adIfn 6mYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BY5Q1Ag4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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. [209.132.180.67]) by mx.google.com with ESMTP id j18si12037680eda.278.2019.11.06.00.47.21; Wed, 06 Nov 2019 00:47:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BY5Q1Ag4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1731513AbfKFIrT (ORCPT + 26 others); Wed, 6 Nov 2019 03:47:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:51014 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730178AbfKFIrS (ORCPT ); Wed, 6 Nov 2019 03:47:18 -0500 Received: from localhost.localdomain (unknown [223.226.46.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 91760206A3; Wed, 6 Nov 2019 08:47:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573030037; bh=QlCZGgwKxaEkTEzsEFbie7EjDl/Pz20nyu4/Pp/JumM=; h=From:To:Cc:Subject:Date:From; b=BY5Q1Ag499IbAp9AaGG5mXDG5zDwEjKKg/VGn4SkrWrPANK7Admo3WU8LtFwGxVQp snt37EjOkqY2RmA9c6OeJsMeGFYF0456g61JHzTkOnca+CyOUCHRDNg9Enn609wMsZ Rto/clU6de/OqjaCN2D8ZxjoYBgExcM9Bnp/qA4M= From: Vinod Koul To: Andy Gross Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: qcom: sm8150: Add ufs nodes Date: Wed, 6 Nov 2019 14:16:55 +0530 Message-Id: <20191106084656.1749954-1-vkoul@kernel.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the ufs hc node and ufs phy nodes found in SM8150 Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 68 ++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) -- 2.23.0 diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index a9b1cabccbf6..f36d621a53e2 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -508,6 +508,74 @@ }; }; + ufs_mem_hc: ufshc@1d84000 { + compatible = "qcom,sm8150-ufshc", "qcom,ufshc", + "jedec,ufs-2.0"; + reg = <0 0x01d84000 0 0x2500>; + interrupts = ; + phys = <&ufs_mem_phy_lanes>; + phy-names = "ufsphy"; + lanes-per-direction = <2>; + #reset-cells = <1>; + resets = <&gcc GCC_UFS_PHY_BCR>; + reset-names = "rst"; + + 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 = + <37500000 300000000>, + <0 0>, + <0 0>, + <37500000 300000000>, + <0 0>, + <0 0>, + <0 0>, + <0 0>; + + status = "disabled"; + }; + + ufs_mem_phy: phy@1d87000 { + compatible = "qcom,sm8150-qmp-ufs-phy"; + reg = <0 0x01d87000 0 0x18c>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + clock-names = "ref", + "ref_aux"; + clocks = <&gcc GCC_UFS_MEM_CLKREF_CLK>, + <&gcc GCC_UFS_PHY_PHY_AUX_CLK>; + + 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>; + }; + }; + tcsr_mutex_regs: syscon@1f40000 { compatible = "syscon"; reg = <0x0 0x01f40000 0x0 0x40000>; From patchwork Wed Nov 6 08:46:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 178634 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp303752ilf; Wed, 6 Nov 2019 00:47:23 -0800 (PST) X-Google-Smtp-Source: APXvYqw0c6NDWQkDrWTJXJap8RgQr6BPhKA/cO3YLwqE9Qj61ya9a1BfaGr+NmIfvzfSiM8sgzic X-Received: by 2002:aa7:cdc6:: with SMTP id h6mr401743edw.15.1573030043273; Wed, 06 Nov 2019 00:47:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573030043; cv=none; d=google.com; s=arc-20160816; b=bwoQur/XPppYnya4UZ+q8HQypwrZpQqpisALNXKPIiUb+nFnI4RaOoRQ8XolQ+i4L9 GApX+WiYLptL5537tzCmiq1BqALZqz6GniAjMSiRn8jSZwzNMu3QmpA55wwwCsN3/dg6 L1X0pp8vUSVWwRo2wnaAtKsXdWgK2yCkUnZcOYoGHec3pstFtNXyrXMbpTiV3h4R6Ek/ vf3Pjyy4r67c8NzgpLrS/d/mEdpW4ubJtUv9/utw5o6X72N1OATLjRhAuABJfITJR3y4 utApYUjYL2jD3P9+cQ+FEJRAZAFmmZf5CRUoC3KwuGQdmV3eH860qrp6CanILlg7/oan d1dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gOIKSZ0F7Bv8tGPgTPIuNSnsWPL968OdoYLuVGVyCzk=; b=YsPEu7HBhUSZKesRMRlPzIeGwTWB7yyrAu5GgNR+JPQT+6ngwzB3f9lCSMkhuQufXT 0oqTVAufzD5rYqYDaPiDuFvl0kzmlZQWq4NpF5JSnGH8Z8HhDbd370/+apo4Xu9/lGVb mxsmhS7yB0X1IXqlujbitCBzxJkXNE8Wo3z1W058w9lDlBVIiaPA4Z3WjURSlX6FJ6wZ SF71dIB0nMqxgfprEGsOhXmIt6nVAqcPYnmNpoCgmW7ZkNLGpZSQepE8m8VFC5lz6Z3S aY5KLIFyms1ic+zVFlzk3m/vqdhvnZPlzttJBI0EDno1qMcJ+7M19gOdRN4KUeWGY7ol TA2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fyrHYJxM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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. [209.132.180.67]) by mx.google.com with ESMTP id j18si12037680eda.278.2019.11.06.00.47.23; Wed, 06 Nov 2019 00:47:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fyrHYJxM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1731543AbfKFIrW (ORCPT + 26 others); Wed, 6 Nov 2019 03:47:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:51092 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730178AbfKFIrV (ORCPT ); Wed, 6 Nov 2019 03:47:21 -0500 Received: from localhost.localdomain (unknown [223.226.46.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DCAD1217F4; Wed, 6 Nov 2019 08:47:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573030040; bh=uf5TG+Wknq5QFhY1vd52nLhyqhyPLL2HLPrmiOwNrQU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fyrHYJxMwZjz/plAbEBGPqQwt2xxQmSMkNqoYXbuQDqvMGdqXk6nUcjXelIvql9iQ DY0CQS1wqCxiP64X2mQDLqMTniFa9WknjsAguHXl5KkaGMftEQn7jPx+v7nVOoMwt8 9k20EoHnCZERZ3XarYwKxw67a7geiRfUAZGaJoU4= From: Vinod Koul To: Andy Gross Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: qcom: sm8150-mtp: Enable UFS nodes Date: Wed, 6 Nov 2019 14:16:56 +0530 Message-Id: <20191106084656.1749954-2-vkoul@kernel.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191106084656.1749954-1-vkoul@kernel.org> References: <20191106084656.1749954-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable the UFS HC and phy nodes and add regulators used by these. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150-mtp.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) -- 2.23.0 diff --git a/arch/arm64/boot/dts/qcom/sm8150-mtp.dts b/arch/arm64/boot/dts/qcom/sm8150-mtp.dts index d4c240a56d2e..1eb93a768a85 100644 --- a/arch/arm64/boot/dts/qcom/sm8150-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8150-mtp.dts @@ -385,3 +385,23 @@ &uart2 { status = "okay"; }; + +&ufs_mem_hc { + status = "okay"; + + vcc-supply = <&vreg_l10a_2p5>; + vcc-max-microamp = <750000>; + vccq-supply = <&vreg_l9a_1p2>; + vccq-max-microamp = <700000>; + vccq2-supply = <&vreg_s4a_1p8>; + vccq2-max-microamp = <750000>; +}; + +&ufs_mem_phy { + status = "okay"; + + vdda-phy-supply = <&vdda_ufs_2ln_core_1>; + vdda-max-microamp = <90200>; + vdda-pll-supply = <&vreg_l3c_1p2>; + vdda-pll-max-microamp = <19000>; +};