From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9E1CCC2B9F4 for ; Mon, 28 Jun 2021 10:00:10 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 58C60611B0 for ; Mon, 28 Jun 2021 10:00:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 58C60611B0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NtL4gozuRyjVV3tIhawlsNxA2wvAS2W9c7iJMVjGtuk=; b=wLrSsg0HbUfioq ZadzuDHFrwAwF7gP+bn51SG2gh1CGi+dArrPTPjAbTZocFRkp/+mNv39s77f1zAX7H7aSMKFThZUn aEPHBgOym+tCi5QcNpAgedAW/O9Kjqpl7BtWoh08oddr97vx1o8wssDNFpLVsNJwZlnwFFChvkPcZ wkfKn3PtxV4ElorHFtFC3Wj10FgvOpefHMFbSVqPLm8ZOGv6JyO3LTbKJRCY2adNVyxSzT9vfRED+ 2vhFCgSP5ed85Yur3DnF3YqiBalzuj0d3cako6p66hM+TMHRrXu4GKqePwqmNfqoYxCFaYICpWbZ4 vSgdxMQqGHTDRxAZTUlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lxo1X-007Xrs-QY; Mon, 28 Jun 2021 09:57:52 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lxo1T-007Xr5-Q4; Mon, 28 Jun 2021 09:57:49 +0000 Received: by mail-ed1-x533.google.com with SMTP id w13so19023550edc.0; 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=FVAaB8PEZf1J8uOtumTy7ZYClYNmtLQFHuZSZTzggbQtBI2VxGzBZF8APG4lEkpRZn tb3eTEgWWLkUo507+qRKR1QQvJFbYIg8oaqXalgu7tMV51dJsmBUdGLiUAl07SFePt0z qv72YCaVuh3XcErPLvl/xZPVvYeyaRvAnycggI5DssrhDzNuoyHM0+Odr3ORGhvNcLjw h4+B2vFkgiK5JpyEWEX4vClszuCr4MA0l1ZmmLfLVb5xCUVCIptQo4/A5rTLbbdPcyUQ vk5XIoKSKaUf4QcslPK7AcRIJi7HztnYmj3fgum/qGIUprASgaYVF03aPtZpsMCU7eAh auUg== X-Gm-Message-State: AOAM5309fvi1gNGVuCX1u+61VKcu6JQfqOpSBd1aTEH/dc+4uLCIuW5U eLtRBYlAA+0UUou0kWENDIk= X-Google-Smtp-Source: ABdhPJz2QPDPz5W0mtaAxWIDbNZiYiGbHW29D1G2FnYu7l2dRuXghrwYbFlmUNRV8i4TuOv30bG6Lg== 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-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210628_025747_923473_CBD445FF X-CRM114-Status: GOOD ( 29.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel