Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (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 92EE548A2B1 for ; Wed, 21 Jan 2026 15:15:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769008526; cv=none; b=fXMr4iJD48wNygq6mfC8BLj1wNZQA/jSM10ZbrtAbCPN1bHtKjYd1RtN8s8veWZN/6jKDkCszkhurl2VUU2gBbic4j2sTRH8GCvFq5I7y+ZQj83hFKgdqM0raxdoUR7GXt7DAOIf4o/LZZKS5ZS6F4Ow8ZS+RKEujLmGL/9p2eU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769008526; c=relaxed/simple; bh=DsU3Zu30epjjwrwimapEIoedCiWhEKafmSQR+5ASO6A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OWc1otn+rpzxlVchXPsFOst08HWcRKBKkNYig2I1YlrQllErNAetfE3AP+a7tpYy76uKozbw2Bd1704uQqQYIqGn8DgUI1N8Wte82CJxpQtdwlbKrLqofhICo/vl50TE/uUksBdLb038tiYl96Epx9wG0fsrpMHsku7z05wBzWo= 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=DvbxeT/b; arc=none smtp.client-ip=209.85.221.46 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="DvbxeT/b" Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-4327555464cso3643637f8f.1 for ; Wed, 21 Jan 2026 07:15:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769008523; x=1769613323; 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=38lhwVKczTZBTBM6Di7O4EQSmvRNLjNMNn1R3UxIv1I=; b=DvbxeT/bhx1PGTk3sCbWB1yu3ktmyOXipRxQ9P23Cinxr5LRHH3nkymC34BZaLiaTf jiEF1m7njgT8/3/sQdDjsoUgQzd111IdlOwr+f85MqUSyUCHwL87qepmzOhN+pKf1tWE Zcs1a6Fp6NiMZYiov5A6ndd+3msqT8ISId0UghJ2Uzr4A/JYsOUcD7i9lZg+/LVClayi QLvLRs5eFsyR+HL1JIbShAox+MJhFotv5ecKzWpQS7Y2YQ5PyqWwa7Q+XCYhBBLRLlWO yy4O5pZ7iD08Q7yXiNGhTMcokBab/qACD3x4NLZW34SQH4o69tG4i/PIPXPZZmYAd2vW c4ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769008523; x=1769613323; 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=38lhwVKczTZBTBM6Di7O4EQSmvRNLjNMNn1R3UxIv1I=; b=dzLzpVzJpyEUkDk168D0h0nLXHExilqbJrMIHY9HJSMZDAIzGbLXAgsWu3nmK0dZ9f vZrn9Z+eQo83pB8ePwgXXEGOgOmE6VVKHxm5jOMly5Xc12X8HiKDqnmpLpD/7/S8sfRd UVaIFcNI+fYp/dUihMLv59uuoOuuK233m6MOVPpHp2EzC3IdDSa7O0bfQNW1qUb5grgW krTrDRCTSS5I2bggEM7hmbHu0LIKKt9Hd9HvyPAFViNLDbr+StCt6mON2xS9LQ39GqZ5 C47gqJyC6W6/w5TOaHnie+Pj6tYejrWHMQfWscEz5nY2KnwbllF2zzrO+u0riedLnT+3 9NuA== X-Forwarded-Encrypted: i=1; AJvYcCV5KzG5si6O5qmMP7nkdmRTH24cHfKgh1WEHzCs0rogKNunevyL4CltWZprIl+hEGGiPrGytnq/SgmL@vger.kernel.org X-Gm-Message-State: AOJu0Yz4oZZiIshJIZziwGkwDnJqlVLeyMAH++t7/7AJxlw8TrV+hRXj yyy2juYSgTtTeG5eDl0wKfYdvHLmBUBaJEjzYBF/7WKf4iqnvO3e+0P4 X-Gm-Gg: AZuq6aI2jfJo+NoHyS8CDdyj+ytKpWFYR0V6tgTjhGTbS6Dm+RIiHVUha22vpuQDRqa 5yIGnPYuikZgNjKWVT+pZzVOD7C+b6FUDwP/qPzM2gfvHWy8xzb/tOIHgXywfBf9xAh5zk31ke1 rl5QKONxKC7AVEmpcQ33+511CKp8mv46DvWGwacietdKskHIj4OQquloxg7gTSTdBiUThNlTBr7 txLs64Fbdjip8b1EiZFpCGlimUXHnz9T7j5tRLp2BrfhsNe0U5vw+wZKTzuQc1athLvd46tdyIM 7Vx35KgAcQ6d4f0ROnF88Z29Y//FqBgZifNZRJlIyDGQ6b8jxfR3fSw9wvvjU7uaaSUXh7Akic0 q70Gb+8UZu3cGamvIxavdFSUfjluipqIicFovrdLoWKmb2KR84T0lohbGtYkW7OlDkNGVI9jsCC O7h7l6M4a0KjU= X-Received: by 2002:a05:6000:2481:b0:430:f463:b6bb with SMTP id ffacd0b85a97d-4358ff4465cmr8389850f8f.16.1769008522696; Wed, 21 Jan 2026 07:15:22 -0800 (PST) Received: from nas.local ([2001:912:1ac0:1e00:c662:37ff:fe09:93df]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-435924ae6f1sm10534349f8f.33.2026.01.21.07.15.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jan 2026 07:15:22 -0800 (PST) From: Damien Dejean To: andrew@lunn.ch, krzk+dt@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 v2 3/4] dt-bindings: net: realtek,rtl82xx: add a property to set MDI polarity Date: Wed, 21 Jan 2026 16:15:05 +0100 Message-ID: <20260121151506.813783-3-dam.dejean@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260121151506.813783-1-dam.dejean@gmail.com> References: <20260121151506.813783-1-dam.dejean@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit MDI pair polarity is usually configured by the bootloader. However, on some designs the configuration is left untouched during boot and needs to be set by the driver. Add the property 'realtek,mdi-cfg-polarity' to configure 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/realtek,rtl82xx.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/net/realtek,rtl82xx.yaml b/Documentation/devicetree/bindings/net/realtek,rtl82xx.yaml index c4ced671ecb8..17088c147358 100644 --- a/Documentation/devicetree/bindings/net/realtek,rtl82xx.yaml +++ b/Documentation/devicetree/bindings/net/realtek,rtl82xx.yaml @@ -61,6 +61,13 @@ properties: description: Force normal (0) or reverse (1) order of MDI pairs. + realtek,mdi-cfg-polarity: + 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. + $ref: /schemas/types.yaml#/definitions/uint32 + unevaluatedProperties: false allOf: -- 2.47.3