🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #13912

Re: [PATCH net-next v3 5/5] net: phy: dp83867: support setting output-impedance

#13912
From: Andrew Lunn
Date: Tue, 10 Nov 2026 13:12
28 lines
9879 bytes
On Fri, Nov 06, 2026 at 08:47:29AM +0100, Steffen Trumtrar wrote:
> Currently the dp83867 supports setting the io impedance to minimum,
> maximum, default or a value from a nvmem cell. In situations where there
> is no backend for a nvmem cell, the value can not be set to anything but
> minimum, maximum or default.
> 
> Add support for the ti,output-impedance-ohms binding, allowing to
> specify the impedance in ohms via the devicetree. The PHY has 32
> settings between 35 and 70 ohms. The datasheet does not specify the
> impedance of each setting, so the value is mapped linearly to the
> nearest one.
> 
> With this mapping, 50 ohms results in 0x12. For non-OF devices, the
> driver sets 0x0f (IO_IMPEDANCE_MIN / 2) as the 50 ohm default "per
> datasheet", which would be 53 ohms with the linear mapping. As the
> datasheet only gives the range, neither value can be checked against it.
> 
> The binding does not allow combining the new property with the nvmem
> cell or the boolean properties. The driver still reads the nvmem cell
> first, then ti,max-output-impedance, ti,min-output-impedance and
> ti,output-impedance-ohms.
> 
> Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Technical Details
Message-ID: <ab3b042d-dded-4349-b9c0-7b2678274275@lunn.ch>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360219-linux-kernel-netdev=dewy.ru
References: <20261106-v7-2-topic-dp83867-v3-0-45e1d3adf1bf@pengutronix.de> <20261106-v7-2-topic-dp83867-v3-5-45e1d3adf1bf@pengutronix.de>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360219-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v3 5/5] net: phy: dp83867: support setting
 output-impedance
Date: Tue, 10 Nov 2026 14:12:22 +0100
Organization: Usenet Network
Message-ID: <ab3b042d-dded-4349-b9c0-7b2678274275@lunn.ch>
References: <20261106-v7-2-topic-dp83867-v3-0-45e1d3adf1bf@pengutronix.de>
 <20261106-v7-2-topic-dp83867-v3-5-45e1d3adf1bf@pengutronix.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="615614"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:AnyNN+slMSg3+wqPKIlHPBLwpks= sha256:0aC6+2PFR517SYgH5JjwwXFlRlUPFVSAvaF01fu3nD8=
	sha1:i0DhdT/rlOPIt94Hlt8JxVCORh0= sha256:b2mVQ2evwY2BVU2GzSqMWOPaOf+RtOMjiwDPNkfwRk8=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id B08C5113BA8; Tue, 10 Nov 2026 16:33:50 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.95
