From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 78E6431A7F6 for ; Wed, 18 Mar 2026 21:55:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773870908; cv=none; b=n7ZqRWkBPLcOsuh7A1JBb7klBWS/fnqmiWrFBiN+lRKsHhLdsEzgxLe/NWyR234QuFKwq0W8TrnH5LIP01hKkm9IUhe5BQVQ+AZZa3LJPVqcrqArqEx+RSCIGVgZbNt7vFnTQrMJMwDoEHAxk2o6cou/2BctupZfVvF+nExLWsc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773870908; c=relaxed/simple; bh=QmcOfkhfSsLU4S/VvGM77VIx0T2jRNrl/jOzKKqaU38=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bG9ZdC2AXElx9T1n+4W362T9ybxOmy2Mb4aC/myTkv+AfyF6u6uJLDhhcJmBkr++20/a+k8v+19nb7oEm/gbm8h0Zm8apqa0S7ZniMMzcoOaxlGFWo3ZIgAYx4To++2mxi0XUVupRUVQbuj4tGnd2bM1JZhTr6gCZB+IlodDLh8= 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=kY00CY0Z; arc=none smtp.client-ip=209.85.128.51 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="kY00CY0Z" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-486b96760easo3514465e9.2 for ; Wed, 18 Mar 2026 14:55:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773870906; x=1774475706; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=oixn8B5pbJ+8tHwNArodaWGUazeHm6IYAHzfGZRGgA4=; b=kY00CY0ZGNiJGTpawwXEgmMMOIT4/cT1BALhHjsWis3B+5nbl5RJy80Ez/t+QYvj22 dOC5YrHr2uzKd1GzEEPFwQwSSvkb/6FADQKVmg92V3WQqm57kZVdQIX50DIIl5wIgyEX ALfRz1/5Bk0Ypg9dWQWCug+kzLXGGAbxKcmG0ZJBZqNSv7nGc/R69JTHLlyTuQ7ldCBG de33d0olXmxUEh7vtmaV2vl894TIW7AfXfInOgPr3Z50iRux6PFz1920RCKJSCNh/CeC mIOkvZMzkfo/+Q4sUcuhIa6+HocoE3MUpMfPK7cee/fCNFOpT4rwv41UPNORi0iA0ti1 J/BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773870906; x=1774475706; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=oixn8B5pbJ+8tHwNArodaWGUazeHm6IYAHzfGZRGgA4=; b=COQ8hx1CAKaNB5diQRHE7MaSSPEejrm7mGOse3fcBE/H7Dqxq4S1IR9Xem6rzp7mPg ZU0GCt7rVJpXOeK+bBH7iDpKm3Cb4V+XSQbf/3JNfVz/mTGZ+gSHFHSRbXTiom1lo+DE /7RQeA3Xct9sYBvb6ReiD9kBiiWIkQPG3Udw2He64MCedrMW7KhG2OU/njdEWqhQi1ao nrpq+y0bQ8+PfVlfQV/Swxe8Xhtrq1nMKaBHTjF1zdGNA8yh/buLndCeFqNXALpBlnhS jAqaFK17QXbeLDBnJNuu3dqP549yHEuwMA4Yljms/xX0sFKF9+a6yTpBd+yB150D7cM6 r8Ng== X-Gm-Message-State: AOJu0YzQWh2xNkOW5Bn+B/ai8cmlp2Mq7IXPFx556j3bdK7SiYu8GaVl Uukd2MYjMolu46UKzgh9aa0P+BeBfeDourJqJqGkbldtGKqEua71URDU X-Gm-Gg: ATEYQzxlzQuqhX2SDDUvso4rKxiPO2uMG9k3MULXzp4KIfRyBTjstu24IOu3DJhAlkS +Bokz5ok7U6wQGAjWRuHWkRzlyXSluDuzCm4JQqxKMxHAWpgeBmQWsKkcYORda9FKciZ3NjybXW Ihm6C5p5XdL8S5RKhTacHuSWKiaFAm/Dm1Gssua3xHOlq300tA3D34fsmIVxcpQrdglT4K1H0dg E25pVvUIjTOthv+fh3LFl56x6Vi5469w/9BWObWS+C7DIBBM6R7jG1+OdWW8VzB+m9ts+fBPtPm HoyYO0iRvwugy0iabrwZJihudaPgh71Tlrm4V3O0kHxT95gmMs51BZvS0n5AAEJr4Jzt4ZyCgC1 mxYQ5EJhXh6+tgyzRh54JqLabNYDYViDQPbAU9GLx3Nx8P0ksUymzzorFpISLruD8OS+mCybVU6 WdBiZF4qY/a5SLP85rgDsbElo= X-Received: by 2002:a05:600d:103:b0:485:4388:3492 with SMTP id 5b1f17b1804b1-486f443d53amr52250145e9.11.1773870905553; Wed, 18 Mar 2026 14:55:05 -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.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Mar 2026 14:55:05 -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 0/4] net: phy: realtek: pair order and polarity Date: Wed, 18 Mar 2026 22:54:57 +0100 Message-ID: <20260318215502.106528-1-dam.dejean@gmail.com> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The RTL8224 PHY gives the manufacturer some flexbility with the pair order and polarity to ease the wiring on the PCB. Then the correct pair order and pair polarity must be provided to the PHY to function properly. This series adds the support to configure the pair order and the pair polarity to the Realtek PHY driver. Signed-off-by: Damien Dejean --- Changes in v9: - drivers/net/phy/realtek/realtek_main.c: support CONFIG_OF=n correctly when calling of_property_read_u32 in patches 2/4 and 4/4. Changes in v8: - drivers/net/phy/realtek/realtek_main.c: introduce the common helper in patch 2/4 instead of 4/4. Changes in v7: - drivers/net/phy/realtek/realtek_main.c: factor out a common helper for package bit modifications. Damien Dejean (4): dt-bindings: net: ethernet-phy: add property enet-phy-pair-order net: phy: realtek: add RTL8224 pair order support dt-bindings: net: ethernet-phy: add property enet-phy-pair-polarity net: phy: realtek: add RTL8224 polarity support .../devicetree/bindings/net/ethernet-phy.yaml | 14 +++ drivers/net/phy/realtek/Kconfig | 1 + drivers/net/phy/realtek/realtek_main.c | 96 +++++++++++++++++++ 3 files changed, 111 insertions(+) -- 2.47.3