Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1062930pxm; Thu, 3 Mar 2022 09:34:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzTXDRFLSvEmmrCjXgK/U1zK8xCf69BAabVhso8B1MuIpFSyjdtU0Wy+PNBsWAG3aDMDiWE X-Received: by 2002:a05:6402:187:b0:415:c784:abe0 with SMTP id r7-20020a056402018700b00415c784abe0mr6877987edv.168.1646328872770; Thu, 03 Mar 2022 09:34:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646328872; cv=none; d=google.com; s=arc-20160816; b=uzQ/PShm1GCoFmOGtUuRUsXa8Ktlvt+8Uu/ti2DnC5h892oNq8gXfhXryWpLT66HDO o7+RGapuWOmm52GlpIj6f5wQFZFm7fvszlrpUnjOZez7HSztEL89VPyhb0sskzCdXkhl aU6Fgr0GnMqvzXBn+ZeRz12l7VnHPOjj0HgahiJ02x6Q8sSDn6Dq9kW/vijzWhbdeTpm wEEuUmcgqhjedOb4nD4AhN8B0iaPExJlMma2u2NhP9GIPONtBtyI8pH9qOWlsIFNgNGR Hmv5y6xRtSYObg1qLc3tM6OfUlPLD0Ku4wLJ3LKMbrsfZ8TIk+Yilou9cefuSV7V2nZL uc7Q== 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=MdwjWjZqm0RnOglfFnSZ5WY/pIE+2hElYzOWtQJQrYc=; b=NVzTnQfPaTMTrc2GJTdIuwbhi8SFyWlYyi8aW3UKtvmoH5u43nDMMKsnQYT2YXWlbF PIl4HoOvHae0Hivcph8ZU9qNHUWsroy4hNSRqcHpp2vx2eOE6tSJ1GCuXOfecXle4I7p cUCf1vQetD9jKMu+tSPnQLjQGx/n6H/+t0I90ljJ6HJ7CP6CxVmtycUP6bdFPSeGDrtZ qtXSE1rE6wtXNC4Uf7WNVecWpIHOK9IXGYdiLKfTEucHCBTMqatn0U9QlKK0WevxZh+5 m2WoZiTBg+/Exj5m6i3T9GW/nv+rRpmNAUzbgFl1TY07/ijjvK6C2JilNhjHd1anFCmy hODg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=MDfg+jPj; 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 j2-20020a170906474200b006b8b3969ec3si1529702ejs.190.2022.03.03.09.34.04; Thu, 03 Mar 2022 09:34:32 -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=@canonical.com header.s=20210705 header.b=MDfg+jPj; 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 S234379AbiCCQAQ (ORCPT + 99 others); Thu, 3 Mar 2022 11:00:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231298AbiCCQAM (ORCPT ); Thu, 3 Mar 2022 11:00:12 -0500 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 D469418E41D for ; Thu, 3 Mar 2022 07:59:26 -0800 (PST) Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.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 977E83F61F for ; Thu, 3 Mar 2022 15:59:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1646323165; bh=MdwjWjZqm0RnOglfFnSZ5WY/pIE+2hElYzOWtQJQrYc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=MDfg+jPjpKksoV3C4ckPNTlr6lsnvPv+QZArpMsQY8WYhLtUFIqz+LK/lFlpJZYZ8 ivJcT3Rk65/Jz0jNlaaI0f99CvhDkERzadWiACAYpWmUdD0hP0Ghfd5lfxvFEzycf/ qZy4zYqp9a4YTfzIk+OwhLHztwFHdqC/d2Tf+7fV8WdPV4+afop1QfOBn4mG8e6iDa e9q/EubfqG1UDuRYDxIteNZ+96iR3UPjEOZwkxyUeOoHSjqRF5B7PpgM/F1NvyQO6T yA3LLUHX3zGyYsuPQ6BUuCoLq6VL6BK4xqdpkxI34yPshpCPoaeupLnyK4wCE0Jp5V iQ6aI7XEOlGMw== Received: by mail-wm1-f72.google.com with SMTP id a26-20020a7bc1da000000b003857205ec7cso1313591wmj.2 for ; Thu, 03 Mar 2022 07:59:25 -0800 (PST) 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=MdwjWjZqm0RnOglfFnSZ5WY/pIE+2hElYzOWtQJQrYc=; b=70ziji/J2z7PQOwf6RsfVnK09Ehexb0MlyLYcHkiyL+taMxj8Zw/MRJ3KG5YudvEO+ O4CJ0fA1aa1ze4keygdUaK5JG//qnxB0v2XWZXNJd5qvQjKu98/jt6Vt15A8V82ln9g6 hSvmyWAiEWGD0R5JTxNAMp60DO8B/sdQq089OFWbpNyjGlUo+QF9eW0R46zUZiLF29RU G0gbhYb0evh4S1bFs/r7yKJDWmQum4+2dH29qiWK5CpmPq6GxsafdRWFP5s6L2AFJ6a/ X9/JYQ0H8YmZ4NA051GucDq6s5KBWVvScDERb19r9HOnOCKcZzEfbaEeLlRfQTklZhqJ 99lw== X-Gm-Message-State: AOAM533Qn6iD3Ur92aplT2a8YSv5N6MrwG5Cx46vwHSayWG9WP2A9w3H wAeJpNMCQL42mOZxML7lU1X7V9aoQ4RarSA291a+y//JVUm5JEInj2HGM5RTdNvmtS0EkfAXIh8 6+0Mo2x9RCIPK9tRTjwhc1shFD12ZywkfUfelNEh9Zw== X-Received: by 2002:a5d:50d2:0:b0:1f0:2348:4331 with SMTP id f18-20020a5d50d2000000b001f023484331mr8154300wrt.19.1646323164084; Thu, 03 Mar 2022 07:59:24 -0800 (PST) X-Received: by 2002:a5d:50d2:0:b0:1f0:2348:4331 with SMTP id f18-20020a5d50d2000000b001f023484331mr8154279wrt.19.1646323163879; Thu, 03 Mar 2022 07:59:23 -0800 (PST) Received: from [192.168.0.137] (xdsl-188-155-181-108.adslplus.ch. [188.155.181.108]) by smtp.gmail.com with ESMTPSA id o13-20020a5d648d000000b001efd62a840dsm2610469wri.111.2022.03.03.07.59.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Mar 2022 07:59:23 -0800 (PST) Message-ID: Date: Thu, 3 Mar 2022 16:59:22 +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: 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 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 References: <1646288011-32242-1-git-send-email-quic_c_sanm@quicinc.com> <1646288011-32242-2-git-send-email-quic_c_sanm@quicinc.com> From: Krzysztof Kozlowski In-Reply-To: <1646288011-32242-2-git-send-email-quic_c_sanm@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.8 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 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. This applies to all cases below. > + > + qcom,squelch-detector: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + This adjusts the voltage level for the threshold used to > + detect valid high-speed data. Possible values are > + 7-> -20.90% > + 6-> -15.60% > + 5-> -10.30% > + 4-> -5.30% > + 3-> 0, Design default% > + 2-> +5.30% > + 1-> +10.60% > + 0-> +15.90% > + > + qcom,hs-amplitude: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + This adjusts the high-speed DC level voltage. > + Possible values are > + 15-> +26.70% > + 14-> +24.30% > + 13-> +22.20% > + 12-> +20.00% > + 11-> +17.80% > + 10-> +15.60% > + 9-> +13.30% > + 8-> +11.10% > + 7-> +8.90% > + 6-> +6.50% > + 5-> +4.40% > + 4-> +2.30% > + 3-> 0, Design default% > + 2-> -2.20% > + 1-> -4.40% > + 0-> -6.60% > + > + qcom,pre-emphasis-duration: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + This signal controls the duration for which the > + HS pre-emphasis current is sourced onto DP<#> or DM<#>. > + The HS Transmitter pre-emphasis duration is defined in terms of > + unit amounts. One unit of pre-emphasis duration is approximately > + 650 ps and is defined as 1X pre-emphasis duration. > + Possible values are > + 1-> 1x, short pre-emphasis current duration > + 0-> 2x, long pre-emphasis current duration I could understand encoding of percentages in way of register value, but a boolean flag is too much. Best regards, Krzysztof