X-Spam-Status: No, score=-1.95 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=lunn.ch
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id gqFx6AKwukAZ;
	Tue, 10 Nov 2026 16:33:47 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-360219-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 7223E113BA6; Tue, 10 Nov 2026 16:33:37 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 33547142D4A; Tue, 10 Nov 2026 13:15:40 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794316354;
	b=nMC7DYzCdFvY6WzGgE+HIhqi7hYS+g/JMjD6LpZrThCTyw0LwyMkY9LTuhCOsza6bSv8
	 9WsdSARiJg4p3pIbtILNLfFaT2Z1MMqST04rjLADtdSQrkspvbWsc78fv4BNCk2ZJWdu2
	 zvxO2cZO3eGWJ9UMTAyXf7WliGiL589/fohHTsUfraAynYoKnvb8uMeyvU1DXU7jDtfUU
	 Ox3/iw8UYY8yT5JBKNCi+G22Hrt1ub6rdipIGp469LxiYijKarx12XwMlYke/xamHRFTC
	 Bk/c4PI230kbY6998pRD1a7hfDvuKt8rdxAouatm6zIPNedejl857Jk5CzCxMXbUGkA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794316354;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=uN8v/ql7Ig3Q1kzcH3JlLyoHXVIkZ6u9pSBdR1rwWCg=;
	b=jX1uieZlsCzfmCzIhgxC8L6E7YuHX4kFE6iR1Xvag1h4nZSTAtNfnn0POzhkFKwN3kes
	 sIXydx5/Ok0PfL2dErqX3GsLcUmp52gk1jIKyVCJiQOtJZR+idiSqcAYn3bZQEeS/KHRR
	 GSoXE1NqohgU7+hpP48dzaDxGL0x3Oy1qYoft4kZspgpT5Zmv9jrnUoaNw0Is2N5uAbxD
	 lCsPOQN2s5HendsTkk9xXPFDbIjYqBJ9NXTJR2UuAKWm3CLhe1WZZCMhpo5wrJPqqUYC7
	 d4ujBd0bawSwO3UqGGF8Tsz2vfBcD0livmbB1o06Nt15lchqOXQ0C5LQVrjZOP6YVYQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=t62pdt2N;
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 84A92606B6F7;
	Tue, 10 Nov 2026 13:12:34 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=t62pdt2N
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794316353;
	b=kuuVKDnYZcYw3SYjWBxfrkLUeOp7lWRW2nrK+ZGvwRhh0QMw0vCtf4vcbJ94xFxq0GtG
	 zWEGoszuxHw/bvgJdxEDhS1yr/mTTCQc0kfiAO5QJiYbAUKEZZhuC8clMc4qTsswWjhbU
	 HyE6ZfZcULoNEqLZqRgfN1uO1/GDGCdkTxjDRjiCxcTgnXa/m/ov2x6fm6yQwOnQZGrC8
	 BUT8Zd947YOR4mh/hQ8NX7+yGyOMVoSNCvFlPLk+arYrcvnX4kScWrv76JNhCe+A3YF2y
	 zwNhYcqa6XecFRaTWXQAw8v01SOlZ0hr2PdroOCw3IX+7WB811x/vdJPSJ81rJxmEow==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794316353;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=uN8v/ql7Ig3Q1kzcH3JlLyoHXVIkZ6u9pSBdR1rwWCg=;
	b=aWhIjE1lsd+eg9SNIgQJyED1Kegmk0w0J3tp4ZQKW4z4iCgH7XEFbH9NVP652mmih51f
	 U8t0EsX7bxz4Sd4ufsQAWcrM2oDqbvx2+cU7xerQzomzYLc5GUs/0iAzlShlWExcq05j1
	 BoZbQtSD1FYNjTHt4g9oPzTgr2fvnxjvGXoO0aHu0fmfQCgv85ACqOAOlROns3yzTHm1A
	 jyTcfsO8Q4yTtTy0ptRjoJRx++p4oHPUcyLYpkr7BvkP4Huzj9mzX0nqhzRFApZH7ECV8
	 oCHL2UJ85g+8jfSpbp8xBvNn8RrSF3qcI/TeqDhprvZGUvrtFwUX0NxCSdXMfvXreDA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=t62pdt2N;
	arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id C506D606A7CF;
	Tue, 10 Nov 2026 13:12:32 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C506D606A7CF
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-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=uN8v/ql7Ig3Q1kzcH3JlLyoHXVIkZ6u9pSBdR1rwWCg=; b=t62pdt2NbyA0Rm8RsYb4nduog1
	bDSBtA7ZYHqleUkTKEPRlFTIzt4Uu9JI47Br24O6URPnJSKyYQ+miajbzhp5ZFyJyhCOXQnydWkTw
	88LSdaHDXTmJugXY9MjIJlHcBSIpCIRpjZPvwlddRyaXM3hnwV114qBTcdAssYzBkXIw=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xQleA-00FTwe-5i; Tue, 10 Nov 2026 14:12:22 +0100
X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>, Andrew Davis <afd@ti.com>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Russell King <linux@armlinux.org.uk>,
	Michal Simek <michal.simek@amd.com>,
	Eric Dumazet <edumazet@kernel.org>, netdev@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261106-v7-2-topic-dp83867-v3-5-45e1d3adf1bf@pengutronix.de>