From nobody Wed Apr 8 04:39:33 2026 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.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 F1AC43D8124 for ; Tue, 10 Mar 2026 17:39:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773164344; cv=none; b=H5mHuEuwZEA8Cjt1RR55DQA5c8Ed4NeNtafXo2nBbEpmqLPtQaohcAU9cuF3bCpRZWQMsaHe8S6Po0bKkeIxhG6MmUN0NaXxz9RDC0qVR2xyUMQWew8fEyevy2kbldS8GhZd6DZYo21JnOUrE+0Quga++eT6fqUfpHCZgNfEIvE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773164344; c=relaxed/simple; bh=NcV7Y8rF5EsCyaO+fQzMv4yYadXViOfLjUAI/+Np8mI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UZL837Yv5yor/IvqwE30AYBlCHunK/2S1F0q2Xg8e+Zzp6H368AE0KGzKEMFj3AyvE+AGoFbyfpxIkLB55dm2j5J+FVkbzrDHA5sx1EHgaEzua7kmZoPVwO6IlIWZ0Oj/c+zTuUxIEOP5OFHvQj8Ide1vsAW1lG9d16NNq6dIi0= 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=ZHpJfLss; arc=none smtp.client-ip=209.85.128.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="ZHpJfLss" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4852e09e23dso30510655e9.0 for ; Tue, 10 Mar 2026 10:39:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773164337; x=1773769137; 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=ZHpJfLssOcx54qleUpFRLOCOW6xKz19axoeVGTVB4szZliRL2kp7jQssLX8xRcNoKW Pd3j65bLkW8KgeivZc/OGW2rXppb/4dJqqhl0vTPuIr6qU4z2wzCyBrB6PniQfu0Tm6W SB78ywyuiDQ6Qyl7KOmrOilLzLzO7+6LI8aRlZu8QcGs4IePVZF6v2r3+BRUSoHcnAvw lZthRf4kLlhf4qYxOrdGv+yod1icD0wi8uwKGG7Nod0YLJa+H0Mxe/lFP8QOPAXp94So aUe4qpCUZi+NybWRDgs7WdmvbKRyQvVMTrRsEc7O14kmX53Wpfcfpl4oCvsL2RTkhNw6 dsFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773164337; x=1773769137; 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=L5e10JNUT1GueT8tKkq+VJI8AOTzTGioj29zgyyk10yc4XFaCrCj+MrFXDAz71vHX5 KIqI+nVyvICfsTAWHmDclXZegUTMWcvpI//Y613GmuouohKK2PqmAIU2o69NLNOm2+UP ys8eANjM4vKANUQdwUwu0Y6srGEfGSr9qDpi4ONk67t5+W83gH/lP4BEXbma1+8AbQoc IqM9wH+yohF/6yxH6OxGpjsnIaip40WcvY4KtlViq4AJ9Wb+yZn/5wmsU1n8UK2YSaNn Qcn7X7dmhtrQZW3xXeqGoncNK5dEd1qNdZtSHCtof/fNmSHptxLOPxJSxU09KNITyXDw 2b/g== X-Forwarded-Encrypted: i=1; AJvYcCXcurxE1pVYAFL6370+MTwe4cRa/vhgC4VrxHTOOjGANu7fFLhP0F5ePO7bvypThE2sailaFMWIzH7UOTw=@vger.kernel.org X-Gm-Message-State: AOJu0YxkMYzDDQOBPWORCp/Q7bZO9M6aiRfF8CO6zk0ck7zAPOoVHvQc cb/lVCMPrmdCvk7ONKjffC5YdxVB/Q4Oq6ghgTt5nOk2fX1FULFWIx9k X-Gm-Gg: ATEYQzzrrUuh+LKrKf/y53mRtBaE/Kp6TE92FIuhaz2XqJO67ibmBBorot7kzvYGifl GWJ3J9GlI539P2wz7nAIoVELxU0U4FCiHoYO3jPOk7xYFap5r0Sn4VqIAPp/iiHFwymy4SCqwjR 1z9O9+36p4vWuvTnLxCq4PBevTIF3zuuql7+d8f9QSXHaL4mbcto7+mw3b/4E84ZlkNAHArVgb4 Py8Goz9uSy4/jP4786QQNgGADnmO6dLeHcYIcMWOvf5l9CTL/nAV+8KfvizM1Y5iKAZ5T6XNCZP 6cTDIGI35lw3Q4fVzoWk+tWVhlPSs9jyHnIw12Q/2vciBUROTPbIqqwpMwN5c7ymgW2O8zYqAQj WsXo7sRevAt9ykkNvbARUJJ466A/o1cyXnnUr/8iS6Vu47L5kOygrk0B1SIjmubRm9wneugvD9r vrXHy6Vl5LgY7n4aJk0L/zyl8= X-Received: by 2002:a05:600d:108:10b0:485:4552:8fbb with SMTP id 5b1f17b1804b1-4854552922dmr35522675e9.22.1773164337294; Tue, 10 Mar 2026 10:38:57 -0700 (PDT) Received: from nas.local ([2001:912:1ac0:1e00:c662:37ff:fe09:93df]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48541a900easm103239295e9.9.2026.03.10.10.38.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Mar 2026 10:38:56 -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 v7 3/4] dt-bindings: net: ethernet-phy: add property enet-phy-pair-polarity Date: Tue, 10 Mar 2026 18:38:45 +0100 Message-ID: <20260310173846.230923-4-dam.dejean@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260310173846.230923-1-dam.dejean@gmail.com> References: <20260310173846.230923-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