Message ID | 20221116125112.2788318-3-abel.vesa@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp123656wru; Wed, 16 Nov 2022 04:58:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf4V74diq7WYmW5W1OMSrnLiU6V+c245iYWcOfo3+f4F5K2V2hVREjSkzIE87brnwfkafmhH X-Received: by 2002:a17:906:950d:b0:78d:9b4f:44ee with SMTP id u13-20020a170906950d00b0078d9b4f44eemr17345768ejx.679.1668603538502; Wed, 16 Nov 2022 04:58:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668603538; cv=none; d=google.com; s=arc-20160816; b=iAKFP37y3daCyM48Yy70vxQ2Hvxq0TMMM6mDsrVdvsOGLK01j0YZ9r5Uwy8YnFZDf6 PkyVycpowJfPCEWRdzh2V7m62qYLWnK/Lc069ZFeZVnq0QxD5Y5ke7Mfvm3cQHOcyyuw H3mtAz+3WhA+dlrdd2pcJ8DsEXUaZDnv3zQ3RlPrvnatUd9x7p0+thb/zFE6bmVmaYUF 4Eyz+hcBBCv3XVNDE9zORmeaHsuXijlRRZD9jqa1CqlSz/zWdtk5T6RP8BKDabfTUO0D lhebK6PNBAe0djNQ1EumNmsHDQ0lKaQIZrJdlBay3bDk0NoV3se+OA+10Bl9fVErsFyH 9V2g== 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=H2H1d5sAZJ+t9NwoF1iOHgYCETQzv/jXX7CIaFm3b3E=; b=IL+zoaNIb3Ja6xoYqRW/LnOnYvATUcCRK4IfBMwuZo5GtOVKc5yZlsRwuvvxSFjepc onNQOd7hr8DEV+UdITbS2JowGQMSSq1QdOl+g900Os7lhMICtd5FJxZMDKhEz62wN1JW 8znMPR8YZS0bnFVWKZSCz4nz6E7e5sVj0CcgJ13qfs8xTs1jaMuLKayyUpCVYFNAxbIR 0YuUTcOpLBsHDBrrV5Jo+6/KzNpGqlzyGqWLKI/fB6LJafE6CawIu1RsdEv9SBLoCv/i AghSWCXxdSLuoyO0tuQJcv0Zxv6aRxe5jUgV1EW5dYq14Wm+gYD0nC2qdGz35lN3Kurd N7fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gGxjSUZp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf36-20020a1709077f2400b0078034101c0esi15599079ejc.978.2022.11.16.04.58.34; Wed, 16 Nov 2022 04:58:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gGxjSUZp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233504AbiKPMvo (ORCPT <rfc822;just.gull.subs@gmail.com> + 99 others); Wed, 16 Nov 2022 07:51:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233205AbiKPMvi (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 16 Nov 2022 07:51:38 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 625171AF0B for <linux-kernel@vger.kernel.org>; Wed, 16 Nov 2022 04:51:37 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id v7so11840045wmn.0 for <linux-kernel@vger.kernel.org>; Wed, 16 Nov 2022 04:51:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=H2H1d5sAZJ+t9NwoF1iOHgYCETQzv/jXX7CIaFm3b3E=; b=gGxjSUZpAml1aIyqHw3VVmLjwPSVVASQetUasiWHCeAesZswbx+yYG2gYgnO4+3WqF rODtwr/NO5kVFQQBcZfxlOe56Wi9hWxGXuAEe6RNhHS47BlNaDIvZj5KFlSF4VWWdD6k XsqcQyzTl3KryVtnlovRE5RlktX5W7UmqLt+Y/AGIijJ7j4PvNzA/nlEJsX8lmSw+v9Q 2bZ1nc46gKq9Q639tmsMTWiEmfy3JiphjugAX6sLrqFc4JqOMD9NCT4xvWdolKMuk2T0 eNupuvbpBoCqju2TFAynQQX5pk11MeDw0uW/2TYMIBb268xjoWaL/2MOgxUxzKaO4JET iL/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H2H1d5sAZJ+t9NwoF1iOHgYCETQzv/jXX7CIaFm3b3E=; b=Mttww/Uyq/c580kQeNGJQn4KOigXPypYEUSXOvSkI1DXOyEaMvX9AetLF6LQEgFDXs gr1INg6jEr53xecvVsYwUE+F5nROYVYw2POtomlRkshuoXu0SAtzTSfuoov16fnTVeKh 6heKoeEI9yOba3Bk51R5PscvvcrCEVaVGSVT2i8lD+KelQNdGjFljAz4+ZnGqM1NE05R Jjmi2pTEGIm0gMddKLLmgkBrOMSd49X03LwFN6n3cbKLo+owP+KGnzDqQK0fxrfTa3B6 xcnLj1ZnbqiAYvdcOJiEojGL0zPrp6GUypSv7+TbHIlG7jXtef1rlWYH5B2zdGCtPwy0 9G4Q== X-Gm-Message-State: ANoB5pkicLh7XR/Vd8WCzPAGg+y5rvaApejh5PLl1D/cZ0TNZVwORP4L iwcfES+oU/JLLU/9DEg9Bui8/qcex3Umtw== X-Received: by 2002:a05:600c:17cf:b0:3cf:608b:1b6a with SMTP id y15-20020a05600c17cf00b003cf608b1b6amr2077711wmo.20.1668603095928; Wed, 16 Nov 2022 04:51:35 -0800 (PST) Received: from localhost.localdomain ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id d16-20020a5d6450000000b0022cc0a2cbecsm15386776wrw.15.2022.11.16.04.51.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 04:51:35 -0800 (PST) From: Abel Vesa <abel.vesa@linaro.org> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: qcom: sm8550-mtp: Add UFS host controller and PHY node Date: Wed, 16 Nov 2022 14:51:12 +0200 Message-Id: <20221116125112.2788318-3-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221116125112.2788318-1-abel.vesa@linaro.org> References: <20221116125112.2788318-1-abel.vesa@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749657624437531175?= X-GMAIL-MSGID: =?utf-8?q?1749657624437531175?= |
Series |
arm64: dts: qcom: sm8550: Add UFS HC and PHY
|
|
Commit Message
Abel Vesa
Nov. 16, 2022, 12:51 p.m. UTC
Enable UFS host controller and PHY node on SM8550 MTP board.
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
---
arch/arm64/boot/dts/qcom/sm8550-mtp.dts | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
Comments
On 16/11/2022 13:51, Abel Vesa wrote: > Enable UFS host controller and PHY node on SM8550 MTP board. > > Signed-off-by: Abel Vesa <abel.vesa@linaro.org> > --- > arch/arm64/boot/dts/qcom/sm8550-mtp.dts | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm8550-mtp.dts b/arch/arm64/boot/dts/qcom/sm8550-mtp.dts > index d4c8d5b2497e..fef7793a7dec 100644 > --- a/arch/arm64/boot/dts/qcom/sm8550-mtp.dts > +++ b/arch/arm64/boot/dts/qcom/sm8550-mtp.dts > @@ -417,3 +417,25 @@ data-pins { > &uart7 { > status = "okay"; > }; > + > +&ufs_mem_hc { > + status = "okay"; Status last, please. > + > + reset-gpios = <&tlmm 210 GPIO_ACTIVE_LOW>; > + > + vcc-supply = <&vreg_l17b_2p5>; > + vcc-max-microamp = <1300000>; All these -microamp properties are downstream and do not exist in the mainline kernel. Remove them. Konrad > + vccq-supply = <&vreg_l1g_1p2>; > + vccq-max-microamp = <1200000>; > + vccq2-supply = <&vreg_l3g_1p2>; > + vccq2-max-microamp = <100>; > +}; > + > +&ufs_mem_phy { > + status = "okay"; > + > + vdda-phy-supply = <&vreg_l1d_0p88>; > + vdda-phy-max-microamp = <188000>; > + vdda-pll-supply = <&vreg_l3e_1p2>; > + vdda-pll-max-microamp = <18300>; > +};
On 22-11-16 13:56:36, Konrad Dybcio wrote: > > > On 16/11/2022 13:51, Abel Vesa wrote: > > Enable UFS host controller and PHY node on SM8550 MTP board. > > > > Signed-off-by: Abel Vesa <abel.vesa@linaro.org> > > --- > > arch/arm64/boot/dts/qcom/sm8550-mtp.dts | 22 ++++++++++++++++++++++ > > 1 file changed, 22 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sm8550-mtp.dts b/arch/arm64/boot/dts/qcom/sm8550-mtp.dts > > index d4c8d5b2497e..fef7793a7dec 100644 > > --- a/arch/arm64/boot/dts/qcom/sm8550-mtp.dts > > +++ b/arch/arm64/boot/dts/qcom/sm8550-mtp.dts > > @@ -417,3 +417,25 @@ data-pins { > > &uart7 { > > status = "okay"; > > }; > > + > > +&ufs_mem_hc { > > + status = "okay"; > Status last, please. Yep. Will do. > > > + > > + reset-gpios = <&tlmm 210 GPIO_ACTIVE_LOW>; > > + > > + vcc-supply = <&vreg_l17b_2p5>; > > + vcc-max-microamp = <1300000>; > All these -microamp properties are downstream and do not exist in the > mainline kernel. Remove them. > Actually, ufshcd-qcom complains if they are missing: [ 3.287836] ufshcd-qcom 1d84000.ufshc: ufshcd_populate_vreg: unable to find vcc-max-microamp [ 3.331904] ufshcd-qcom 1d84000.ufshc: ufshcd_populate_vreg: unable to find vccq-max-microamp [ 3.346766] ufshcd-qcom 1d84000.ufshc: ufshcd_populate_vreg: unable to find vccq2-max-microamp > Konrad > > + vccq-supply = <&vreg_l1g_1p2>; > > + vccq-max-microamp = <1200000>; > > + vccq2-supply = <&vreg_l3g_1p2>; > > + vccq2-max-microamp = <100>; > > +}; > > + > > +&ufs_mem_phy { > > + status = "okay"; > > + > > + vdda-phy-supply = <&vreg_l1d_0p88>; > > + vdda-phy-max-microamp = <188000>; These ones from PHY I can drop, since the driver won't complain. > > + vdda-pll-supply = <&vreg_l3e_1p2>; > > + vdda-pll-max-microamp = <18300>; > > +};
diff --git a/arch/arm64/boot/dts/qcom/sm8550-mtp.dts b/arch/arm64/boot/dts/qcom/sm8550-mtp.dts index d4c8d5b2497e..fef7793a7dec 100644 --- a/arch/arm64/boot/dts/qcom/sm8550-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8550-mtp.dts @@ -417,3 +417,25 @@ data-pins { &uart7 { status = "okay"; }; + +&ufs_mem_hc { + status = "okay"; + + reset-gpios = <&tlmm 210 GPIO_ACTIVE_LOW>; + + vcc-supply = <&vreg_l17b_2p5>; + vcc-max-microamp = <1300000>; + vccq-supply = <&vreg_l1g_1p2>; + vccq-max-microamp = <1200000>; + vccq2-supply = <&vreg_l3g_1p2>; + vccq2-max-microamp = <100>; +}; + +&ufs_mem_phy { + status = "okay"; + + vdda-phy-supply = <&vreg_l1d_0p88>; + vdda-phy-max-microamp = <188000>; + vdda-pll-supply = <&vreg_l3e_1p2>; + vdda-pll-max-microamp = <18300>; +};