From patchwork Thu Mar 11 01:20:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 12130017 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=-8.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham 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 B0CA2C433E0 for ; Thu, 11 Mar 2021 01:21:50 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 3715664FA6 for ; Thu, 11 Mar 2021 01:21:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3715664FA6 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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=WgkiGsQ18h1JqhiSRD7x1QexPeARpUMgGHYwcphjXXA=; b=jAFiW4gGvicVqAC+NwQCAHBoLp kTAvKzxKGfydm1MRBn/KAvrv+d72rdjDgU8pKXPXh0KTRQ7dphGIMlWXVOwX/2IGcVaqSr74lN+F+ grER+PwkZjtcFBZx7qZCCIQIdy8cZdfryp3Vn0fGe9CFXBaSvOYIPqDY9hcHEYDgaz3FABD7E3gIL lmP7HVLV9AQ25dTNbajL+lDrbVS0rsuk7CgMtLop6y6nYZKnvM10t/CdUXQsC9kSvNOwacIf7aulY oWUPXwmRW3r3mgBESA+CXK658RZdu2pzCL9iCKoMCJPHCpLDN4xeeKRQNTgs/b3nKx8o8hTawZZEO phWJPPBA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lK9zy-008AGd-FW; Thu, 11 Mar 2021 01:20:22 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lK9zt-008AFT-S3; Thu, 11 Mar 2021 01:20:19 +0000 Received: by mail-wm1-x331.google.com with SMTP id c76-20020a1c9a4f0000b029010c94499aedso12200757wme.0; Wed, 10 Mar 2021 17:20:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7uMncpPAE4jWoflI5coLB5nSFQY4/AWNCX9VZjYJxzI=; b=Nc8MYQYGmJoLdEd5ZZcCH+7s+60s9bd/sJLF8qjzYXn6l7+txx7hTxtnP5Sw6c0YEL bAcOivsyT3iQ7BNoJ5lscEOXY1jkjKc1p8fzQB0IDMsROHUt/Sr53iUVQT6Ltx57eEBf vrn6YVe8AGS8B8nmLJrPnhuwAAXEadzk/ATK8DN88N1nUPy+ni4d3wDO5XdSq1F9np9e 94CUx7XFusbAZWXY27KYS038loBRa6l3QtLTrmtmZWbDRBL9rPQDnKx55Ohh92pf2Rpp 03GJmKh7lSg4yd+6d220RMg91o3FNxJ2b52JgKKThg8RtrQi7hE4l3XxzVYEudf3I+O4 gY4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7uMncpPAE4jWoflI5coLB5nSFQY4/AWNCX9VZjYJxzI=; b=ITSud76AINXuDZ/+7EEsFgMmQu+cHk2nwYAof0Vlu66hMCH215KmXKnSvZhXEavg+6 lZ+42kpJw4G9zjwEIhrUHAbfOuM7iczIZE7N5icmN7W+ZDDc0lZWo2XLa6QMtebHLTiT 2iLH31LkXHM218L0PGS3dj1vYgvAzbY/DYF/cDEQuJIQ6lYQ91Fi/LqadckispeMOWuG v/20IdpY5o+EITbT0DTGtsbuPb/KMYcmx9JW5oX8YXbqpb/VQk9IDxtMRGl3PAaM21QV +EAAliiD9v93crFj9mgxu25smi6pzpPMz5rStg22eEUI1Vt/7kXs6TRkgV/7xbNSHQw7 YNqw== X-Gm-Message-State: AOAM531fFqYYdl2NOMXAzGwtUl7J0XjaExuowBFXbCmbYK7k+Z9IyRGb IDXfo8B8yizM4L4PaY+JFf8= X-Google-Smtp-Source: ABdhPJwkA4xwc4RDlD/r9Gu6ew3RAMijLC75fiSCNAWFfjnKG95xxAfGFd47g2ZGBxvGN9qANG/Plw== X-Received: by 2002:a1c:541a:: with SMTP id i26mr5562580wmb.75.1615425616652; Wed, 10 Mar 2021 17:20:16 -0800 (PST) Received: from localhost.localdomain ([81.18.95.223]) by smtp.gmail.com with ESMTPSA id d85sm1199127wmd.15.2021.03.10.17.20.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Mar 2021 17:20:15 -0800 (PST) From: Cristian Ciocaltea To: "David S. Miller" , Jakub Kicinski , Rob Herring , =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , Philipp Zabel Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] Add support for Actions Semi Owl Ethernet MAC Date: Thu, 11 Mar 2021 03:20:11 +0200 Message-Id: X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210311_012018_023521_10F8E3DC X-CRM114-Status: GOOD ( 17.13 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch series adds support for the Ethernet MAC found on the Actions Semi Owl family of SoCs. For the moment I have only tested the driver on RoseapplePi SBC, which is based on the S500 SoC variant. It might work on S900 as well, but I cannot tell for sure since the S900 datasheet I currently have doesn't provide any information regarding the MAC registers - so I couldn't check the compatibility with S500. Similar story for S700: the datasheet I own is incomplete, but it seems the MAC is advertised with Gigabit capabilities. For that reason most probably we need to extend the current implementation in order to support this SoC variant as well. Please note that for testing the driver it is also necessary to update the S500 clock subsystem: https://lore.kernel.org/lkml/cover.1615221459.git.cristian.ciocaltea@gmail.com/ The DTS changes for the S500 SBCs will be provided separately. Thanks, Cristi Cristian Ciocaltea (3): dt-bindings: net: Add Actions Semi Owl Ethernet MAC binding net: ethernet: actions: Add Actions Semi Owl Ethernet MAC driver MAINTAINERS: Add entries for Actions Semi Owl Ethernet MAC .../bindings/net/actions,owl-emac.yaml | 91 + MAINTAINERS | 2 + drivers/net/ethernet/Kconfig | 1 + drivers/net/ethernet/Makefile | 1 + drivers/net/ethernet/actions/Kconfig | 39 + drivers/net/ethernet/actions/Makefile | 6 + drivers/net/ethernet/actions/owl-emac.c | 1660 +++++++++++++++++ drivers/net/ethernet/actions/owl-emac.h | 278 +++ 8 files changed, 2078 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/actions,owl-emac.yaml create mode 100644 drivers/net/ethernet/actions/Kconfig create mode 100644 drivers/net/ethernet/actions/Makefile create mode 100644 drivers/net/ethernet/actions/owl-emac.c create mode 100644 drivers/net/ethernet/actions/owl-emac.h