From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 ED8C83D8122 for ; Tue, 10 Mar 2026 17:39:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773164350; cv=none; b=uq7+IxpXDw3NG14ffO6R7bmbss6pnafLvnfPbruOY1pTJ7tJlpei9MwCuaef2H1N36bYt6vfleBGxA3UUOUii/vMdVhqUw1hZ2teWJ8hICiTHgvMxvDQko+RgSBeckEKeNvQ60CHPsrUOux2DUUg/COyzMQqu7+64mltZm0JmMA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773164350; c=relaxed/simple; bh=NcV7Y8rF5EsCyaO+fQzMv4yYadXViOfLjUAI/+Np8mI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=R7dyBo0YCUgtKF8UWvXoGjsnoX0mGq/HOStY1iowh+1U9DtcCOnGMDWFn/TxnNSD1Z4AbuWCEykHvxbuQoqpnNjFfhncspBN74/cJxESYQWrS+8nblres8WWosRluhpPh3txP6vgjigPRyhh4JxmLnlCZPfu8CsUOn2idsVkoy4= 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.54 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-f54.google.com with SMTP id 5b1f17b1804b1-485410a0a8aso16385935e9.2 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=PCwd6YL5NAOm30kvkiyuT3DIYiw4/AjzYfh14LVdca6aMXOljUxAcn45bKKGaHoyQp nBpVE8jVUTjsn9epj3ESa/zSOOtVfDXdCjJ6nP+yMX8/dlXuHqFk3/GZDLjnsmTie0EE hAm4jE/w8iCIgJWx070k2MG//mx2NhLfP1SsgBnLdv8L3JkRixxO7hIxcI1GIxneob0m 35y17d2UVkgK2Xvwf51lz/nZnWuZ0jFbpJmz2/WQhvULmdZTzGOUV8YLVrSosdjqoan8 38RwXZByKLGY8Z2w0U1GL8gQuUqTekF2J5ZZ1UnSowONIcIrPtQhwLOMObCPGynUpd2X Fyqg== X-Gm-Message-State: AOJu0YwJstBiawsoU/IKbYBwRClgoPt24a/nfpZZ8ibr5gOMfNJ5eSX+ p+9yODsU8xTcInQQZq4NTAI3mLpeASYJA3M/Slu9SREKrI5jHsXRez4N X-Gm-Gg: ATEYQzzL3z0mGSITjgjEzZeMjmnIergYZimRxpCKPTqKbrSlkg6TL/4Zn+UVQiQsuRC MtRLcQHHV57vEnTA3BZUJscq/KO/p7LXOEvhzZvx6CtOeLlbFQBBs9m1FPUTm/yT9Yk8g54Lrqy X5tqcIzLSTbEsGgRpQ0ygVAXnuoDFqp7NuYZ2lqG+qLLm/2tghGtszszJ1lKPftVQrc9F7oE9Qo CkPzWq0PRqlCZVa8OagkikKiOvJcJNy4kWhjcGCGcTinXTdjKDH5F5ZoosUKpkXrJcmCl8Sycnh lCoczUzSoZ5NxrSR1bq9dSGNgxVSvh+Wzy/yTtBbGcfFDXydJdE5/o49QBPy8V9De9qVRQozrxH NbOyb9sj6IGgg6VHJ1ZllfctQ7FVgpcW7XxA6sIdsmBYlW9u/6WiVvPGfAsnCjOJEmnAQZKb1w7 M4RSFvSyQDh4LZMxz/yyuTGhg= 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: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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/Documentation/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). + 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 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