Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1775465rdd; Thu, 11 Jan 2024 08:56:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IG5eKjfTNGs0F55zYB2hL0RN2l92MSbIN659wQiGDjLfSX6JeRnEo64Ds/5MsxnU44UDC/i X-Received: by 2002:a17:906:244b:b0:a28:d850:642a with SMTP id a11-20020a170906244b00b00a28d850642amr121677ejb.40.1704992177306; Thu, 11 Jan 2024 08:56:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704992177; cv=none; d=google.com; s=arc-20160816; b=gMBSfVD0HUs4s1Jwvik0zSS1H8hq0ZvH/f/fYCEiF8GVVBoy+pVkb4c1zmNmGuoBc+ hSanjyn7nhpVdwNaU/6ZxUKxr+0Ni5FIcqNNBWrTDiFEN+sqq58iTOJjoFvJgwe9hA5B Vi07tC5NFv266GCboxmrAT5HFDaC75pyaJqBplUh3vCb2M3F6eGwMHTveKw/YeGOZgHr HvNMxu7HE1kgHnZzaVCi1qgzRM3sZvNLQWBO+QDLC0vUyiJzoXNFNEcnYAaLptxoOxN+ qPKp5PxloQYucahcK/JmDrp0z1+tf/dEZfzgkkVvaWyyiHKZ9hn3e16xUuLnSY8HNLLN 42aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WtuGr+KIVGoOtPZDsOrWr5v6dnJPQz1Q6opVpNgA6H8=; fh=0+oE3MlXQ3vFz95E5Hmf/xtC/TnIT9LP4UZj0MdChsw=; b=bLtQUxEcssmTTJ1/yigO3B84Fkqy4OEFwOfFfLhB6ky/8z/fZ7S3j8n4q1R5jeHtrE FCsINGxS+UmKbamyXAWvvPtWudjeujqCvWV8D5n9hF/lF1F9x9g24qcF7Xe4rncCc7tI j8WqqF33muKCjYk2c3JWupTdwHc8/V/CKaN3SZY2yjfkAH5CD0jdHtYomPtQK8kFPxv6 3jOyW+ywQ2E5GtGIw6ZC1lpKAlV4CH4IAHx46RlvP+8keWS/VdMdkWK0qK7dqhsX+7tG iBZnEvdKSCGW51stfVIpViJBoKzBGgsW4cfBUET3X0jhu2oUMgT7TY9nfv51bmgCUAoq 6/Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=j7Z83Wll; spf=pass (google.com: domain of linux-kernel+bounces-23891-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23891-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v21-20020a170906489500b00a2c6a731b63si524080ejq.194.2024.01.11.08.56.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 08:56:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23891-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=j7Z83Wll; spf=pass (google.com: domain of linux-kernel+bounces-23891-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23891-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EDB861F29D7B for ; Thu, 11 Jan 2024 16:48:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C1EB51001; Thu, 11 Jan 2024 16:48:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="j7Z83Wll" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E11AA3C067; Thu, 11 Jan 2024 16:47:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch 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=WtuGr+KIVGoOtPZDsOrWr5v6dnJPQz1Q6opVpNgA6H8=; b=j7Z83WllkN+7g32iyYAdYTYJav 5ApcCOG0btxEWHu1l7/qE48M7qZUOGC6h60fu+va/mNhpolw3BJDfEhM1Ej3XCxl+Yad5faXpvwWV nDA44b97/NwAq2+I0ufY7gRWE9R23FwTjGTQI80K4aaMG4dgvPHSMhmWUiws1LrssOQ0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rNyDe-0050zp-7k; Thu, 11 Jan 2024 17:47:50 +0100 Date: Thu, 11 Jan 2024 17:47:50 +0100 From: Andrew Lunn To: POPESCU Catalin Cc: "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "conor+dt@kernel.org" , "afd@ti.com" , "hkallweit1@gmail.com" , "linux@armlinux.org.uk" , "netdev@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , GEO-CHHER-bsp-development Subject: Re: [PATCH 1/3] dt-bindings: net: dp83826: add ti,cfg-dac-minus binding Message-ID: <5f57479b-59e8-458b-a19c-8306fbfe8ff7@lunn.ch> References: <20240111161927.3689084-1-catalin.popescu@leica-geosystems.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: > These are not raw register values and these are not voltage values but > voltage ratios. I'm mapping the voltage ratios to enum values [0-16] > which are converted to register raw values by the driver. I don't see a > better way to do this. I assume 802.3 states what the actual voltage should be? So you can calculate what 50% of that is? Andrew