From patchwork Mon May 13 20:56:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 1934805 X-Patchwork-Delegate: andre.przywara@arm.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=iTLPWdrV; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VdWy75bb8z1yfq for ; Tue, 14 May 2024 06:57:03 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DEB3887D46; Mon, 13 May 2024 22:56:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="iTLPWdrV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9AACA8829E; Mon, 13 May 2024 22:56:45 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A5F6488280 for ; Mon, 13 May 2024 22:56:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mwalle@kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 7546D60F82; Mon, 13 May 2024 20:56:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6803C2BD11; Mon, 13 May 2024 20:56:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715633802; bh=k64/xBc/spU8kAXnkJ4y7tvyRQBRv6l0Mf1xM3dADBI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iTLPWdrVj3oQ7qcLg4ao0gb9wXgR8FkjuZxZaFtdmHVFn688WOKWt6vTMoMWrushP CZ8DDApleQdJ12R3jjyltS206UsONH31pe7EHnOzWTdAv3D/5kSTzkjapACCmzOoVc CB/mpQXDmkVQ93YXzYqfaGLYJcVmNiMEqDRCzWpjQOXUdQ1uI8pgYMhAdbmk1ML6p1 l/hSEXtiOjTBKf1STbREbh28qbFtevVnAYtqli6UNdcFA6Wb0HZCtxF7Ws9rop5Em+ Bd3mYpQ4Otp1hQ5kv+HbXIm7fjHxVSV8Gd7q6US/4YcBj9Zx/eLuJTeGTmpqMvS6eD Hu0LKqBVMHM3g== From: Michael Walle To: Jagan Teki , Andre Przywara , Lukasz Majewski , Sean Anderson , Tom Rini , Joe Hershberger , Ramon Fried Cc: Samuel Holland , u-boot@lists.denx.de, Michael Walle Subject: [PATCH 2/2] net: sun8i_emac: add support for the V3s Date: Mon, 13 May 2024 22:56:09 +0200 Message-Id: <20240513205609.1872861-3-mwalle@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240513205609.1872861-1-mwalle@kernel.org> References: <20240513205609.1872861-1-mwalle@kernel.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Add the compatible string for the emac found on the V3s SoC. The SoC only supports the internal PHY. There are no (R)MII signals on any pins. Signed-off-by: Michael Walle Reviewed-by: Andre Przywara --- drivers/net/sun8i_emac.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c index 8bff4fe9a9e..94bcd40acb8 100644 --- a/drivers/net/sun8i_emac.c +++ b/drivers/net/sun8i_emac.c @@ -893,6 +893,11 @@ static const struct emac_variant emac_variant_r40 = { .syscon_offset = 0x164, }; +static const struct emac_variant emac_variant_v3s = { + .syscon_offset = 0x30, + .soc_has_internal_phy = true, +}; + static const struct emac_variant emac_variant_a64 = { .syscon_offset = 0x30, .support_rmii = true, @@ -910,6 +915,8 @@ static const struct udevice_id sun8i_emac_eth_ids[] = { .data = (ulong)&emac_variant_h3 }, { .compatible = "allwinner,sun8i-r40-gmac", .data = (ulong)&emac_variant_r40 }, + { .compatible = "allwinner,sun8i-v3s-emac", + .data = (ulong)&emac_variant_v3s }, { .compatible = "allwinner,sun50i-a64-emac", .data = (ulong)&emac_variant_a64 }, { .compatible = "allwinner,sun50i-h6-emac",