From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC8A3EB64DB for ; Tue, 20 Jun 2023 14:00:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232745AbjFTOAU (ORCPT ); Tue, 20 Jun 2023 10:00:20 -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> 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