Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1530503rwb; Fri, 19 Aug 2022 05:25:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR5aDT/RUlr9M9jF6V2Q2/RV3I3ZkxmMIM+cWgJGQs76CaVtLLEDrXgqYj4c1sz+F1CCeCBk X-Received: by 2002:a17:907:2da4:b0:731:2772:59d9 with SMTP id gt36-20020a1709072da400b00731277259d9mr4634766ejc.751.1660911917102; Fri, 19 Aug 2022 05:25:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660911917; cv=none; d=google.com; s=arc-20160816; b=d7vDCYCcc1kXUv3SzKPaKTfV810N64Yk15VDtgHF2je4uMqtPTm1zf/TYiYvkZVyks ECJPE0jK8CdjchF0PmrtUffam0kT+VZgllNWfUZeTvf82zy6pMeXceZ5p7Ry+Py1zaKx CkRuTbJnmaOSRZpo30PE70uQYKM3/TZPeTFDqBC6Hm62zuQMOi30nksZfMTt7ZtiDFry 4tgZ5HaXNoQ5SNxznbxfGBtbvI3JKziJXQAGowzjMWoYoMv2GfSAWS1KVcTmRIqj5TwJ gMQqytHENRcIio/MW6oDk+daAWJ9Psnd0PdyfT/j4fTmz+TusLYZ3g6CJAeV5mz2PWBk 2Qeg== 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=iRQAht+syD+WoClHi+abQcpzAmB47QGZmxwK52W8goQ=; b=llHNBD4a+HQ5ZqBy4MkkTuLAVGBH347hPUVOCFO8R/acNrGazNCOvcaGGulFWTCCZF aOllqgJWQ5pfpktsqZxo9409pGo5EUxu6E6HrVAJWNX4Y9OAbAGIQT/XbwhB+QW550VP vqhBxWAIDSW4czTNRmasRcy2sKiVrt1FrwXxiQ3TI3Qhd01m58yVX2JqPegDOf15E7pZ Ee7WgMcJkVVjKVKD0LXDjWAcrnzdP83dHZ5thVegOwLTNkhJac6etLLpaOgJUGUfoieH v9rb4/qVp+tdrhTIEkHHJFecvgLlHbqMPKTh37Z2jK41kjZ83PySzVYsvDhKpBflAH6J OxOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gAnalwOy; 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 a21-20020a1709066d5500b00729c19c5106si2460489ejt.999.2022.08.19.05.24.51; Fri, 19 Aug 2022 05:25:17 -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=gAnalwOy; 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 S1348883AbiHSMQF (ORCPT + 99 others); Fri, 19 Aug 2022 08:16:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348546AbiHSMQD (ORCPT ); Fri, 19 Aug 2022 08:16:03 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F170DFBA4D for ; Fri, 19 Aug 2022 05:16:01 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id a9so5858078lfm.12 for ; Fri, 19 Aug 2022 05:16:01 -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=iRQAht+syD+WoClHi+abQcpzAmB47QGZmxwK52W8goQ=; b=gAnalwOyubLu6+wLXJWbeHG2l/u2fmMgVQ9Vpx1zAjL7bFzAM5ZzxJQcJDTeot4yn+ i1AJkCiTdquYltpTVt2ufhmroC5Uj/FxxUY6TdC9cKeyHf3f/ViVjSeGky44Bm+U7x03 7UcAcO4Ol3ry4gVYmwiLyIvga5mk111OYk+z1mTQjAUBS8QbknoRSmXCcSeqxp3J4BAM lGS55fHy2ePWP/sOp3TCd1gTP+zRBRsgcPLcehqXQBBqRL8CghXkoR/xGnXewBmiDEEG oqeNqSFRTsqamvLgd0nUvdFvmZ0A8GCy2DBVQx14FWpRe3kQcv0YPrMQacMchQJe6X1b 96MQ== 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=iRQAht+syD+WoClHi+abQcpzAmB47QGZmxwK52W8goQ=; b=O55yijnzT60v0kN1/8SVok4NuNTOFm5W21NA/Aw+8nRRMb1dMzIeeLcYdlQ12eo26D ZZrdNL5Csw4TMhS+b+dgQAV+Za3NTra2isSHmgvNwj/0N7oOTGkIReKo/FOMGfh5GZNk gxcTw1by4ntVGSLF5TDhadv1AnLkiLE1A3CLWWW9N0mUxCndcBOTnDX95FC/Ja6vYbIE p000XEi3eNrbAE8R41W5a/I/24scvzTYTyJjjD9wIcZ9Z3s457i/HxZLxfpBM9WP6tB0 eaFE+4cvp4rF1HasSEoTUT8WG2dsTnRill1+5NewONdLYY1S3KFV0Sid9AhJPE/33wgs CmZg== X-Gm-Message-State: ACgBeo2uKp0z/tJjTF+s9uP7IUcgmvG3USYqriupjEACXH1DimG0qvI6 nR3s61X9rmQkJJfHiu+iVrKnjQ== X-Received: by 2002:ac2:5e75:0:b0:492:c50a:3a89 with SMTP id a21-20020ac25e75000000b00492c50a3a89mr1449763lfr.68.1660911360346; Fri, 19 Aug 2022 05:16:00 -0700 (PDT) Received: from ?IPV6:2001:14bb:ac:e5a8:ef73:73ed:75b3:8ed5? (d1xw6v77xrs23np8r6z-4.rev.dnainternet.fi. [2001:14bb:ac:e5a8:ef73:73ed:75b3:8ed5]) by smtp.gmail.com with ESMTPSA id t14-20020a2e8e6e000000b00261af4754bbsm594964ljk.41.2022.08.19.05.15.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Aug 2022 05:15:59 -0700 (PDT) Message-ID: <438da392-f419-ad76-7e91-aa4aab36e12c@linaro.org> Date: Fri, 19 Aug 2022 15:15:58 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.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> From: Krzysztof Kozlowski In-Reply-To: <20220819091344.2274-2-chunfeng.yun@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 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. Best regards, Krzysztof