From nobody Mon Dec 15 00:34:36 2025 Received: from mta-65-227.siemens.flowmailer.net (mta-65-227.siemens.flowmailer.net [185.136.65.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25A0E30E0E5 for ; Fri, 12 Dec 2025 20:56:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.136.65.227 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765572977; cv=none; b=HtrdkpL2vF+zJ+N+GR5G84HkVbcP/I3m0Lle04psfI55RZNwitja0bBQUzm3dRI4WImMDhkgcaz+gLHfYuBSrVPPi8mrjiJbIo72jfE7eEiUb+M3D0nynwOY1w8L0yWZHNnQeF0EORo3rKPTmER5yMGDHaPqeroLaZsmXM0IcSk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765572977; c=relaxed/simple; bh=H8K26/3M9ZOwVkvbX01usgyg8WoOPuofe3ffL6kkLUw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Cpf7S2xGJ6XGTiALczhXc4CDfY589GGd2hb0Nhs1KmFDv9mskcPf+6Q7n+NdBwo/8w5qefWdjQAgNEDQPJB5njBQKMNr+2WYSio7rN8y13Nd4+KzW/T6pIdVzawqkz6ubXkibpetwuDAZmrVnNzILHw6hpCmKI/vVWUIP/QpukE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=siemens.com; spf=pass smtp.mailfrom=rts-flowmailer.siemens.com; dkim=pass (2048-bit key) header.d=siemens.com header.i=alexander.sverdlin@siemens.com header.b=IDU/Q0E9; arc=none smtp.client-ip=185.136.65.227 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=siemens.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rts-flowmailer.siemens.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=siemens.com header.i=alexander.sverdlin@siemens.com header.b="IDU/Q0E9" Received: by mta-65-227.siemens.flowmailer.net with ESMTPSA id 2025121220460476fb683d34000207ad for ; Fri, 12 Dec 2025 21:46:04 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm2; d=siemens.com; i=alexander.sverdlin@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=V8z4AU6BTthS2cu8yRS3g3bsCaBUt556bM/8/FA+Esc=; b=IDU/Q0E9bRSOFsVWbJcjeo5OmFcEklwQTGuuWapCCBJsycjOw+t9R5SVSLPhiS9+xi3h46 tFqX64bOg+DerKDtzaaznh6Flpi7z8ZRrtLE7cBYGDFXdDXXEiHVu0hIcyXJEfWNdNNLM166 BPNqZmgjeDlBgUMX62LaD2iPX9sUI/ODxh+yOLcSHZdNWk7QxNunkgNTh+wlc1pxM71R6e/A GaWtnVnMfJagh9iEgCtQMCdVWjGJNUGj4Uo4NEsV9cpZdH8MD481tWBa8EIQ6alJtEy4KPtp ODZ1Mg1vCZTGawfPfUveuedRGZMWQ+bdkiaH2NN0EOGI6y6imPMtJYKQ==; From: "A. Sverdlin" To: netdev@vger.kernel.org Cc: Alexander Sverdlin , Hauke Mehrtens , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Golle Subject: [PATCH net-next 1/2] dt-bindings: net: dsa: lantiq,gswip: add MaxLinear R(G)MII slew rate Date: Fri, 12 Dec 2025 21:45:52 +0100 Message-ID: <20251212204557.2082890-2-alexander.sverdlin@siemens.com> In-Reply-To: <20251212204557.2082890-1-alexander.sverdlin@siemens.com> References: <20251212204557.2082890-1-alexander.sverdlin@siemens.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-456497:519-21489:flowmailer Content-Type: text/plain; charset="utf-8" From: Alexander Sverdlin Add new maxlinear,mii-slew-rate-slow boolean property. This property is only applicable for ports in R(G)MII mode and allows for slew rate reduction in comparison to "normal" default configuration with the purpose to reduce radiated emissions. Signed-off-by: Alexander Sverdlin --- Documentation/devicetree/bindings/net/dsa/lantiq,gswip.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dsa/lantiq,gswip.yaml b/= Documentation/devicetree/bindings/net/dsa/lantiq,gswip.yaml index 205b683849a53..6cd5c6152c9e9 100644 --- a/Documentation/devicetree/bindings/net/dsa/lantiq,gswip.yaml +++ b/Documentation/devicetree/bindings/net/dsa/lantiq,gswip.yaml @@ -106,6 +106,11 @@ patternProperties: unevaluatedProperties: false =20 properties: + maxlinear,mii-slew-rate-slow: + type: boolean + description: + Configure R(G)MII TXD/TXC pads' slew rate to "slow" instead + of "normal" to reduce radiated emissions. maxlinear,rmii-refclk-out: type: boolean description: --=20 2.52.0 From nobody Mon Dec 15 00:34:36 2025 Received: from mta-65-225.siemens.flowmailer.net (mta-65-225.siemens.flowmailer.net [185.136.65.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B9934314A79 for ; Fri, 12 Dec 2025 20:56:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.136.65.225 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765572981; cv=none; b=rwgUqdQU/SEZ0NoRHc5Zi18/OGtiEq+DJ3TgWUPG1/0t5pfI24o6uu+zueC2FSETpRf3Re1KN+b8EpVlXPB07jefrtn1Igo+MqERoYfe7XyzEaaFIZSz+NkbTasc+wpNYFaOXkmnJoc5iDwAt+cVaSavffSEGsykNJzmbSZ+e/8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765572981; c=relaxed/simple; bh=/5UozvfqSU9wxK6uZX3Jo//zqxq5cYOZQGwNvzsXGts=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hysrJzxsu4lIZ5IjjYprUI9sh3ChQPk/ybpR2qo/GIbwcLWGnvjpuyyo+ZGbIG1qVRJJbHKi33k2TuK09pCJ3OKq7LnlhUcylGr+MS6jj2rHWe+8XBWgl+9ek2dpDWAVRYHYtr2MaMhZwZ+yILpp1lUz4qIoLCp7DxsP8FVZz2k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=siemens.com; spf=pass smtp.mailfrom=rts-flowmailer.siemens.com; dkim=pass (2048-bit key) header.d=siemens.com header.i=alexander.sverdlin@siemens.com header.b=TwctT3SW; arc=none smtp.client-ip=185.136.65.225 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=siemens.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rts-flowmailer.siemens.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=siemens.com header.i=alexander.sverdlin@siemens.com header.b="TwctT3SW" Received: by mta-65-225.siemens.flowmailer.net with ESMTPSA id 20251212204604177a8e7612000207f2 for ; Fri, 12 Dec 2025 21:46:05 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm2; d=siemens.com; i=alexander.sverdlin@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=ZzH9MtmPw2ify2tzinnSDdNB5/uf7QY4ZHGdLC7/I0o=; b=TwctT3SWpeRDKOu7Bm0inAQhMeo+uCHowyDGnH5eHkNnih2xD7uNnuZ3oUGRq+VpIJmNQh RYNLjyBlrHkxn3w17czyYb1wyCyjHyyZMK3njvoS06g2rtLMK4SvZsGT8GBAl+BQVn8UIOCX p3nI5JPItw6UOGKfd1zWvtA/nITt8q0RPP8fxXQFZz9C7pt/t7Lt+TSVfxDPIgKZE91q3/Ct CT2Fz+vK9dkrJ+EiW9GTdUHiH5JzsnzEsmPUA+cQFWFo9O/mNuqEOOvmXT/lh8dC1XEWrv6+ Ch+pdBvkkrhT5/mvcFu3iyqrY5e9YB7uMO0EAPK57jFEkOqtPK8g62Gw==; From: "A. Sverdlin" To: netdev@vger.kernel.org Cc: Alexander Sverdlin , Hauke Mehrtens , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Golle Subject: [PATCH net-next 2/2] net: dsa: mxl-gsw1xx: Support R(G)MII slew rate configuration Date: Fri, 12 Dec 2025 21:45:53 +0100 Message-ID: <20251212204557.2082890-3-alexander.sverdlin@siemens.com> In-Reply-To: <20251212204557.2082890-1-alexander.sverdlin@siemens.com> References: <20251212204557.2082890-1-alexander.sverdlin@siemens.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-456497:519-21489:flowmailer Content-Type: text/plain; charset="utf-8" From: Alexander Sverdlin Support newly introduced maxlinear,mii-slew-rate-slow device tree property to configure R(G)MII interface pins slew rate into "slow" mode. It might be used to reduce the radiated emissions. Signed-off-by: Alexander Sverdlin --- drivers/net/dsa/lantiq/mxl-gsw1xx.c | 6 ++++++ drivers/net/dsa/lantiq/mxl-gsw1xx.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/drivers/net/dsa/lantiq/mxl-gsw1xx.c b/drivers/net/dsa/lantiq/m= xl-gsw1xx.c index 0816c61a47f12..ec7b92f62dcb5 100644 --- a/drivers/net/dsa/lantiq/mxl-gsw1xx.c +++ b/drivers/net/dsa/lantiq/mxl-gsw1xx.c @@ -526,6 +526,12 @@ static struct phylink_pcs *gsw1xx_phylink_mac_select_p= cs(struct phylink_config * switch (dp->index) { case GSW1XX_SGMII_PORT: return &gsw1xx_priv->pcs; + case GSW1XX_MII_PORT: + if (of_property_read_bool(dp->dn, "maxlinear,mii-slew-rate-slow")) + regmap_set_bits(gsw1xx_priv->shell, + RGMII_SLEW_CFG_DRV_TXD | RGMII_SLEW_CFG_DRV_TXC, + GSW1XX_SHELL_RGMII_SLEW_CFG); + return NULL; default: return NULL; } diff --git a/drivers/net/dsa/lantiq/mxl-gsw1xx.h b/drivers/net/dsa/lantiq/m= xl-gsw1xx.h index 38e03c048a26c..8c0298b2b7663 100644 --- a/drivers/net/dsa/lantiq/mxl-gsw1xx.h +++ b/drivers/net/dsa/lantiq/mxl-gsw1xx.h @@ -110,6 +110,8 @@ #define GSW1XX_RST_REQ_SGMII_SHELL BIT(5) /* RGMII PAD Slew Control Register */ #define GSW1XX_SHELL_RGMII_SLEW_CFG 0x78 +#define RGMII_SLEW_CFG_DRV_TXC BIT(2) +#define RGMII_SLEW_CFG_DRV_TXD BIT(3) #define RGMII_SLEW_CFG_RX_2_5_V BIT(4) #define RGMII_SLEW_CFG_TX_2_5_V BIT(5) =20 --=20 2.52.0