Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3364208pxv; Mon, 28 Jun 2021 03:00:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrR021Vy8Lc1H6SfCuneAbQkJM+QX26M5O9//yimDZjeKSnBEwiDF0ryGfRmF9tXIpwvED X-Received: by 2002:a5e:8f03:: with SMTP id c3mr3129921iok.115.1624874447032; Mon, 28 Jun 2021 03:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624874447; cv=none; d=google.com; s=arc-20160816; b=iDXFEkmeEzClUh/sAkw1V6RBtfDEKcNvPSeL1yswfjeTHi92ueLglOEjyCXUguuucI 4AlUGaZv0vobaSBMS4xScGKRNBon+G5DZd0n+1rqiY38HZ/axEyPVjWfwc7SokshX3X4 x6SRkyRx+P2vcCtaSNG+1w8/UBw/2IUNhbciWXyn3aQyrWO6qPCIyUtibKwZxkuLf8kD oN1qj1ECXw71NKKI5tfLWFYml60Svq3y2WsX6jN079gNzNJmiGCRh8mpvVxnm/wKUOs4 ksiiKJR1ld0FDdpyLYw8Bd3rTa6tyhdAFSr+W90nDNPaizVZixKkIuL9KHtFAOOGrbTW RcYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=e+9kaDM3HhtP8KWHAFI+SxFAMjAw0vko71CUZnvXp2k=; b=J0IBBWdMpeGkwVyEBCqqUkkpGXn1iqU0TTHeoPhuh72ow+qkJQrz2IS/whHjgHl811 wVAIfvoNLGGMAhBTRp3b7bel9z7VeDFKRLmIh64ll+peuXTNNNoh34GuXZNF3L9N56/n ILJva7TQa7Wmsl0xRw18CdHvgPBpQeMwYFEpdYhqHhXaipwTwZlDAhc+ctoVli/cDMT7 MyAtgxdDcuBlGElX7vO9qAon9fjwE9eVGF8km0t9p4OZ5V5opAte4z61yTrkfVlGS5Ww SrIYopsw+a078hWdynIHALmTlpAYsctF2gPWCfHUYB+Daj3dz+rS7MSjc555z8zoZCnT tV8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="PHK/IO+/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w125si16066568jaa.80.2021.06.28.03.00.35; Mon, 28 Jun 2021 03:00:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="PHK/IO+/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232597AbhF1KAN (ORCPT + 99 others); Mon, 28 Jun 2021 06:00:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232539AbhF1KAN (ORCPT ); Mon, 28 Jun 2021 06:00:13 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C80CC061574; Mon, 28 Jun 2021 02:57:47 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id w17so9463518edd.10; Mon, 28 Jun 2021 02:57:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=e+9kaDM3HhtP8KWHAFI+SxFAMjAw0vko71CUZnvXp2k=; b=PHK/IO+/Zw8aRHQhTJrG0CyxKfLxqnbDfhVcuuGq7k0yqLIDSDB2R5/DvItfco7zM9 hRdynGR61u5V5aMkXnFu1dM9VmXGFiIO+6a5hinTfr83zNTD+BcsRzowIizswSH3DW1f ItbsmWY5++jM7p8NIGZ7H0VbcK6QvEAYADDeWn8yIDszuyO+D3FK+hdG+lFsORuBiMni g2U4rH57wis5AyKOEnAiSJmaw48bBaM86ot7jUuEribnHUSV+2AC8GqP3dkD05ApviD3 q3nRxviYCPtDaIHguTGFa2wkeQ7PAx3t4t26ABbL1IYesR0WSJRq6xcMgR9oeiWzqJkA KZLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=e+9kaDM3HhtP8KWHAFI+SxFAMjAw0vko71CUZnvXp2k=; b=Kq/Ds5ojKBeKCI1gKX628gom5UOoLILCe1ctfRB3eldkR0R4eNH96cIA3fCT/Smhds N+4E0Rv0TKbGPx27c0gaClHkafdbQHWPFQ9/2i8Ay/0SMS2f+WVBMLjAn1zqI1+clrB5 n3YFuDor78qLfl76lEk8kjryU0Rkz+3KQwIVPu6Y4KFfK024N7enSfiGzd0qImXjcHIi DfydSXLqUirfDTNB957703UnyElJ1LEg/tzoS7guejSehkdkqnyab7mOoXcpC+My+r+L urlTolUlTZE3UoctxNZ9zcWdK3cO+Hl6pIiRRQXHyh+FR3EcwYYZxx6E0/AEHPUYhz0R UW0A== X-Gm-Message-State: AOAM532oTE29a9ZCrzZLZ37rWVYprZRVtfbdYUg/Z8SPx/5g6dKFbKwY u8htZWLZkC+OLLpNIr8TL4c= X-Received: by 2002:aa7:cd85:: with SMTP id x5mr2227897edv.115.1624874265892; Mon, 28 Jun 2021 02:57:45 -0700 (PDT) Received: from BV030612LT ([188.24.178.25]) by smtp.gmail.com with ESMTPSA id l26sm9373264edt.40.2021.06.28.02.57.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Jun 2021 02:57:45 -0700 (PDT) Date: Mon, 28 Jun 2021 12:57:42 +0300 From: Cristian Ciocaltea To: Amit Tomer Cc: Florian Fainelli , "David S. Miller" , Andrew Lunn , Jakub Kicinski , Rob Herring , Andreas =?iso-8859-1?Q?F=E4rber?= , Manivannan Sadhasivam , Philipp Zabel , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel , linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/3] net: ethernet: actions: Add Actions Semi Owl Ethernet MAC driver Message-ID: <20210628095742.GA2261718@BV030612LT> References: <17876c6e-4688-59e6-216f-445f91a8b884@gmail.com> <20210322084420.GA1503756@BV030612LT> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Amit, On Mon, Jun 28, 2021 at 01:55:40PM +0530, Amit Tomer wrote: > Hi, > > > > Do you know the story behind this Ethernet controller? > > > > I just happened to get a board based on the S500 SoC, so I took this > > opportunity to help improving the mainline kernel support, but other > > than that I do not really know much about the hardware history. > > > > > The various > > > receive/transmit descriptor definitions are 99% those defined in > > > drivers/net/ethernet/stmmicro/stmmac/descs.h for the normal descriptor. > > > > That's an interesting observation. I could only assume the vendor did > > not want to reinvent the wheel here, but I cannot say if this is a > > common design scheme or is something specific to STMicroelectronics > > only. > > I am not entirely sure about it but it looks like it *may* only need > to have a glue driver to > connect to DWMAC. From the RX/TX descriptors perspective, this looks like a Synopsys IP, but the MAC register layout is not similar at all. Thanks to Mani, a request for clarification has been also sent to Actions, but they could not confirm. Hence, at the moment, we do not have clear evidences that it is based on Designware. > For instance, on the U-boot[1] side (S700 is one of 64bit OWL SoC from > actions), we kind of re-uses already > existing DWMAC and provide a glue code, and on the Linux side as well > have some similar implementation (locally). The S700 SoC provides Gigabit ethernet capabilities and I assume the controller is quite different from the 10/100 variant present on S500. As a matter of fact, Actions has confirmed that in the case of S700, the licensing was obtained from a third party IP company, although they were not certain if the provider had previous agreements with Synopsys. Regards, Cristi > Thanks > -Amit. > > [1]: https://source.denx.de/u-boot/u-boot/-/blob/master/drivers/net/dwmac_s700.c