From patchwork Mon May 13 20:56:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 1934803 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=kuLThESt; 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 (unknown [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) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VdWxz6ffsz1yfq for ; Tue, 14 May 2024 06:56:55 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C172C87E30; Mon, 13 May 2024 22:56:42 +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="kuLThESt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1B63987C69; Mon, 13 May 2024 22:56:42 +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 sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) (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 A56DF87E30 for ; Mon, 13 May 2024 22:56:39 +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 sin.source.kernel.org (Postfix) with ESMTP id 1D780CE0FF7; Mon, 13 May 2024 20:56:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1E04C32786; Mon, 13 May 2024 20:56:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715633796; bh=m50YoF4RVQNlKMsHFidjWk5b/jwLwWPvGIFHy1kZQac=; h=From:To:Cc:Subject:Date:From; b=kuLThEStUDvwYb+EDX+IBVcrFs9KTeRj6qYroFwtaKLCHhT9YPSMCwYBzy0bdOZur buBvIxxBCkPhMFFbZiR9fP8qPHqRasMWJu202v3vjz0f0wbzPFq3f3NWebK37+oBPG JaTyjLmMr/sl8dyiqOb0Fdk/0RSc1v5M3X28J2ezuOZeIRNRkFnUHaXRgDAIzWL7DD RvTVA95wmd4oSXQGP9Adtc80r0PBFTEiz/9mUULC3KcfCcgQ0Ld7kTDIArbK0nUW6X GjzWpIddIf99iTI/YGLPG5y8j2NhnYq0DogrjIUbBN8JcHmd6RtKWTa0+SzWwyPRok 6AN3k1ecOCUOg== 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 0/2] sunxi: v3s: add network support Date: Mon, 13 May 2024 22:56:07 +0200 Message-Id: <20240513205609.1872861-1-mwalle@kernel.org> X-Mailer: git-send-email 2.39.2 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 network support for the V3s which only supports the internal PHY. Adding support was straight forward. The emac driver just needs the compatible string and some platform data and the clock driver needs to know the bits for the clock gating as well as the reset bits. This was tested on a custom board. Michael Walle (2): clk: sunxi: add EMAC and EPHY clocks and resets for the V3s SoC net: sun8i_emac: add support for the V3s drivers/clk/sunxi/clk_v3s.c | 6 ++++++ drivers/net/sun8i_emac.c | 7 +++++++ 2 files changed, 13 insertions(+)