From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246]) (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 D05D1395D8D for ; Thu, 26 Feb 2026 09:06:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.13.80.246 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772096798; cv=none; b=WLv4DUgcKo3LQ0erb2Gm6xe53Lhy7B7PeE3C7Re0ZWqxXd6vlXVzEeoKuMWlPoF4v1Tylzd4FOjBPkXyRO3+hFQfh7+Dl+tmkwmGAeXZWs6L+MvqoCErItOOb0L3Z6TE15Y5K/+eHVp/0EEz6muVnDE4xoQJ2W53Rvq9ZajUaZQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772096798; c=relaxed/simple; bh=VZ/udcN32nKOGXUyfcSRYxNKGraXI7mrstbkFt8Wlbk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=MRKBQkFlsYKBZmHmXFe68uwhJJRfe7wkW2d08CUZTsxGNQ4EAIG48tvwonYM3rG4/He/4p0mrYV7mT5y0Mxax23tIr8EzIEZjlPtORtAIGPo3TkaKK5uv61QhMsmEIIMEBlsmd4V/O28sIfNK/XczeEXzIRqIVhqHI0CVDp0n1E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de; spf=pass smtp.mailfrom=tipi-net.de; dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.b=ILInncCf; arc=none smtp.client-ip=194.13.80.246 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.b="ILInncCf" Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id A8F60A47B0; Thu, 26 Feb 2026 10:06:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim; t=1772096795; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=ZNU1zSHC0xiYFf3VNtzVO/XMAZcXtkq5iEa2WuGbVWY=; b=ILInncCf9K5gj/ltjw6LMdCtDujL5t8OQrM61YOXI+tx7fvxgIM65wVrtcK1v0DA7IKKJb V5N5X2+JEOeNfY2ad6hR2LETnoOoylZR2WeJdI7wY8v4+loYRSQYHAQZQcUSgVcguYRfLK 8LkId1vtMLBVuCVmZxu5icmxklWQOSz1GYPveeM9hO0B+b3VY1Z/JAAVC/5pgFDKCHabZD Q0Mryzov/GsFDHvkZImiZknPBTPHLC2PHYMBxTfuAtVeiH9UOtGPBdEXhxlD+uLQVxrAhY jYsJ9btDMUKkklcfFPc82NPtUa0Fqc5fEeBNllG6L6jDKx3hrynDaMT/8awfCw== From: Nicolai Buchwitz To: netdev@vger.kernel.org Cc: andrew+netdev@lunn.ch, claudiu.beznea@tuxon.dev, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, nicolas.ferre@microchip.com, pabeni@redhat.com, linux@armlinux.org.uk, theo.lebrun@bootlin.com, rmk+kernel@armlinux.org.uk, phil@raspberrypi.com, Nicolai Buchwitz Subject: [PATCH net-next v4 4/4] net: cadence: macb: enable EEE for Raspberry Pi RP1 Date: Thu, 26 Feb 2026 10:06:08 +0100 Message-Id: <20260226090608.54802-5-nb@tipi-net.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20260226090608.54802-1-nb@tipi-net.de> References: <20260226090608.54802-1-nb@tipi-net.de> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 Set MACB_CAPS_EEE for the Raspberry Pi 5 RP1 southbridge (Cadence GEM_GXL rev 0x00070109 paired with BCM54213PE PHY). EEE has been verified on RP1 hardware: the LPI counter registers at 0x270-0x27c return valid data, the TXLPIEN bit in NCR (bit 19) controls LPI transmission correctly, and ethtool --show-eee reports the negotiated state after link-up. Other GEM variants that share the same LPI register layout (SAMA5D2, SAME70, PIC32CZ) can be enabled by adding MACB_CAPS_EEE to their respective config entries once tested. Reviewed-by: Théo Lebrun Signed-off-by: Nicolai Buchwitz --- drivers/net/ethernet/cadence/macb_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index a7e00b99e9a8..2c2c940ec3b6 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -5518,7 +5518,8 @@ static const struct macb_config eyeq5_config = { static const struct macb_config raspberrypi_rp1_config = { .caps = MACB_CAPS_GIGABIT_MODE_AVAILABLE | MACB_CAPS_CLK_HW_CHG | MACB_CAPS_JUMBO | - MACB_CAPS_GEM_HAS_PTP, + MACB_CAPS_GEM_HAS_PTP | + MACB_CAPS_EEE, .dma_burst_length = 16, .clk_init = macb_clk_init, .init = macb_init, -- 2.51.0