Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp45057rwe; Thu, 25 Aug 2022 23:46:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR61LiTAJT4JODh1EHI2Q/mq2ZLHOwXhkpfqcUJzhB7DbjNrBIQ4RPCoDvPW7+DarhAkn0ma X-Received: by 2002:a17:906:8a62:b0:73d:5dfd:b20c with SMTP id hy2-20020a1709068a6200b0073d5dfdb20cmr4507341ejc.84.1661496359944; Thu, 25 Aug 2022 23:45:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661496359; cv=none; d=google.com; s=arc-20160816; b=OxDWh7CcJYFq50yOThs/5gBtkHygKGkkMog7GXTEB8M504rqvgMyDd0DAoTT/f1EYW pj0iK+/0MefF+gGers3tGsR37qkL4LYT2PDywLe8Ak6EIIlpCT9NksNP8KvEe1N2waqc nw18s2NASmNfJ5lxT67b2KdWBaa2h1UES8jVG9RCDZDzPYtMTVBecs0cfLAxHlFDgunO IHR+Bg5rT6cNOLKkKzdk+0RijKweSpAHw3VQQdH+Km3TBxjUHSH3HDERH0xBs3U1sNDP Xhjpm6TS9pADTtydLUAndSkLFbXcKinRUSy2dfWqbchcfI9JFJ9TOEoS9EsOorZLd3lu jBmg== 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=QAX1Plu+eXlOZCcV0dheQHJM314EyoqCLQ+tuSBSA+c=; b=Fsr027LtpEVvrUSCXySLtXUWusuU8QFxbiIbVV+R2Ny7jwFCD/iT8BuJZsNSznDk1W WR+XNFSvSqk8cUCqsYKpR8xMxo5c8gSgiE8xZdWshKqP+XbrntuslP0Yibi4SEoPom80 Qn1TDnGI9RVBqJ/z73CHTTLP9jQmglf/GjNl6vq0oJ8PMKnBr+a5nbcGN5nrDhiFqL4s JCa3yLCBi/xREhLZ2NBZ5aCh+hWiK9Wn5vsgxUK5NpYFarf848jggsXn8PCxV4uQX3cU aHEPHKAO9XTogvK41KewTQcG5N3nVqFX8KrFiG4RffSrlc3OlISNjsp3gNF8KhqT1kPf 0Z/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f2f+68BX; 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 o16-20020a170906601000b00730632d2a0fsi696225ejj.452.2022.08.25.23.45.33; Thu, 25 Aug 2022 23:45:59 -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=f2f+68BX; 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 S236536AbiHZGhE (ORCPT + 99 others); Fri, 26 Aug 2022 02:37:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229631AbiHZGhC (ORCPT ); Fri, 26 Aug 2022 02:37:02 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0337B8A71 for ; Thu, 25 Aug 2022 23:37:00 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id q7so782741lfu.5 for ; Thu, 25 Aug 2022 23:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=QAX1Plu+eXlOZCcV0dheQHJM314EyoqCLQ+tuSBSA+c=; b=f2f+68BXq0Gr6vOQ54HOvpIHVEwfm/lw1PPIdnzcW3YuRvpawn0tR5O0ZLtYd9XHbr zW4sTu8j9uqTFmyieo0baRdk7Vexx7AKqiInoLzSXG+WmFdu9aFOFvyOr+RaUWsaAZJ+ RTqKuu2bwnKlCgR9+h/AdfcyPipUO/fFgxvZFTID19J3+yfuNGTlFdXwkMmyLoX4IHgq Hwcrmi2ui/D+/p7WzlRpp0kFm/t/CMA7wKQaG9F2ZFVdHSIsVmVipZq+C5x6VMhjhRH1 BOt0xCsHXpWy7cEOWfqFB9JZ39NALmwzb5LWjgYZRHI3qxOiaGPaq/ePP0RK6x0G19LS zXJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=QAX1Plu+eXlOZCcV0dheQHJM314EyoqCLQ+tuSBSA+c=; b=vXlBxZt+5X2wRpQr2e6mPM8pjj6rilc/wZm5gYcXqObm9f+WgtG+B0aCo/pckpWaWU GrarDVZL+wWSP+JEkXXy3fmlA9chMCNi9/KEPulRfIUbYpSGm3LC1fREXzoRYYmXX6PT t2I98O+x1BrYR5PfB5ubbyi3yxySMzQHss+ZHY6M3k5aahlxS4U38lMtxOa6eSkzoxdv 1OLvFoKKDGmzA7TR7dF+9QR4vNJVivGlMItLKyrkaSGQmx9yZ9t6DfkI91Xsk04LeOQQ zdhDg+r9QSQzEkLZAVEGfsU+PU1pGFN9E1xBovMfN3ke0eu0whZ9/uCgUxzrSxiZeX4R My9g== X-Gm-Message-State: ACgBeo050HUGKloBqahLcQzNt9zozyXZyv7SOINF3404Cm1v/WevCaFc C4CBeFqjqCr28sexdhEIK87gHQ== X-Received: by 2002:a05:6512:4004:b0:492:c4f2:9451 with SMTP id br4-20020a056512400400b00492c4f29451mr1949002lfb.666.1661495819119; Thu, 25 Aug 2022 23:36:59 -0700 (PDT) Received: from [192.168.0.71] (82.131.98.15.cable.starman.ee. [82.131.98.15]) by smtp.gmail.com with ESMTPSA id p16-20020ac24ed0000000b00492b1ee7489sm246608lfr.300.2022.08.25.23.36.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Aug 2022 23:36:58 -0700 (PDT) Message-ID: <000babd8-5980-3d77-f156-324b3442cbe7@linaro.org> Date: Fri, 26 Aug 2022 09:36:57 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH 2/7] dt-bindings: phy: mediatek,tphy: add property to set pre-emphasis Content-Language: en-US To: Chunfeng Yun , Vinod Koul , Rob Herring Cc: Kishon Vijay Abraham I , Krzysztof Kozlowski , Matthias Brugger , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Eddie Hung References: <20220819091344.2274-1-chunfeng.yun@mediatek.com> <20220819091344.2274-2-chunfeng.yun@mediatek.com> <438da392-f419-ad76-7e91-aa4aab36e12c@linaro.org> <816ecf6287533137b750c8bde9de5830e4229c56.camel@mediatek.com> <1a16cce9fe164bafc06ae193310be71c6f645d75.camel@mediatek.com> From: Krzysztof Kozlowski In-Reply-To: <1a16cce9fe164bafc06ae193310be71c6f645d75.camel@mediatek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 26/08/2022 08:36, Chunfeng Yun wrote: > On Tue, 2022-08-23 at 13:24 +0300, Krzysztof Kozlowski wrote: >> On 22/08/2022 10:07, Chunfeng Yun wrote: >>> On Fri, 2022-08-19 at 15:15 +0300, Krzysztof Kozlowski wrote: >>>> On 19/08/2022 12:13, Chunfeng Yun wrote: >>>>> Add a property to set usb2 phy's pre-emphasis. >>>>> >>>>> Signed-off-by: Chunfeng Yun >>>>> --- >>>>> Documentation/devicetree/bindings/phy/mediatek,tphy.yaml | 7 >>>>> +++++++ >>>>> 1 file changed, 7 insertions(+) >>>>> >>>>> diff --git >>>>> a/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml >>>>> b/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml >>>>> index 848edfb1f677..aee2f3027371 100644 >>>>> --- a/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml >>>>> +++ b/Documentation/devicetree/bindings/phy/mediatek,tphy.yaml >>>>> @@ -219,6 +219,13 @@ patternProperties: >>>>> minimum: 1 >>>>> maximum: 15 >>>>> >>>>> + mediatek,pre-emphasis: >>>>> + description: >>>>> + The selection of pre-emphasis (U2 phy) >>>>> + $ref: /schemas/types.yaml#/definitions/uint32 >>>>> + minimum: 1 >>>>> + maximum: 3 >>>> >>>> Instead of hard-coding register values in bindings, you should >>>> rather >>>> describe here feature/effect. If it is in units, use unit >>>> suffixes. >>>> If >>>> it is some choice, usually string enum is appropriate. >>> >>> How about changing description as bellow: >>> >>> "The level of pre-emphasis, increases one level, boosts the >>> relative >>> amplitudes of signal's higher frequencies components about 4.16% >>> (U2 >>> phy)" >>> >> >> Still the question is what is the unit. 4.16%? > No unit, it's a level value, like an index of array. > So a value from register/device programming? Rather a regular units should be used if that's possible. If not, this should be clearly described here, not some magical number which you encode into DTS... Best regards, Krzysztof