From nobody Mon Apr 6 17:25:45 2026 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 3F23935DA5C for ; Wed, 18 Mar 2026 21:55:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773870911; cv=none; b=P9jd7w+hgpszzL7gXb8Zo8nMZqTmt9bJ7h5kvQfL0nD3SMe21kcvjBSsHnnYw0VokqVdwx38JSSKlJAL4hOp+LfMnG4sGhRUG54zBDwEL5hZfL8PxTeKWYfdwA7pA3JfpvYBe+I2Uyxa/yXPbI7yKDVadvPDVFCnpjwBMy6zfVY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773870911; c=relaxed/simple; bh=NcV7Y8rF5EsCyaO+fQzMv4yYadXViOfLjUAI/+Np8mI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OIqmPMQTOre0jXc3+0ShuBKPG3xWTPTRoBxo7twHywodS+8QCg892IW1t25xn1ZI+eDf1sf8SFLq6fitR2mjq7wTl1JGPsQK4EwxHOTkSzLfNa/zPbCclz99MuupGisSU6gfY8VHst8T5brp76tlvOb8IWchNHud6x2Om6G6N/8= 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=ktX/rKGC; arc=none smtp.client-ip=209.85.128.44 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="ktX/rKGC" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-48541edecf9so3448435e9.1 for ; Wed, 18 Mar 2026 14:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773870909; x=1774475709; 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=IkgvDwmYQtcd0bE08ner2utHU4QPqUbSnWFPd8ItaAU=; b=ktX/rKGC76toMUOM9F2ZXFrFUDCCCsktdn9XfvPVmFi+yZHXtD5IGsyRwKNiaZ8TLY Fex+Ybn+1glIIC4xk/QLYt0vPeepxCQcIw/5AWJ5Ki9w8G3ko01vQF2MQX/np/sfFxRS iBhj6+6+cAURxMRO8TOsRDlz0E2hz4A86qwsYAJNi3wee9me1I/NPotqCo0tOo4ihORE RkRjE0usoDfQhhEoS5XhWLxhmqH8wZpSIBg5W+9eLkiyGHU6PJGKYaS4KE7f9yXRRhu/ Wgt5PlJ4v9IUuGOHBHZ1veykKmbFoKiZ21n8Q2hk+5+iKy09ceMx4N/8LyWhf5sGXEkp Twog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773870909; x=1774475709; 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=IkgvDwmYQtcd0bE08ner2utHU4QPqUbSnWFPd8ItaAU=; b=Z9C0S0Swypqow5BSNhph7JzIbF3f3WAom0MrKwQxdwKa6fzib3zPchlRNigGoXKrx1 iQ4F7Xe8FDz+kMTLAgmwQ9TBLAjfd/ozH1UCgu6ZpHPiek1INXU+npZhNl6bimw6fR8r FsRlI9k3s1u9QzLPkgMt91Qq9WZZMyQwViM8jGYdqWpKLg/Jmr25kkRfHKADXA7K/cUu TuDBVlCdPg2p2+09p4jVLPP2/nc2eK6MWLIta31VQ8cn3YKW3rddCKQIg9cHd8eCvZFH Ay4NSKqPaFQKkCmtnzkyXZ+dvl0aMgvcr197LUID3LYOUTl3/DbHvnaCalw2Kg8YlsWp haJw== X-Forwarded-Encrypted: i=1; AJvYcCWvY7yD4hay6x1nRaM8I10xOMCbxYX1Fi3L+NtfHQPyDAVuEybkD07SnShDO6myYbQ9bcik1L7htNYGUnw=@vger.kernel.org X-Gm-Message-State: AOJu0YznMsgDNUfKKz7VLVbBP+mkiC8jRgZpcz/rBz2VRx2EA6/jqK2P RbN+rwwAAoPKJaIZJDQcWF7bFtpjC9I7RFWVFTTCwspBk/9QYl51qelY X-Gm-Gg: ATEYQzwWkZKQlBiMTJ3sjcMT3S7wtJnlQN8RwyxGET+F4a4wPDEaWZlbn0wZVZSN3h4 r4R2VCMXeBUMwdkKM9uz7mWvlca9aonnurOCh/cKAQyEGiBXBV7+AuElFI6z3xXrBA1KDHv3RNH 4/SPr5yOrIoLqapMuRTB6VSVaUSa11XwfZ1SC575Q9Ri5vTeGbbJqTajhqvNMIRBMPJ5Ngg/BfP LBrybX9k+3nRl6Ekka8FV0wfMfDLlrtyRCpJLscvx09UeBdtuutD/WatlJFLKm3FVyItB2mxuaU yTXiUkkMRS73xfM60FUmy9stUwYlZVaQSW/xQv42WXWfPeI3/arAjixoevbQv1JIIKPsViyW59m U9RKOqXytQ+/JEy3Ruer2gNUSMWuTYmV/gQRb9FJFQXLNtSKcvPL2Z53guqWz8fUJZAEn1HoLk+ VX/NIUs44UDs35VzbWE4igl1TtmslJ96Kcjg== X-Received: by 2002:a05:600c:4fc4:b0:485:3b00:f92e with SMTP id 5b1f17b1804b1-486f441bc46mr80203095e9.2.1773870908462; Wed, 18 Mar 2026 14:55:08 -0700 (PDT) Received: from nas.local ([2001:912:1ac0:1e10:c662:37ff:fe09:94df]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-486f8c292e2sm19373735e9.2.2026.03.18.14.55.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Mar 2026 14:55:08 -0700 (PDT) From: Damien Dejean To: andrew@lunn.ch, krzk+dt@kernel.org, robh@kernel.org, kuba@kernel.org, maxime.chevallier@bootlin.com, pabeni@redhat.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, edumazet@google.com, davem@davemloft.net, hkallweit1@gmail.com, Damien Dejean Subject: [PATCH net-next v9 3/4] dt-bindings: net: ethernet-phy: add property enet-phy-pair-polarity Date: Wed, 18 Mar 2026 22:55:00 +0100 Message-ID: <20260318215502.106528-4-dam.dejean@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260318215502.106528-1-dam.dejean@gmail.com> References: <20260318215502.106528-1-dam.dejean@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add the property enet-phy-pair-polarity to describe the polarity of the PHY pairs. 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-pair-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 Reviewed-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/net/ethernet-phy.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/net/ethernet-phy.yaml b/Docu= mentation/devicetree/bindings/net/ethernet-phy.yaml index 4a27547f7d7a..21a1a63506f0 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). =20 + enet-phy-pair-polarity: + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 0xf + description: + A bitmap to describe pair polarity swap. Bit 0 to swap polarity of p= air A, + bit 1 to swap polarity of pair B, bit 2 to swap polarity of pair C a= nd bit + 3 to swap polarity of pair D. + eee-broken-100tx: $ref: /schemas/types.yaml#/definitions/flag description: --=20 2.47.3