Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7882763rwd; Tue, 20 Jun 2023 07:27:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ikaZZa1XpmR6rWMUPOziu4Es0SDPMpPxttEbJtaXupT2NOSuk2U7Qb1/h3ZKp5GA4myws X-Received: by 2002:a05:6a20:3d88:b0:10e:96b5:45fa with SMTP id s8-20020a056a203d8800b0010e96b545famr9767499pzi.43.1687271247806; Tue, 20 Jun 2023 07:27:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687271247; cv=none; d=google.com; s=arc-20160816; b=rpCsiDMDbV07LyVhWnE6+Q5pAStEnrxziW3r2uuICmjIUws+rLtQ/KbzIoFgsMxnCj BbEV2Nqa1qG+u27dzi88AtSIjl3sS+46mRNu7TCliopTw9+QgZYyoi/3Da2SG9L6yeqQ ab6UpwMk2U1rSpS5ySOXoalosHcnIs6jIJv5B/vshFae1yLbco4yPz135UKN2dbpiFtc 4UjSr3O/XjeGdmN/QtjLdGxzt6SV2oGJoVwRZV7Wg6rg9ybKuFKGkJlkt5ZyrDxPX+VQ UlucBkS+3Nt3ALhfqQR8JuBOJYJNjRtYcbwr0hiTV3fRti/T4Nmz/AvnN3KTgVoyfqj/ Epzw== 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=naZEnvmVHGGLbfZLbhTkxbQ/pztHxoOXvvXSluXZFDw=; b=tLWyeUZSp7ZRmhdiSmf39iXufJ21RoPE/8k8swmjanATGL20z8gOw+TMyrbEhIBONC 0jwQkUgsb07W7zqE/G0p+m9dwD3OOf9QTOSUqJseTrLQgBAU5y7klu29IhKa9pa9AuEj ji0n/LofZWrn9w1v4BEYq5lAfjoNhGtkl5eoEIX/CITgw57SA8s4pjDZEiyhQMFZvds2 Od+NVIY92Ro0O56/TtZhuO+ngch+kVTBOavQDSc/GQwbjX3822dk7komM64ZNOodfLc/ dOAXa3bHRgLat7Jd+e+cgJLbnfcL8doQZwmkTXBgPLc5xIZL+HkU3Mz3xAjtEEs50Npc 5w5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=LdJKPnMT; 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=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g18-20020aa796b2000000b0066884797461si1708299pfk.333.2023.06.20.07.27.13; Tue, 20 Jun 2023 07:27:27 -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=@lunn.ch header.s=20171124 header.b=LdJKPnMT; 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=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232806AbjFTOAT (ORCPT + 99 others); Tue, 20 Jun 2023 10:00:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232719AbjFTOAM (ORCPT ); Tue, 20 Jun 2023 10:00:12 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 203E5A4; Tue, 20 Jun 2023 07:00:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=naZEnvmVHGGLbfZLbhTkxbQ/pztHxoOXvvXSluXZFDw=; b=LdJKPnMTXGQVxOZ/CtT3rXX9j4 +YyN7FGFydfu6UAbEqTYj3Tndqk/ckJNjknA4XHautgzDcpT81xOJZ4Rmm2IxboqHU20FnaQfsA8B uBjgzGMNBOrFccaK+IILeqPWfKl/XeC8h4GLA1E1D2qTsSa0+DTix8aeW6CPSnrmaNB0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qBbPs-00H018-Ad; Tue, 20 Jun 2023 15:29:04 +0200 Date: Tue, 20 Jun 2023 15:29:04 +0200 From: Andrew Lunn To: Guo Samin Cc: Conor Dooley , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, 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: 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: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15eb4ffe-ea12-9a2c-ae9d-c34860384b60@starfivetech.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, 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 > I just got the detailed data of Driver Strength(DS) from Motorcomm , > which applies to both rx_clk and rx_data. > > |----------------------| > | 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 | > |--------|-------------| > > Since these currents are not integer values Integers is not a problem. Simply use uA. > and have no regularity, it is not very good to use in the drive/dts > in my opinion. I think they are fine to use. Add a lookup table, microamps to register value. Return -EINVAL if the requested value is not in the table. List the valid values in the schema, so the checker tool might point out problems. Andrew