Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp3330998rwo; Fri, 4 Aug 2023 03:15:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE01+z4aXn/3cd1DXa0nCN4ioUtoEfWESfFRhSRNa/nyPl5CTpQq4+ezmxCPmt7Yya7cBYk X-Received: by 2002:a05:6a00:2347:b0:680:6d16:8f8c with SMTP id j7-20020a056a00234700b006806d168f8cmr1282658pfj.32.1691144158076; Fri, 04 Aug 2023 03:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691144158; cv=none; d=google.com; s=arc-20160816; b=cd/4hI+2tXwBNmxCHYHhGGWfAh0oZRp7Qtmaed61xYeg1ebgx+JUX+NSNgyS96hdVu m0zF3FTG8/FKEZIfC01vch6HhsLS705tCfdtAmZVRVzDJn2mBLlHb0VB2E1ql3s1G+MU 4TArfqqGSXfJR+GmvJZ2t/fyTDX11REBikp35j1TnYCh5jBzkxxRKr2iggpwUuVWmlqG ELhg+lAVGu7l/HFuQW8hSg++dPu5lZQoSXfCsOxR0Nf5cLdoeLw+G/+04bGvocPaBkY/ UzI3wMIU7ow4c8CTZ+exXTKzjroDf4u9Izq8y7b/fbBbNRuSi3FQSAnbytNaPSnAFiJJ LRBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=1eXbT/KalONwMKPKZfZFiDNuA7l+qr3D7lfU+28kCBQ=; fh=yMebc6zQaNtzBdi2gs0lcnJVtHRYorWE63H6sR/kH8Y=; b=oB9ikFW4cle8dsWrcVH+M8hoUMko4T7Bl2LBI4NruVw0RzP8/Vm6gV503lEfFPx91L avEyMAOh2h2N4SDk0ip56mtTcrD/NYieGQlP30/nVPusUFEwaf7c0BkXDXv2l2QtXS5k 1WDsGLlh4zh8vfxqE0Jt7mwvI8g4sdw1mMp2ba9diV3T2qWVMXZp1fo0PFFAXX/Ro6bx sm5qXE2cVLgD90MghAaGcf+ic5St87w4qSIEDhss2qumsyXEsAUDIR8r6+Knb9vGujd7 xmEWRgUEtta5YrCcHxC5lD7HiIrUk4kda5CxUWaKmlkBq0E9sz6HR/nPMauOIo0eWhzE sFlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tMxDCZWY; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 10-20020a63020a000000b0055ffed90ccasi1567994pgc.459.2023.08.04.03.15.46; Fri, 04 Aug 2023 03:15:58 -0700 (PDT) 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=tMxDCZWY; 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 S231131AbjHDJnb (ORCPT + 99 others); Fri, 4 Aug 2023 05:43:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230519AbjHDJn2 (ORCPT ); Fri, 4 Aug 2023 05:43:28 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23AF130EB for ; Fri, 4 Aug 2023 02:43:27 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-523100882f2so1776411a12.2 for ; Fri, 04 Aug 2023 02:43:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691142205; x=1691747005; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=1eXbT/KalONwMKPKZfZFiDNuA7l+qr3D7lfU+28kCBQ=; b=tMxDCZWY4gGhkYmTyR60h5DpxZNyiNEUht4LfLAAdA11c0Kqdw3ikJKKMIyM896WAt gDMhvRVATOEUC5X/iVQRbktG4S9VmMu3Bi9mN08wC9qnclDiiwdJWl+Wi+qPPlCH8xgl HEm4PDd9L4OfgCxWsotTw2FhEcWsz/i4dO4C3Rh/z6mZuNW0G4pCALsb19iNHwvuZCnk KfDIUzh5b7jXddXqr7bTXpzCg3MMTe27rZvrEBqZrIEyK5c9VHWxa8yguOIbQg4bFtIG lFY2dZXiwIoP45xY5V2dnJb7/0MofSxb838NMEldTDg9Aa0fNmak4J/mbo+VRtocfJoW PBdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691142205; x=1691747005; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1eXbT/KalONwMKPKZfZFiDNuA7l+qr3D7lfU+28kCBQ=; b=KukxRf6XIViJ/tMclV66prBkhN/7Of3U6iqBX72yQaHk2xF8urKA75+8cIjX0rTu6k BRUoIvw9JLFbMCzQAASU7AjbrP4vKFBLLhQ7+G4h/ykeo0jgaHaV+PCseKxvacsVDd+K Bs82yUF8Q+JOoX0tnvfSc8MORlOV5QbBaPSZ9HTdRJ1SOAOwie3784SFzUHFuwbaVI6N IWtN3nM4vZ9n1sipUdwaBjEKPIMte7k4lWxm5t2X37s/vvDM8Yly0IEaec5L59+CF0jc q2QXM6syfp+lreziGGGzfkhmNcQQAdeWWPnQjNhkLnPrQqEnrgY0++pQ1lOluHASpL5m KF3w== X-Gm-Message-State: AOJu0Yz4O1Kr2G6OgGh5OCLptR8rQj2KLiosSRRxrXVWoWVnQYcj2ZwP E9J2WFhoowxQaKFJ62SDBvAF8Q== X-Received: by 2002:a17:906:28a:b0:99b:d178:f051 with SMTP id 10-20020a170906028a00b0099bd178f051mr893587ejf.64.1691142205545; Fri, 04 Aug 2023 02:43:25 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.245]) by smtp.gmail.com with ESMTPSA id gs10-20020a170906f18a00b0097404f4a124sm1059389ejb.2.2023.08.04.02.43.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Aug 2023 02:43:25 -0700 (PDT) Message-ID: Date: Fri, 4 Aug 2023 11:43:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH V1] arm64: dts: qcom: sa8775p-ride: Remove min and max voltages for L8A Content-Language: en-US To: "Naveen Kumar Goud Arepalli (QUIC)" , Andrew Halaney Cc: "Nitin Rawat (QUIC)" , "agross@kernel.org" , "andersson@kernel.org" , "konrad.dybcio@linaro.org" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "conor+dt@kernel.org" , "linux-arm-msm@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20230725100007.14775-1-quic_narepall@quicinc.com> <516a54da44724001895f7e50634ad884@quicinc.com> <33232e22-1014-2670-47f6-712b0acc929d@linaro.org> <78e6233799f54428b6601896b8bd7b5c@quicinc.com> From: Krzysztof Kozlowski In-Reply-To: <78e6233799f54428b6601896b8bd7b5c@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org On 04/08/2023 10:04, Naveen Kumar Goud Arepalli (QUIC) wrote: >>> diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts >>> b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts >>> index ed76680410b4..6f3891a09e59 100644 >>> --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts >>> +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts >>> @@ -98,8 +98,6 @@ >>> >>> vreg_l8a: ldo8 { >>> regulator-name = "vreg_l8a"; >>> - regulator-min-microvolt = <2504000>; >>> - regulator-max-microvolt = <3300000>; >>> regulator-initial-mode = ; >>> regulator-allow-set-load; >>> regulator-allowed-modes = >> -- >>> 2.17.1 >>> >> >> Reviewing with very little expertise in the area.... >> A few questions below that would help me understand this a bit better. >> >> Does it make sense to *not* set the range of the regulator at all?: >>>>> Yes, we are removing the range of the regulator. >> >> 1. A board dts knows its UFS device >> 2. Is UFS backwards compatible with respect to UFS2/UFS3? >> I don't know how the version is determined, but if it's a >> "start at UFS2, go to UFS3" should it be scaled as that goes? >> >>>> For a UFS device 3.x, we cannot start as UFS 2.0. vcc has to be as per UFS 3.x recommendations. >> >> Relying on the bootloader to set up the device before the kernel >> starts seems like a direction that should be actively avoided instead >> of depended on in my opinion. > > I have trouble finding which part is your reply and which is quote of Andrew. Please reconfigure your mail client. Who said this? Me or you? I am pretty sure I *said this*. Not only you pasted it as your reply, but you also re-wrapped lines. That's not how email communication works outside of corporate structure. Please, don't bring Outlook style to our lives... > >>>>>> As per upstream UFS driver, voltage voting is not there and we vote only for enable/disable . >> Since UFS is the only client in Linux for this rail (L8A ), we don't >> need min and max range to support UFS 2.x and 3.x cards. > > I would assume some reasonable range is always desired. Why it cannot be the wider range from both? 2.4 - 3.6? Again - who said that? I am 100% sure that me, not you. > > Wider range cannot be mentioned in DT, For UFS 2.x range is 2.7 V to 3.6 V and for UFS 3.x range is 2.4V to 2.7V. > Giving the wider range will not set the correct voltage. So is this your reply? I don't see a problem in wider range... > > For example: > If the range is mentioned as 2.4V to 3.6V in DT and we have connected UFS 2.x device, Since UFS driver is voting only for > regulator_enable(voltage is not being set) the voltage will be 2.4V(min voltage) from pmic driver which is wrong voltage for > UFS 2.x devices, which is violation of spec. So what is your solution? Remove constraints? Then who configures them? You rely on bootloader which is not what we want. Best regards, Krzysztof