From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC27433D6FA for ; Thu, 29 Jan 2026 10:16:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769681784; cv=none; b=mbETHtdn7IwZCoZMbyVb+GutQvrMXlNHMcu/brU167OPFVfxkqACklpUWSzgr0H0k/Pl5VCjzJNlICRBECAQICrjd1WIRp7NFSwX+C5TgUE4j3G3bWfs+X8aeRt/ME7n8D7DbFy1gznvHEicZUvvRfDSOsdO0/kgzaX3WNENf48= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769681784; c=relaxed/simple; bh=Se0P0dL3b3W51U6MVaZg7UsTm1e1L6pVdlM/Sha3Lt8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uXGZwE/8xhO6kPXC9nMUJwyGXkvLrvFHPeuoOoxsaHzvAzLlBLnav9tziEu15H5OGpG/lUkpxEamCLRzt2Hmqk5qZiqhLV++4Ph7bqWp4Q5sFvPmJkrZ1G/Gv735R3ZF0/jVRPdnhG+/u5gw/8ccQfJVS0D3jiZM+yLpANzU3WY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=O0YPloFl; arc=none smtp.client-ip=209.85.221.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="O0YPloFl" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-4327555464cso638132f8f.1 for ; Thu, 29 Jan 2026 02:16:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769681781; x=1770286581; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=q3zK/4SLK4ukG/iXcIDXnPvimWgfkq6O3gX4ZLAuWM8=; b=O0YPloFlDnRYZu4IX+w+ZGUpRdZQXQyXxneVKYh1Jr7ij15mi8Bgc1i1SzErkHUX9m TaWXiFwk+a1eIS7t1i2yoYJHTB8qrgG353kCAdISPuLTEzbN8TV8OEHQCFKtCwJontM7 urnNag0HN2t9ZUg0F6GCtNLxN4IaN5jYXbhZCbQ/bi7RqoQZeDcEl3+vGPMehmsrYlrv ZrTse5y4l+MAige5Ql8s9JVnZNHVjh3VM7x1FmGT3ZZo8YBrjEknXUfpGHW9PMCPT4Tw 0EyiVwUUde8E0ac9ZBbcj81/WLEB64O+0aYLAcWzWdjTOp4KA0n6VUNuig0xRo4qN7OO 02Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769681781; x=1770286581; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=q3zK/4SLK4ukG/iXcIDXnPvimWgfkq6O3gX4ZLAuWM8=; b=e85QGGcxIhz/RrR0mAHtfZtS+/Kb/uyRz7yz9FxhiWPh+wASgcHp77ppl7/VDuWgho 0zHjQ5RGfDZRO5s1intkiwtOAEMxFmBl3w0K3eipp4ou6eKSEO+IEBMHkUwTrUpKiTYE wtKK8jg9hPcx4MVOQYVcTDqs9R/SvMn3Fdo7ZjO2M8tZS6psvk7FOqQQzlH/fiasnCyK jPTF/5jhwehzohsQxbTeCTTH+WlRuf2JWAAj/y/ig6dSAtzrzBMfr33Lr7gnX2lhco8C MmyRRzo0WA9z9Vs96FwESawNOypKxRPDMdNzK8wURJn6VJvd1JDcFCfXFJLB6pNiUM78 bjOg== X-Gm-Message-State: AOJu0YwQW78RKk+dz45c5WbECGyMyDhtyY9xyqjQnRpJoKwvon82X2qI 7SiHkmGfm2+1H834ouJKDsw6+Ii7EXpNsCaMFAU1GEMm8QjttyUlq972 X-Gm-Gg: AZuq6aLVCwwQJ52TqB7uztnDE7h4VoV+t+KphvlJeGLwn9VsZ7W+C4KWQyg9thyJCsK 6DcG5CGssMgS9gIRcM1KAcsxSRSnFEC7aqV/XFvqMZ7eY6EEe2XYY+UMEY2YiS8s2Mi2r+rovO2 Dkgl3rgplnNCfFGM7mAocZeRohgNcOaeb2Dq6GI5wNTPNRUuyuYkfqoPBwYxwtSVxE41vwqbu1f +r1k5aMwtGI47r7/SIuFuYy8eIo3BEODNnGqIgLcnB6YqTXNeCCKOEhhpp+Zg7jM+TZgpcfWcnQ 7q/as8dR0F4Se1kqqpTDuySKOoC4xM0vNZwPV3rHBRL50Gh7SeBRCJk0CYf53Pj4EUHppoAxHSF imLYy5FmeU5S7tw62qM7YQGCAk98vF3Hy2BkTPqa2felAs7u5UzmgoXsg/HieG4RWzUrDpbTYr5 XyNYwnUzYHMAE= X-Received: by 2002:a05:6000:2907:b0:435:bcfe:b11 with SMTP id ffacd0b85a97d-435dd05c94dmr11343793f8f.18.1769681781211; Thu, 29 Jan 2026 02:16:21 -0800 (PST) Received: from nas.local ([2001:912:1ac0:1e00:c662:37ff:fe09:93df]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-435e132303fsm13413662f8f.36.2026.01.29.02.16.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jan 2026 02:16:20 -0800 (PST) From: Damien Dejean To: andrew@lunn.ch, krzk+dt@kernel.org, robh@kernel.org, kuba@kernel.org Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, edumazet@google.com, davem@davemloft.net, pabeni@redhat.com, hkallweit1@gmail.com, Damien Dejean Subject: [PATCH v4 3/4] dt-bindings: net: ethernet-phy: add property enet-phy-lane-polarity Date: Thu, 29 Jan 2026 11:16:05 +0100 Message-ID: <20260129101606.33972-3-dam.dejean@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260129101606.33972-1-dam.dejean@gmail.com> References: <20260129101606.33972-1-dam.dejean@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add the property enet-phy-lane-polarity to describe the polarity of the PHY lanes. To ease PCB designs some manufacturers allow to wire the pairs with a reverse polarity and provide a way to configure it. The property 'enet-phy-lane-polarity' sets the polarity of each pair. Bit 0 to 3 configure the polarity or pairs A to D, if set to 1 the polarity is reversed for this pair. Signed-off-by: Damien Dejean --- Documentation/devicetree/bindings/net/ethernet-phy.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/net/ethernet-phy.yaml b/Documentation/devicetree/bindings/net/ethernet-phy.yaml index 8347d4e134d2..67747493352b 100644 --- a/Documentation/devicetree/bindings/net/ethernet-phy.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-phy.yaml @@ -132,6 +132,14 @@ properties: description: For normal (0) or reverse (1) order of the pairs (ABCD -> DCBA). + enet-phy-lane-polarity: + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 0xf + description: + A bitmap to describe pair polarity swap. Bit 0 to swap polarity of pair A, + bit 1 to swap polarity of pair B, bit 2 to swap polarity of pair C and bit + 3 to swap polarity of pair D. + eee-broken-100tx: $ref: /schemas/types.yaml#/definitions/flag description: -- 2.47.3