Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1800652pxm; Fri, 4 Mar 2022 03:55:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJy9hUxf58mSQdM3bgvncXtQjbjeAF20iWuSd/sg2gYaYFoddhYT3j8Ux5IyCtTJQ265R0lX X-Received: by 2002:a17:902:aa0c:b0:150:15ed:3cd2 with SMTP id be12-20020a170902aa0c00b0015015ed3cd2mr41524802plb.131.1646394907929; Fri, 04 Mar 2022 03:55:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646394907; cv=none; d=google.com; s=arc-20160816; b=uUhr4jTqplGA6H1gHxY8kW/EC0P2YJgkS5lAj1De957WA0A3Vhyqh/pMnZZgkHKGSv yi72iEtgzm5jLmGnLadjjn/+KeQdHEMf33a0wc1b5zC9EhALRtAnA7P7lmnbqpXnHphq y8hqp+mYYqPhIBIFc4gefnUJSlRrGt/Q4bNlaAUxYcmcRWImjVoV1mWtCxMNonXFxNB6 kmmv3tXFs/4YQf94wBApaB62lazMaLfWw1/vej7V/mlSO5+CshRUe9XcRQRDaJp41A96 fZcXhaXL8uOmNuLO0AsAAnhIP8bRDf78LvoVVEqelCdDHbeWNgKxmxbFlY2D+JFg4W6/ urAw== 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:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=84N9C6KvyMy2P8CDxkMygU4c2ZXeXw9ZduzWrJT2etE=; b=qJagV3QF5LCafujtLfla55bc+hUIbHvAVBda5FpfgrOW5dRlBiTgymrKTQXYcwdzVV H81r1+LrCOAWEd2REE9JAr4EEo3gPbdRharrj6UWMtJq8x81adrcixrFqrt3WTHl/ot5 a3lETb8BmD0oIGrc+DBOLwQbw+6IrMpAPtNpv/TvQWEGxGFN6y0b9BcmTAQSmrUZ8ELn E8k6/zuvbomdUg/wo37zTG+ZI4WQGZtn9ZQLHHd9MdAyTcyQnJbUasfTr0kslQ4NJojm +LrP2dSNXpUUCHlcDqCGk5P7TQi6Kq9kzDnkluzsBFP6Txg1V3mjdpFq4yhYlfH4ceU9 G/2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cFzFuK9T; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a22-20020a056a000c9600b004f1126f19b0si4637993pfv.349.2022.03.04.03.54.52; Fri, 04 Mar 2022 03:55:07 -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=@chromium.org header.s=google header.b=cFzFuK9T; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236842AbiCCWYe (ORCPT + 99 others); Thu, 3 Mar 2022 17:24:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236840AbiCCWYa (ORCPT ); Thu, 3 Mar 2022 17:24:30 -0500 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3C06A6521 for ; Thu, 3 Mar 2022 14:23:43 -0800 (PST) Received: by mail-ot1-x32b.google.com with SMTP id l25-20020a9d7a99000000b005af173a2875so5865471otn.2 for ; Thu, 03 Mar 2022 14:23:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=84N9C6KvyMy2P8CDxkMygU4c2ZXeXw9ZduzWrJT2etE=; b=cFzFuK9Te+gPYjsQw43HWd+lX0dK75cQbikvF+GotiKMkoC7n3D5HmUVNLnEV8gBpH oBKM8lXnCJMovyZOcmMwSfRGp7xNWHY4XVb/EDVU5NpxUfncr25dJ5uqjKdGZG8y9hif ATRmIFWvL8nT6Fxu9sp/brC8rt8gRB/WUcYRk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=84N9C6KvyMy2P8CDxkMygU4c2ZXeXw9ZduzWrJT2etE=; b=m1MO/8y9pw8IhgFQXOTGamrSnFxG+QfjFPNXZWm//x3yHoMpL4ZhS6JwqYrO3zYbCi /r0IKOa6RFOtIvRVhBpbFnpRx5OVGDcTrreX79yBMGsWelw3dQ/qcfzPIR5GZ5AysVOi xfxEQysgbYSLVYjHGlpdwZuGr/3I8emWyuI4FiMo7JTmGefWGL+JkcQVvVcOVPAkx4VG e/mn7kymZPEQ17QZcbClz0WQySVpia+WrM0V/8J5y0uS1U/FWoDHODKYfqBa2fOm//yL N2LiOEGQG9+uoaFlrWZ271ZV6T5L2vNNkntTw8M+psIYyIQWbmjhJ9FwuHtL+1hnqNJ3 HxTw== X-Gm-Message-State: AOAM531ZJfe0s+H8X71GTYfxOsGpIeoB7ZcZH1LgL2TExbO3pTQWA9B9 Rfcp/O/Y6Vk2sXf8TGWC2UWKP2JIL3JwlsO9ghzPaQ== X-Received: by 2002:a9d:22e9:0:b0:5ac:1754:342c with SMTP id y96-20020a9d22e9000000b005ac1754342cmr20034277ota.159.1646346223173; Thu, 03 Mar 2022 14:23:43 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 3 Mar 2022 14:23:42 -0800 MIME-Version: 1.0 In-Reply-To: References: <1646288011-32242-1-git-send-email-quic_c_sanm@quicinc.com> <1646288011-32242-2-git-send-email-quic_c_sanm@quicinc.com> From: Stephen Boyd User-Agent: alot/0.10 Date: Thu, 3 Mar 2022 14:23:42 -0800 Message-ID: Subject: Re: [PATCH v2 1/3] dt-bindings: phy: qcom,usb-snps-femto-v2: Add phy override params bindings To: Andy Gross , Bjorn Andersson , Doug Anderson , Greg Kroah-Hartman , Kishon Vijay Abraham I , Krzysztof Kozlowski , Matthias Kaehlcke , Rob Herring , Sandeep Maheswaram , Vinod Koul , Wesley Cheng Cc: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-usb@vger.kernel.org, quic_pkondeti@quicinc.com, quic_ppratap@quicinc.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Krzysztof Kozlowski (2022-03-03 07:59:22) > On 03/03/2022 07:13, Sandeep Maheswaram wrote: > > Add device tree bindings for SNPS phy tuning parameters. > > > > Signed-off-by: Sandeep Maheswaram > > --- > > .../bindings/phy/qcom,usb-snps-femto-v2.yaml | 125 +++++++++++++++++++++ > > 1 file changed, 125 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/phy/qcom,usb-snps-femto-v2.yaml b/Documentation/devicetree/bindings/phy/qcom,usb-snps-femto-v2.yaml > > index 0dfe691..227c097 100644 > > --- a/Documentation/devicetree/bindings/phy/qcom,usb-snps-femto-v2.yaml > > +++ b/Documentation/devicetree/bindings/phy/qcom,usb-snps-femto-v2.yaml > > @@ -50,6 +50,131 @@ properties: > > vdda33-supply: > > description: phandle to the regulator 3.3V supply node. > > > > + qcom,hs-disconnect: > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + description: > > + This adjusts the voltage level for the threshold used to > > + detect a disconnect event at the host. Possible values are. > > ':', instead of full stop. > > > + 7 -> +21.56% > > + 6 -> +17.43% > > + 5 -> +13.32% > > + 4 -> +9.73% > > + 3 -> +6.3 > > + 2 -> +3.17% > > + 1 -> 0, Design default% > > Use "default:" instead. Here and in other places. > > > + 0 -> -2.72% > > In current form this should be an enum... but actually current form is > wrong. You should not store register values in DT. What if next version > of hardware has a different meaning of these values? > > Instead, you should store here meaningful values, not register values. +1 To emphasize one point, meaningful values typically have a unit of measure, like Hz, ms, mV, etc. What are the percentages adjusting from? Is it a percentage decrease from the input voltage?