Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7493526rwd; Tue, 20 Jun 2023 01:55:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4qio3YKeLNnUSyEp2fumvm88acJH/RKevQwCuepAQsAWY0oRNqPaqv89RoPAKh1G72u2xd X-Received: by 2002:a05:6358:a19:b0:12b:dec2:5770 with SMTP id 25-20020a0563580a1900b0012bdec25770mr3286340rwa.11.1687251303604; Tue, 20 Jun 2023 01:55:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687251303; cv=none; d=google.com; s=arc-20160816; b=g1ayd+NDTm6enhKl+kZD++AvDlG/V///EH6ilfrFmn7dtgwg1oFrOEANAoFy32C5+2 57qrkz1uiilQH1vhY+PiFFYM1MnEhPblkSGmS0hc702a7fYtSkwC2yjTApAN1mgF5a8Q ckwxwg9kOxeBmaVF+C3TkYxp2QqtMHwQd/JFg6b9dgC2s6TsJ7Y1FDSAcAAfRHstak+N OTPAApjY3cRaPRYOpKmB1tkDgO8+IvuEjueZaVaHBwcrOs2PuLU24I+JnhOKtEpbgRsH SsRLZo1qy6KHf+cR+QvYidPAYnIY4JxnXGq0K0PHOKWppIS4VOc90YISjoXyUiSYGhSJ JKEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oRHzGWHRpUwDonTlaVOwIFlM2SCW7v5nUB3Eh9zTOmc=; b=hIHniwkX8e+BMRTcIP6OPmucPSHS7Gpp5rwcScA1dt9kn1kWYAMT4k/SO3tUAi8JTO /ldOGtD9zA6Xucp9giHT4+yz3rG66BmAS8fViR2N9WYe3g68jj0MYOcVo5txNTHfkon9 H7p+yH9kiASN9/37Njqm1lKIDPBJjDlzYeh87U5xYOTiFkc/HgvPDvdBmxJ2Wd5HiuqB EQYFz5vu7suIZq/wYV4SYf9jc9b461VkpPGDH/qseiLobgrM3HNnN/W2VnErj6bsAr3R ucWrLbSC1TjSHdDs8mMNxsLq8h2cy2UPv+GBySEASYkS8Dzjrvfkxs+sw5n0uMdD7vtC nfNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=hWosyP0T; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l70-20020a638849000000b0053074c54c3fsi1293524pgd.868.2023.06.20.01.54.51; Tue, 20 Jun 2023 01:55:03 -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=@microchip.com header.s=mchp header.b=hWosyP0T; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231898AbjFTI1f (ORCPT + 99 others); Tue, 20 Jun 2023 04:27:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230490AbjFTI1b (ORCPT ); Tue, 20 Jun 2023 04:27:31 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94B10CC; Tue, 20 Jun 2023 01:27:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1687249650; x=1718785650; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ZvWIZLnGk6a1F90IX6hAyqx9Id0pSBm9JE6pewSSCMo=; b=hWosyP0TWAl9EbdDx/f6Hkq77fGs6JiIuFLOuY++L0WvpMxnvZGjquda s8PHC+hG06PU4nBWXF0sJaq3CIew3kwiWpeS+NeP4n4JwKRmtB28N67yn +MgQ+b2JGOkdrgIV+RLrSA5Cd+6Hjvsem3Xgf+PUALo6330j8gHqnOgV9 l+QKGM0KXIrB4sZ5nZEclj0acaZC/4jLGD7aLicJV1Zmb3mjmFL+96S0F 6RPDauHYXRHFftbYKbGDib7b8nZVCGXI6PlwrM/VJaQ1br5mKfQ92LGZg NoTCosiARQQfSYEcJ/RKBXAylw31EumWENDPxUfYJqSyxqvCKE6cSVgTF A==; X-IronPort-AV: E=Sophos;i="6.00,256,1681196400"; d="asc'?scan'208";a="231073094" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Jun 2023 01:27:29 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 20 Jun 2023 01:27:26 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Tue, 20 Jun 2023 01:27:23 -0700 Date: Tue, 20 Jun 2023 09:26:57 +0100 From: Conor Dooley To: Guo Samin CC: Andrew Lunn , Conor Dooley , , , , Peter Geis , Frank , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Heiner Kallweit , Russell King , Yanhong Wang Subject: Re: [PATCH v3 1/2] dt-bindings: net: motorcomm: Add pad driver strength cfg Message-ID: <20230620-clicker-antivirus-99e24a06954e@wendy> References: <20230526090502.29835-1-samin.guo@starfivetech.com> <20230526090502.29835-2-samin.guo@starfivetech.com> <20230526-glutinous-pristine-fed571235b80@spud> <1dbf113c-7592-68bd-6aaf-05ff1d8c538c@starfivetech.com> <15eb4ffe-ea12-9a2c-ae9d-c34860384b60@starfivetech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NvJVgXFV5BWCi8Zi" Content-Disposition: inline In-Reply-To: <15eb4ffe-ea12-9a2c-ae9d-c34860384b60@starfivetech.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 --NvJVgXFV5BWCi8Zi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey, On Tue, Jun 20, 2023 at 11:09:52AM +0800, Guo Samin wrote: > From: Guo Samin > > From: Conor Dooley > >> On Fri, May 26, 2023 at 05:05:01PM +0800, Samin Guo wrote: > >>> The motorcomm phy (YT8531) supports the ability to adjust the drive > >>> strength of the rx_clk/rx_data, the value range of pad driver > >>> strength is 0 to 7. > >>> + motorcomm,rx-clk-driver-strength: > >>> + description: drive strength of rx_clk pad. > >>> + $ref: /schemas/types.yaml#/definitions/uint32 > >>> + enum: [ 0, 1, 2, 3, 4, 5, 6, 7 ] > >> > >> I think you should use minimum & maximum instead of these listed out > >> enums. > > You have also had this comment since v1 & were reminded of it on > >> v2 by Krzysztof: "What do the numbers mean? What are the units? mA?" > > The good news is that we just got some data about units from Motorcomm.= =20 > > Maybe I can post the data show of the unit later after I get the comple= te data. > Sorry, haven't updated in a while. NW chief. > I just got the detailed data of Driver Strength(DS) from Motorcomm , whic= h applies to both rx_clk and rx_data. >=20 > |----------------------| > | ds map table | > |----------------------| > | DS(3b) | Current (mA)| > |--------|-------------| > | 000 | 1.20 | > | 001 | 2.10 | > | 010 | 2.70 | > | 011 | 2.91 | > | 100 | 3.11 | > | 101 | 3.60 | > | 110 | 3.97 | > | 111 | 4.35 | > |--------|-------------| >=20 > Since these currents are not integer values and have no regularity, > it is not very good to use in the drive/dts in my opinion. Who says you have to use mA? What about uA? > Therefore, I tend to continue to use DS(0-7) in dts/driver, and adding > a description of the current value corresponding to DS in dt-bindings.=20 I think this goes against not putting register values into the dts & that the accurate description of the hardware are the currents. > Like This: >=20 > + motorcomm,rx-clk-driver-strength: > + description: drive strength of rx_clk pad. You need "description: |" to preserve the formatting if you add tables, but I don't think that this is a good idea. Put the values in here that describe the hardware (IOW the currents) and then you don't need to have this table. > + |----------------------| > + | rx_clk ds map table | > + |----------------------| > + | DS(3b) | Current (mA)| > + | 000 | 1.20 | > + | 001 | 2.10 | > + | 010 | 2.70 | > + | 011 | 2.91 | > + | 100 | 3.11 | > + | 101 | 3.60 | > + | 110 | 3.97 | > + | 111 | 4.35 | > + |--------|-------------| > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [ 0, 1, 2, 3, 4, 5, 6, 7 ] > + default: 3 > + > Or use minimum & maximum instead of these listed out enums With the actual current values, enum rather than min + max. Cheers, Conor. --NvJVgXFV5BWCi8Zi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZJFi0QAKCRB4tDGHoIJi 0jkZAQD0AdtEo8r1ss1UMAX71qHvpw4XtFiP6Xp6aLVVVsyKfwEAzivJCNzTBl+1 IBDsXO2BNofaxXz2KLZ8JtK/8Lp0vww= =+VHM -----END PGP SIGNATURE----- --NvJVgXFV5BWCi8Zi--