From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 3321E2FFF90 for ; Sun, 25 Jan 2026 20:03:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769371389; cv=none; b=Zu7kTTjbfNwqJ0HOWA+oqZBmeIlkWngKMT7ekg0kv8iRcw8rmDTgLiy+ltYcia2XRAZApRauS223v5now1hmBJHH5lbCJ2/9XjCdMKw7I1pHZqsxOgxrPjAPWPG7i3A80cg5dPAL19LKWzpbpvLb3WOxpiCBYfVYu8Q26kUjvT8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769371389; c=relaxed/simple; bh=pSAL93nHZnSqriO92kjK/3e9XFl5GN7qGm5RZwIm4o4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UYumwO/rfW6lxv0gNb0DXhIsFH1F/3iHTcZK6UXCtWheGussfaPGKiMO8iSdJJFnVudS5+h2Iq4XhFj2K+E/aG/isvHitWdsggMR+Y4z/QVLaG4Eo/RO4DoaxW5P9RTMzrqhQbvzaUzk7LH5k8bzsQ11319vXg2mqE2vTffjbbE= 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=dVKc39e4; arc=none smtp.client-ip=209.85.128.53 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="dVKc39e4" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4801d24d91bso41217415e9.2 for ; Sun, 25 Jan 2026 12:03:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769371386; x=1769976186; 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=63tDj5BfKjz+XebxRQfxXku12AhjNyBPccGDrGS//z4=; b=dVKc39e4+pwhXRfxz3hFS+gojeWKHrBGOfMa/wsXF0zx0ijmaq/QCErGv6c7/HsiTt /lRJyodJU7Qh9SfBDBmRRL2+4dbzPnHu+Mh4iYnR+IPzUw/eoElTSv9M+NYDMtw8ce1W 6POkyJ3MiMtyQrf4iqlptwtRErr5N3P4OU6+M+EA7L0Ke8PoBq/gGO+3/3NfCB6lYpVe 6KsRvPtbylOTIKmUh3OtWmSKmIBGNacdgMzzHQhw7UOHoA/4m/dN/0UEYQJH5EO5ikGB VJ+9JxPw7FSp1uG7vKneClbx37KeJy5LQXyIN9Necsc8EXSFmyxm4wV/nP8gHf1MNZUo t4nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769371386; x=1769976186; 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=63tDj5BfKjz+XebxRQfxXku12AhjNyBPccGDrGS//z4=; b=tY7y2LV40sWuV9j1/H1r8I4YT8jOuV5MhE9tW0dS7T7yVFLrS1+w40Wnhu+wQyV+dw d92AMDqPZeJ/xFKFnFrXlC3+QgUNwmf0fa2RZWNTMqmdS08ZWTeFl0+6shBzJKuW+x0/ wdjJixuaZdiPK8CTYQM58Nanz8VIAwxurMVVvQMvs4jy5ScXqpR7npwo1b55FW/NIQ5U 45MZUHfBe6DnjU91xGajy7Vsc4suW0AHfWdl2tfhCHbUPnz09R87Enk1bGMOv9kJBgaS aLI7yIMA5xOIKTAkrGbvZg6Wp56mThOgpLfrlaXD4lEchrOAMk1pUDMU56NyrJkCsoyT v+Pw== X-Forwarded-Encrypted: i=1; AJvYcCUcIAWBWPqWNAWt9qjlXpVBGNqqFjO69RJTk3s1t4iLGNBU1jNgKca0L3J/Uq5lyfnf9RoHXOh6xg6BmPM=@vger.kernel.org X-Gm-Message-State: AOJu0YzYz3ri0ybb42kzufvikPq+p2pRZ/O7E13pa+JMPf6sjsFaBKtg NA8NLEaWd3uwfiB9Z9aepKgAJeRjROstubnAMagD9d3YEUU4bDC6OkQR X-Gm-Gg: AZuq6aLlRKM8tttyf4beHcGl184W2N38EVYG+KOg6Lz2giYQtpBKRVDOzqEWYUr01oq 9gcLnxP3pC78UPTiNohioCj4kaaoJF6y1VfLWF2OVKfnAAhRZjneQvZR/4LsEEtr+F2x1udRtpQ Z8vhgtR8r8xOKcpkEZjvD8KlQYksI9peG6J03UEtpuWNiw3Cr2lCgz0R9E6xm4cCdSG270kogKQ exRKnc5vbMEwI0j+XwEMWNcWk0BvJXqK1gbtHzMGsERdjQnRaF+DqYA6m7Vp/mBRInkC8GRSnz6 Ks21ZeujhOus+vI7p2/bu4NkgDUEySlW4+80D7vByKNK/icdsZbR8CsUDEebY1APEt07UOgUv8V q4Z0tbeGH0PPNNXgkmXPVu678hmGBjRbRy35ZZqtvQDu2RPC2ucHuIdqcC0HshMdmu8cdrqBZAF FOLFnqb/VYCHg= X-Received: by 2002:a05:600c:530e:b0:47e:de9c:92ec with SMTP id 5b1f17b1804b1-4805ce4e568mr41469235e9.14.1769371386477; Sun, 25 Jan 2026 12:03:06 -0800 (PST) Received: from nas.local ([2001:912:1ac0:1e00:c662:37ff:fe09:93df]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-435b1f7c269sm24418036f8f.43.2026.01.25.12.03.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Jan 2026 12:03:06 -0800 (PST) From: Damien Dejean To: andrew@lunn.ch, krzk+dt@kernel.org, robh@kernel.org Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, edumazet@google.com, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, hkallweit1@gmail.com, Damien Dejean Subject: [PATCH v3 3/4] dt-bindings: net: ethernet-phy: add property enet-phy-lane-polarity Date: Sun, 25 Jan 2026 21:02:58 +0100 Message-ID: <20260125200259.2903271-3-dam.dejean@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260125200259.2903271-1-dam.dejean@gmail.com> References: <20260125200259.2903271-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: 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 b8cd5d2b9f76..ec8906708100 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