Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3162677pxk; Tue, 15 Sep 2020 11:39:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHtGUOr0Pe1oFijRFcFvg42CBwdFRLVKT8V4iYZa/tPg5MmALtUbJWTypgGLMzULPDSfxV X-Received: by 2002:a50:ce06:: with SMTP id y6mr24214579edi.273.1600195160098; Tue, 15 Sep 2020 11:39:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600195160; cv=none; d=google.com; s=arc-20160816; b=og5kzlXwz8itkSwUaLhXzSts5ezwGJ5/7xSo9neq6rakuBc3XicpEdFHd/lx2sD0Cf 8jTyP78W03wsv8E2PSSowkEXQiIjxfU09k7lpmo224zMmG+3w1c/c2KiTrvxQYtbqlL9 b57gfHw5OxRogg0rzKSlh49/Icjw63hFYsXOdf6cbXJt9XfHzFwiIXcgHUJ7Oa43X4/T 2Exx5IMgKvS5m90o9iDLg6mc0+WE13EBe6XOEV24+70wmWmTGFLI8HIpkLfigzR7H16s ypVNr0SO88NU0fr/pduj/pzGHs/Mzj24MqeC5FPkbV2xIJ6cixmydjsoca0I2IhFGYtF wkcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=GgZ/I9dmFcrJX4+Gcxzi1wWr8Iu40sI3TTgomrtpN/0=; b=orsqH1vo16cso72mmR0ZfL3FR7UBB5zkA/lnlYDPfFQn3kN142UmB/nZAf35PFgfER 86X9yH4jMytYDhRsai7hEbFnAL3Z2vAluoP5UiGjck9ECsLJ2OIOKi9MeOtJmGD9HiN0 Mpk3+8uEkp/wwhL0Fy1u8GSu85GPK/EhGFTmcZmO1hkw118mQikY/ezSwF0uPzVcnqsq 9uZtW9Gg96iia5w9X8IXEary8jzyUi3u+QIeOis6bavGhMjyu3eeex4P298fSXKgH8+N c/D9vOaFZSwh6518FJkw91lj7uM4EYvm/WN1IB/IaO+C7t2i4zn8KIJ/qfzS4Kfy8PDf avZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=z8MJShO7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d7si9965028ejc.635.2020.09.15.11.38.57; Tue, 15 Sep 2020 11:39:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linaro.org header.s=google header.b=z8MJShO7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727954AbgIOShA (ORCPT + 99 others); Tue, 15 Sep 2020 14:37:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727957AbgIOSgG (ORCPT ); Tue, 15 Sep 2020 14:36:06 -0400 Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56B91C06178A for ; Tue, 15 Sep 2020 11:36:06 -0700 (PDT) Received: by mail-qt1-x843.google.com with SMTP id g3so3968031qtq.10 for ; Tue, 15 Sep 2020 11:36:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=GgZ/I9dmFcrJX4+Gcxzi1wWr8Iu40sI3TTgomrtpN/0=; b=z8MJShO7zBTWm3yVC0Q2B1jLLQdjAl69a3uv6ayRBTCgRBwaOGvRCejJjlUYVvyhob C515IoetU9yk0QA2QzTSEYI4Hy2csIlbO98uYArEQ6vGBlBIbqumJWE2bDSdNtbbnFfa xinHnfJDeLSD/ldAg/WkI/U1uzw0rPtga9bJMz0WJ3ZKr8XLEKd/ILfjhZMJO5pHuE9D 7Z0c368zo5Yl2zKPJWdR7WllBb1d6b0Y+72fA1aDPG2oEFTTRcSfyZhk8vYo5TmyiUXE 787sDu5TyHgeDTHlhSsP6+59QdthTLl8S+QMi1DiSFc37jUvJIFJI2HNWsbPZls0YKJ/ Xr4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=GgZ/I9dmFcrJX4+Gcxzi1wWr8Iu40sI3TTgomrtpN/0=; b=hVRQEEZohqjTjAhK2gngwkJxtdMWvWJ9ZnKR/t99nJGjONAVmbvC2I6hs6K8Iaufh9 Cxpc169z0p8ZEHUYLOoU1om8IIyx7JolQMxWQ7+9XxvyXXbylb0yC9PdvizE0ol5eY0c T5p3wYNn8xQlXfzKEDmdESJPjRjhNsnTe3MUcOPrHh0LtDmLKJpMoeLlUhxfPZmuzJ/k nQB8cigdXeCdW0crzmRfenyZen8hCVb4UyMOQ3NDg1964ku+nev+cXH0BMQLCw0vC2ou kGb8DY07Uy5ruI1GVovNZNy04g5k6ab5Mvj4QTj7IQgtg50W2EqvS54HMIGjz4MZ7oWy sa/w== X-Gm-Message-State: AOAM531IRIF+5iTxsMOcGimLbfsHCOjPk0oYkJKnMfw9kjmoiXrGAFm6 VIcKTvG2cmCpBJOktWyAB3e37w== X-Received: by 2002:ac8:1e07:: with SMTP id n7mr270166qtl.156.1600194965114; Tue, 15 Sep 2020 11:36:05 -0700 (PDT) Received: from uller (ec2-34-197-84-77.compute-1.amazonaws.com. [34.197.84.77]) by smtp.gmail.com with ESMTPSA id v18sm16726433qtq.15.2020.09.15.11.36.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 11:36:04 -0700 (PDT) Date: Tue, 15 Sep 2020 18:36:02 +0000 From: Bjorn Andersson To: nguyenb@codeaurora.org Cc: cang@codeaurora.org, asutoshd@codeaurora.org, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-arm-msm@vger.kernel.org, Rob Herring , Avri Altman , Vinod Koul , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list Subject: Re: [PATCH v1 1/2] scsi: dt-bindings: ufs: Add vcc-voltage-level for UFS Message-ID: <20200915183602.GK478@uller> References: <0a9d395dc38433501f9652a9236856d0ac840b77.1598939393.git.nguyenb@codeaurora.org> <20200915044154.GB670377@yoga> <748d238a3d9e53834a498c6f37f9f3c9@codeaurora.org> <20200915134335.GE670377@yoga> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 15 Sep 16:47 UTC 2020, nguyenb@codeaurora.org wrote: > On 2020-09-15 06:43, Bjorn Andersson wrote: > > On Tue 15 Sep 03:14 CDT 2020, nguyenb@codeaurora.org wrote: > > > > > On 2020-09-14 21:41, Bjorn Andersson wrote: > > > > On Tue 01 Sep 01:00 CDT 2020, Bao D. Nguyen wrote: > > > > > > > > > UFS's specifications supports a range of Vcc operating > > > > > voltage levels. Add documentation for the UFS's Vcc voltage > > > > > levels setting. > > > > > > > > > > Signed-off-by: Can Guo > > > > > Signed-off-by: Asutosh Das > > > > > Signed-off-by: Bao D. Nguyen > > > > > --- > > > > > Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt | 2 ++ > > > > > 1 file changed, 2 insertions(+) > > > > > > > > > > diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt > > > > > b/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt > > > > > index 415ccdd..7257b32 100644 > > > > > --- a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt > > > > > +++ b/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt > > > > > @@ -23,6 +23,8 @@ Optional properties: > > > > > with "phys" attribute, provides phandle > > > > > to UFS PHY node > > > > > - vdd-hba-supply : phandle to UFS host controller supply > > > > > regulator node > > > > > - vcc-supply : phandle to VCC supply regulator node > > > > > +- vcc-voltage-level : specifies voltage levels for VCC supply. > > > > > + Should be specified in pairs (min, max), > > > > > units uV. > > > > > > > > What exactly are these pairs representing? > > > The pair is the min and max Vcc voltage request to the PMIC chip. > > > As a result, the regulator output voltage would only be in this range. > > > > > > > If you have static min/max voltage constraints for a device on a > > particular board the right way to handle this is to adjust the board's > > regulator-min-microvolt and regulator-max-microvolt accordingly - and > > not call regulator_set_voltage() from the river at all. > > > > In other words, you shouldn't add this new property to describe > > something already described in the node vcc-supply points to. > > > > Regards, > > Bjorn > Thank you all for your comments. The current driver hardcoding 2.7V Vcc min > voltage > does not work for UFS3.0+ devices according to the UFS device JEDEC spec. > However, we will > try to address it in a different way. > Right, but what I'm saying is that you should remove the regulator_set_voltage() call from the driver and rely on the device's dts, in which case you won't have this problem. Thanks, Bjorn > Regards, > Bao > > > > > > > > > > > Is this supposed to be 3 pairs of (min,max) for vcc, vcc and vccq2 to be > > > > passed into a regulator_set_voltage() for each regulator? > > > Yes, that's right. I should include the other power supplies in this > > > change > > > as well. > > > > > > > > Or are these some sort of "operating points" for the vcc-supply? > > > > > > > > Regards, > > > > Bjorn > > > > > > > > > - vccq-supply : phandle to VCCQ supply regulator node > > > > > - vccq2-supply : phandle to VCCQ2 supply regulator node > > > > > - vcc-supply-1p8 : For embedded UFS devices, valid VCC range > > > > > is 1.7-1.95V > > > > > -- > > > > > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora > > > > > Forum, > > > > > a Linux Foundation Collaborative Project > > > > >