Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2803475pxp; Mon, 14 Mar 2022 05:24:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtE8Q17ToC7Tdfar8VuJELkrSgPtwfwYBxHtIZl8i4BR2QU4+Ie2Lzll5jfV0GkfSjkh6H X-Received: by 2002:a17:907:3e22:b0:6da:83fd:418 with SMTP id hp34-20020a1709073e2200b006da83fd0418mr18798350ejc.321.1647260651200; Mon, 14 Mar 2022 05:24:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647260651; cv=none; d=google.com; s=arc-20160816; b=zoCH1eQgRQ62XvNovXLLpvTKP6vKgLzkmho0BR12qW6e+s9ecy5fKcMxs8bZObjPR4 OTfBK14jcUOFZl5LvPVPFbZOOlx+Nroc52Obj/IPKCmfVqUACX/2XUSf5vgS0tNb6QnV u1Tp12zBek6ZAuMA8J3aV8af1IUVUxcI9sXMeT2HXa3AykEYs7ZwnYW4ot/ut7GxaqtQ +OtRDeCtG1whYlm41p7R5Lt3jEBwoFWi2H3PKR9uzZ8tU56Jsea3Ytkc8SgoCtEVXWJX mtQS91coT9oStq1LTTENF8VTBxvDmJtZZUwM4mTpscIzYAewRlGthwqnhdIYjVB/MGPU XiPQ== 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=vL1DMH5mB/xA+saWf/LfgxjeoWUu89778nGRlXG7H8w=; b=P5S+ouhtxTlPLDF9FInGhgAhSAOP7ulcGMXnfvOgM1pBsCfKZpkaNzj6UvJJyQz9Z8 TJDsMYvgzW7TwdMPvT8V/pFu7ibl/VFjmZspAYn5AEsKmIjt3EINdtkPymnamh4gMn0r MHsVgbO/FhQA8nliyGDmWq+ShsyJCx0R3f3ooougcfzUVvSV/HCCIs/NvNoxVfIG3FoI peUTIYqtnvYMcqpernPjVbdG2j9ANstfBE8mLVkW0lF7V4wI0uSgBcpihAQ7FctlvvP3 pCBnpHACps+IKRvj//jKSCFbHmLk17fmsG3ELqiP95LDUZzpC3FagAHYufcD9IvSa1gF o1lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="YIJOJ1/Q"; 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=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w3-20020a05640234c300b0041663fefc89si10618246edc.109.2022.03.14.05.23.45; Mon, 14 Mar 2022 05:24:11 -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=@canonical.com header.s=20210705 header.b="YIJOJ1/Q"; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236761AbiCNHlR (ORCPT + 99 others); Mon, 14 Mar 2022 03:41:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236747AbiCNHlL (ORCPT ); Mon, 14 Mar 2022 03:41:11 -0400 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A84240A33 for ; Mon, 14 Mar 2022 00:40:01 -0700 (PDT) Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 0C45E3F7E7 for ; Mon, 14 Mar 2022 07:40:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1647243600; bh=vL1DMH5mB/xA+saWf/LfgxjeoWUu89778nGRlXG7H8w=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YIJOJ1/QBAdfhgwPo2N+gX/+jY+/CoQVH8bplFWmkCwGN+F3KHV7oreEDLHq0vDCe m9d+QXY92JhsTw7DhJmUng8d2z+TPKvAGFq25k5KsRhXwX03MoLqBvorVjkvC6fpLs VrR28qO4d5z2TC7Mj4bdQqKyFOqaXJM0mnirepoI41oZfwInSAnoEvbRZNBDVi35+M SwegAfQavC0bd1AQtbY6L1K9QM8oecg9DpsOL3IAO9eIdlpB4juaID7cvWqSRRVeVi RiDMugMGYNq/fmuxglPejm2QD6dM3yHK8npwQscYeeThEr2d6eiGvQiuxyWPkasMnN qEhSZ/O6jApdw== Received: by mail-ej1-f72.google.com with SMTP id x2-20020a1709065ac200b006d9b316257fso7541657ejs.12 for ; Mon, 14 Mar 2022 00:40:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=vL1DMH5mB/xA+saWf/LfgxjeoWUu89778nGRlXG7H8w=; b=Dp5GZTxzCCdnGgkpKcrGfL+pd32bGWZRlrk3IMTR1QY9uvQ2VFFVg0o7tljqrcY4lC pzKbZ0tYIVlCunh+yF1ipShPlt31IxkGlWTBZS0mAnkEcAxh+ZEO+B0Bn8y7Z99YWpJI 85Ub16PNBLuSCZKGX9jxb1YArvJKF2lMP30Wux6CHxmpTLrKl38cxOfwOJuSDI62DYla 4maMcluo9ZgPZyLTKiAYpb9ybroaSuVeOrIIi0gFFRqysYvH7s+VLRqaTqyNI+ZnFKH9 fN+Xv59/hzel4GC88ZeIsCc50JjqJ5Ia0qMHKqyODWV2EI6/sR/FFxyGaVTYfF0tfUHi 9HSw== X-Gm-Message-State: AOAM533/95MmfF9fociGB2VWA8KiePWYtBOHTbwaF20DGwwa8eMR/25X 9vqdzL/qpofppbseiBJUVJ05hh5iiAhfGCd51IbxueX4X0SMFdvjqAogkgGuxLwYF5Uv+oyFtA4 UIimXltBjPPSVI4+oe0gq5zNK3S0c9dO7/Q5vitlKEQ== X-Received: by 2002:a17:907:96a0:b0:6db:a7d5:166a with SMTP id hd32-20020a17090796a000b006dba7d5166amr11292877ejc.725.1647243599449; Mon, 14 Mar 2022 00:39:59 -0700 (PDT) X-Received: by 2002:a17:907:96a0:b0:6db:a7d5:166a with SMTP id hd32-20020a17090796a000b006dba7d5166amr11292864ejc.725.1647243599250; Mon, 14 Mar 2022 00:39:59 -0700 (PDT) Received: from [192.168.0.152] (xdsl-188-155-174-239.adslplus.ch. [188.155.174.239]) by smtp.googlemail.com with ESMTPSA id a102-20020a509eef000000b0041614c8f79asm7552126edf.88.2022.03.14.00.39.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Mar 2022 00:39:58 -0700 (PDT) Message-ID: Date: Mon, 14 Mar 2022 08:39:57 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v2 1/3] dt-bindings: phy: qcom,usb-snps-femto-v2: Add phy override params bindings Content-Language: en-US To: Pavan Kondeti Cc: Sandeep Maheswaram , Rob Herring , Andy Gross , Bjorn Andersson , Kishon Vijay Abraham I , Vinod Koul , Greg Kroah-Hartman , Wesley Cheng , Stephen Boyd , Doug Anderson , Matthias Kaehlcke , 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_ppratap@quicinc.com, quic_kriskura@quicinc.com References: <1646288011-32242-1-git-send-email-quic_c_sanm@quicinc.com> <1646288011-32242-2-git-send-email-quic_c_sanm@quicinc.com> <20220314032952.GA27561@hu-pkondeti-hyd.qualcomm.com> From: Krzysztof Kozlowski In-Reply-To: <20220314032952.GA27561@hu-pkondeti-hyd.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 On 14/03/2022 04:29, Pavan Kondeti wrote: > Hi Krzysztof, > > On Thu, Mar 03, 2022 at 04:59:22PM +0100, Krzysztof Kozlowski wrote: >> 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. >> > > Thanks for the feedback. > > The values in % really makes the tuning easy. People look at the eye diagram > and decided whether to increase/decrease the margin. The absolute values > may not be that useful. All we need is an "adjustment" here. The databook > it self does not give any absolute values. > > I agree to the "enum" suggestion which we have been following for the > qusb2 driver already. > > The values have not changed in the last 5 years for this hardware block, so > defining enums for the % values would be really helpful. I did not say you cannot store here percentages. Quite opposite - store here the percentages. Just do not store register value. No. Please read my comment again - meaningful values are needed. Best regards, Krzysztof