From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 8F61E481FDC for ; Wed, 21 Jan 2026 15:15:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769008526; cv=none; b=YvJOzZ/pKmEa9flUNCtY1ILje4vRoVeBvUsyjLQFFH15HOjTW2Lmjucw1zTas7Puzz+3ke0nutvx7utwd1F4DrYF77qoRo0T51Fa2FKn9JYvQGAlSDpR6iS6TsBcB0K84amS6wRDFqD/ctX+eVk2EH1IWhXfCKNx+lng5fLBYvY= 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.45 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-f45.google.com with SMTP id ffacd0b85a97d-4327555464cso3643639f8f.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=lovdHOCBQZF7a1BngsJO3j9kF07OsuFV5mCcGwJ+r9dT4h++3KISdPv4RI1XMj4wdQ rO+MICs4zdBijYhI76oDfns3T/+hoZYJI5xll6BWOWIQuOWVEXXoG+Wdt5xIaWDizr/6 GUN27ydsURFWp4WI3NIuJgSqW+LzBC6RNpiMEQeIY5jFmU5Bwz9XngOOXyuw7JJOMsD4 3Dl1+C7MHEM97HO/zwhNIJtv8mbeW+gMVYZRK96DtgHmWLSDuPXVc8F1+Y+YzRObPTV4 pmhDxsyzJTqhVdAKetFZIIXVpLvPaNm1If+L0a0QaTNfgoIUGUDyNxBS9ZKhFaDr0RDB 20lg== X-Forwarded-Encrypted: i=1; AJvYcCXZr7NCWHZbGHpslC0RR+xvcAaC3KdtQrWLSpGFTvYtv0j554XFmjZ8J/nI7soojNGNrzHSuzgl+vE2I18=@vger.kernel.org X-Gm-Message-State: AOJu0Ywxi7jtvFUEGXKT19mzKA4MFCM6E93C6Cpfj06iygiBHIovEKUe ZpvFX0U/0rvTl0COr2/AO5yqL2sYMikQMMeC9qgYyIgB9qr4PE79XhkN X-Gm-Gg: AZuq6aKeYtYCWNWPYjoqpTnqhfp0txwBRl8oEDdkEkAhs3xvO9Wjsktn2iq3ETEpjyU yymQdb8Yc/bc8PFNz9AfIWEXwNGISPTY0dY6EZttrMBN6n8VGoiOacnoqG+YihdfZxIrTq/ER+5 h501vSaLdXafqJNHN1BmFyA+RRUTM/m50xzGbHE3jH5sqO03l4nAKypogGMm5Zgrgsc24BvvxSx biOYsmezz4bIPxH92ycxn9MMUoBxQ92H+60qXhOpSt8i+fpHn/kvT0dqvXhDGQkFsmcskSBaRP+ G/2pxQZfj1cSuFQYFGeGpCAvrlvbXzwgtRIHnbqYE2LPg2d0P/kPE1Jtec0xuo5+d8QKVw6M5Ub m6Qh+W5YBMGIaxRuM4UIuPwKvaGbMveuxoDh88Fkb1aJd63JdxIPcSElLhtyu0X8YcExZLsqS94 LQuf6mpd+MYQk= 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: linux-kernel@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