From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <1552622667.30977.70.camel@mtkswgap22> Subject: Re: [PATCH v3 5/7] dt-bindings: scsi: ufs: Add document for ufs-mediatek From: Stanley Chu Date: Fri, 15 Mar 2019 12:04:27 +0800 In-Reply-To: References: <1551252192-535-1-git-send-email-stanley.chu@mediatek.com> <1551252192-535-7-git-send-email-stanley.chu@mediatek.com> <20190312133113.GA8956@bogus> <1552444909.30977.39.camel@mtkswgap22> <7f801bb4-97ea-1fe2-045c-507fd2656469@free.fr> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 To: Rob Herring Cc: Marc Gonzalez , Avri Altman , Alim Akhtar , "Bjorn Andersson , Jeffrey Hugo , DT" , SCSI , kuohong.wang@mediatek.com, peter.wang@mediatek.com, chun-hung.wu@mediatek.com, stanley.chu@mediatek.com List-ID: Hi Rob and all, On Fri, 2019-03-15 at 00:44 +0800, Rob Herring wrote: > On Thu, Mar 14, 2019 at 3:46 AM Marc Gonzalez wrote: > > > > On 13/03/2019 20:48, Rob Herring wrote: > > > > Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt mentions: > > - -fixed-regulator : boolean property specifying that -supply is a fixed regulator. > > > > > There are no users of that property in tree and doesn't look like > > > adding it was ever reviewed. We have standard ways to handle this and > > > don't need a custom property. > > > > FWIW, it seems to come from downstream: > > The question would be is downstream compliant with the upstream > binding. If so, then we shouldn't really break things as that's just > out of tree which is fine. > > Or we just need a better explanation of why it is needed. MMC has some > properties related to card voltages for example. Maybe the need is > similar. > For short-term, could this patch series be merged without "vcc" related property defined in dt-bindings (like PATCH V5 does)? Or using "vcc-supply" along with "vcc-fixed-regulator" with a detailed explanation can be accepted? ufs-mediatek can work fine without "vcc" related property but with a limitation that driver cannot control "vcc" power which is enabled by-default on MediaTek chipsets. For long-term, it seems to me that "-fixed-regulator" can be removed from both dt-bindings and UFS driver without impact, even for downstream usage found by Marc. If "-fixed-regulator" property is defined in device tree, such regulator will skip "current limit" assignment from "-max-microamp" property, and voltage range assignment from "vcc-supply-lp8" property (for vcc, vccq, and vccq2 only). If driver can handle above both cases correctly, "-fixed-regulator" can be removed. In MediaTek chipsets, "vcc-supply" can ignore above two properties. However if "vcc-fixed-regulator" is not added, driver will get fail during device tree probing due to undefined "vcc-max-microamp". If our target is removing "-fixed-regulator", we could try to fix and resolve above all. And if we do not merge "vcc" related property this time, after that we can add "vcc-supply" back to dt-bindings to provide vcc control capability in ufs-mediatek driver. Would you please provide any suggestions? > Rob