Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1423617pxk; Fri, 18 Sep 2020 12:03:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJ0EvjI5INhSEHdC6ORUOVLQFQaAuHIiuXwQ04MahDfJlyXUl2ffHSglJlWJP0tiragBmv X-Received: by 2002:a17:907:2078:: with SMTP id qp24mr40160204ejb.500.1600455800082; Fri, 18 Sep 2020 12:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600455800; cv=none; d=google.com; s=arc-20160816; b=Y/9UQSwhn1VjfI3gPZNhqRk5fhp+50AwS1NY7yFQVxWUwtX4clPRI5ul9uyLfkMXLn AZsrbdb/IFD8399mi7Rqe10m7M97+ApZqjtqeuFo5cgl1WufhqqtMgMT7rTqGSmpkT7F /5SCeOAWC4oLm5r5jsOGLA/0zSg1CyK+dql04OZi8oPXh6//bzTw96qkKGNFVVKgq5TB Hdx3HMbpGmq+3ohjIqW+vrYa4xysSmTfInG22PHAvZDC2H+TA8v1lu2VI06Sg2jKUvaI QU/c7OeTjJfDsbzK0zdCI075I2IaaITacPleARB0QLEWgapSvZg+CGfWiGkEMCUOQIcO LZOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=V5+ZWfK1fydCeRk9YLGPRFFUC5PlGnm18cRraSzJE9A=; b=wHC1+3PiKFucrIezgrttQPY+S+N/Se9ld/Z+6Vy2USeQsQKLp79cjPXDIbQhY/PGHT 1RW7YqXgZLBiZpxK63jYWVHi8wqa0W1KW0S/ANYJL0AzA6rPQr4340ykDgN+Y1Gw00y8 FVebVorzkaG+P/z+OGVfwgiMYrLKvzNhNUbDDL2/2rS4Lhm17xqJA24z8rp0TFbZhJ60 Lm7wrrJaOBa7klF9LVCT34GrXKrWhLCjG2xhE+3dlRM5hbmhAJQNkRzi+T+1oJOmaDaJ Ty1BWRoXg1v2d6pO/iLNB2TNDMe1xMdd4E8ISyj4XUPHz6Hc2wwUFDK7wzAB4eiHvVHx pmng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lBQ48smI; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si2758079edy.604.2020.09.18.12.02.55; Fri, 18 Sep 2020 12:03: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=@kernel.org header.s=default header.b=lBQ48smI; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726245AbgIRTB7 (ORCPT + 99 others); Fri, 18 Sep 2020 15:01:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:56430 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbgIRTB6 (ORCPT ); Fri, 18 Sep 2020 15:01:58 -0400 Received: from mail-ot1-f42.google.com (mail-ot1-f42.google.com [209.85.210.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AE02222208; Fri, 18 Sep 2020 19:01:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600455717; bh=rS84A/OaBg23yNAtPTq3plT5X3kOb7286omQM12f1Fk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=lBQ48smIRQIhIDWuplFGl2mJEcnYqMPakqetKj4pW2yatfyCMH9c1wXgyli7z/ZWn d39s0E0thPumFHv24BQtFlkwIcPw+9x6/8zHIf3wONcRQKvVaYgCAcAnNhkzELO5Ha C8pkBB5efZA4/zZ+GSLRZGH835T6n/Un3UenVLJ8= Received: by mail-ot1-f42.google.com with SMTP id q21so6340787ota.8; Fri, 18 Sep 2020 12:01:57 -0700 (PDT) X-Gm-Message-State: AOAM531Jb/tm6KXclqaZDWkbJ2BJma/eMT9KBJlFxRdIktggCP9VRyLt pW+AkTVm6W0i660/j08UDyysUqQET85EG6fMwA== X-Received: by 2002:a9d:6ada:: with SMTP id m26mr10145370otq.192.1600455716990; Fri, 18 Sep 2020 12:01:56 -0700 (PDT) MIME-Version: 1.0 References: <0a9d395dc38433501f9652a9236856d0ac840b77.1598939393.git.nguyenb@codeaurora.org> <20200914183505.GA357@bogus> In-Reply-To: From: Rob Herring Date: Fri, 18 Sep 2020 13:01:45 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 1/2] scsi: dt-bindings: ufs: Add vcc-voltage-level for UFS To: "Bao D. Nguyen" Cc: Can Guo , Asutosh Das , "Martin K. Petersen" , SCSI , linux-arm-msm , Bjorn Andersson , Avri Altman , Vinod Koul , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 15, 2020 at 2:10 AM wrote: > > On 2020-09-14 11:35, Rob Herring wrote: > > On Mon, Aug 31, 2020 at 11:00:47PM -0700, 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. > > > > The expectation is the regulator pointed to by 'vcc-supply' has the > > voltage constraints. Those constraints are supposed to be the board > > constraints, not the regulator operating design constraints. If that > > doesn't work for your case, then it should be addressed in a common way > > for the regulator binding. > The UFS regulator has a min_uV and max_uV limits. Currently, the min and > max are hardcoded > to UFS2.1 Spec allowed values of 2.7V and 3.6V respectively. > With this change, I am trying to fix a couple issues: > 1. The 2.7V min value only applies to UFS2.1 devices. with UFS3.0+ > devices, the VCC min should be 2.4V. > Hardcoding the min_uV to 2.7V does not work for UFS3.0+ devices. Don't you know the device version attached and can adjust the voltage based on that? Or you have to set the voltage first? > 2. Allow users to select a different Vcc voltage within the allowed > range. > Using the min value, the UFS device is operating at marginal Vcc > voltage. > In addition the PMIC and the board designs may add some variables > especially at extreme > temperatures. We observe stability issues when using the min Vcc > voltage. Again, we have standard regulator properties for this already that you can tune per board. Rob