Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4617748iob; Sun, 8 May 2022 19:23:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3PJWs/gh6VFBAw4Q1KL9LYD65WOw8TYj2V0ZyWXIVwunnCjL+cgk1LqttDp7d+Jud0/xK X-Received: by 2002:a17:90b:314e:b0:1dc:d143:a15d with SMTP id ip14-20020a17090b314e00b001dcd143a15dmr17029298pjb.111.1652063033856; Sun, 08 May 2022 19:23:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652063033; cv=none; d=google.com; s=arc-20160816; b=Y9OEn34tQyBxcBV2zQbmJk8EtsC4amVcThvERtxNTiG4c/exwmF7GpYFLS4KqeJK5C 1XnGHj2zEXO61bydNuipq1qU5lRJaQCR2VIBoKVFTRREijUpnl/Mif3Z0pt95BAxpSee 8m3beeT2di2TB1/3urpYL3xHzPsTZq63lTfZXYgNCrEWP+6icIOSnaR13i/a/U8EdZRu IkuEG5LeBAIP6JGDA4yk84RZnCXiqPqU9la48muuvHDyZhjzxf+ScSSs8eO9+D2FBTEs VjCgZyiUKKFIjLI+dNjQ/DzQOTyT7F+7dp8Hz+0r5ZYmypIRFaSIN0HdFIJJQuKOl12c wucQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=ByYr7aMGGDr8h8TkbEKkYd3QBbrE2CshJtP9jL4rIUg=; b=Mixu5zsKOjlRMWCUamExZYObCmYWq561HCnJu/SKtyI2jGy4ZrNqqvl1wb7QpKi14R XZtyQX4H6w9kbKyD8YLKwnwXbB+s7qXrU8kOXJRdbT1zcPUa6OzxVeCv6TjvSbyvuFbJ PSWozOgyA/4ZQLngDYCqxUhmq67qEId9fGjUXF4Pi+OQfr+Dlwe+F+TqBlRfyQiraKqC qYDt/ZcQSCl/gNoWgNucOoaTGC9OsxAMWh4GCADsOQ4GT2ignlPrUiSzNVzblx3XZmYm 1hYIjHeftmOilQpTHUkbNkBMdHJnNd4xVoaTP0x1pOCrnEV0GrMO7npIDa7J/szxhlsg uNLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZV3pJrdN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z11-20020a170902d54b00b0015e8e1a32d6si9818361plf.603.2022.05.08.19.23.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 19:23:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZV3pJrdN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 774D05D5E6; Sun, 8 May 2022 19:23:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230286AbiEHKRZ (ORCPT + 99 others); Sun, 8 May 2022 06:17:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229569AbiEHKRW (ORCPT ); Sun, 8 May 2022 06:17:22 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7501EBF69; Sun, 8 May 2022 03:13:32 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id c11so11375044plg.13; Sun, 08 May 2022 03:13:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=ByYr7aMGGDr8h8TkbEKkYd3QBbrE2CshJtP9jL4rIUg=; b=ZV3pJrdNCrloK9Go644vqxakmipQakmvUGH7IXuPAJnmwT+9lGuJO1hCtX4JpHdTxf L/4VdezXSGX9dNBy4LYc03zzTa1abdInvmS6ZtoDf35Xrclw/QZ3UOoX72PTcLt6HxGk w1f7CLI6qzfQE2u+6SbYxYyU4MNk8kCkfOjUIk00VevlxlNxeEO2BeqbtAU2l3KKm0ze VvNteSeQLyvrRp7yg73JzaPCMdijdRkX6Jzeok33qMQ86xrvfpjdh0JNrC4ZH2LloAkt 1iP26h93+yXndkLx2GJ5CJvKaz+Vu0vTRHZDhApvIotAvkzxV1WAB+67SsvSCSUdEXO1 VpoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ByYr7aMGGDr8h8TkbEKkYd3QBbrE2CshJtP9jL4rIUg=; b=y7V+VY6rrYV7m9oPHP+eZKxS8wcTlNTsNep0W6eVuq1aX3JNGb4f7cCqIFjnm6W9YC Ei4qpfUZIOCB1C0kv/ivFk7JYXcHY8Nmw7D49s46BMZv/pPFend+LZ5yVGERTFOXnoW/ fx8oqIJzI668Vq1pS+cnUXrt7T/Mkh2tOMBTKairkx4EPO+zWVx5CDmliKsIhfqV9QM9 7HqUL2WTT5mbgNKrspXOwzWzl2mEGoWouy9tAv1kNQXl6sON2eI2CZMuicwYSKZEle6G wISvY3u1A40hrFl1hrjDTJiNV1SrxYMrxNkPNgmzTfCuyrc+i1gDwHXFC2lZ3elb9Dkk gEMg== X-Gm-Message-State: AOAM530aceVJxTK94XqpmL3HZfOr3QJU8yIXYrKu0/B6ChCdzbD6FUN5 VJyLAgv9rR+DEh1I1MuTxzE= X-Received: by 2002:a17:90b:33c5:b0:1dc:eff1:d749 with SMTP id lk5-20020a17090b33c500b001dceff1d749mr6990239pjb.239.1652004811650; Sun, 08 May 2022 03:13:31 -0700 (PDT) Received: from scdiu3.sunplus.com ([113.196.136.192]) by smtp.googlemail.com with ESMTPSA id y2-20020a17090322c200b0015e8d4eb1f6sm4969610plg.64.2022.05.08.03.13.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 May 2022 03:13:31 -0700 (PDT) From: Wells Lu To: davem@davemloft.net, kuba@kernel.org, robh+dt@kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, p.zabel@pengutronix.de, pabeni@redhat.com, krzk+dt@kernel.org, roopa@nvidia.com, andrew@lunn.ch, edumazet@google.com Cc: wells.lu@sunplus.com, Wells Lu Subject: [PATCH net-next v11 0/2] This is a patch series for Ethernet driver of Sunplus SP7021 SoC. Date: Sun, 8 May 2022 18:13:18 +0800 Message-Id: <1652004800-3212-1-git-send-email-wellslutw@gmail.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sunplus SP7021 is an ARM Cortex A7 (4 cores) based SoC. It integrates many peripherals (ex: UART, I2C, SPI, SDIO, eMMC, USB, SD card and etc.) into a single chip. It is designed for industrial control applications. Refer to: https://sunplus.atlassian.net/wiki/spaces/doc/overview https://tibbo.com/store/plus1.html Wells Lu (2): devicetree: bindings: net: Add bindings doc for Sunplus SP7021. net: ethernet: Add driver for Sunplus SP7021 .../bindings/net/sunplus,sp7021-emac.yaml | 141 +++++ MAINTAINERS | 8 + drivers/net/ethernet/Kconfig | 1 + drivers/net/ethernet/Makefile | 1 + drivers/net/ethernet/sunplus/Kconfig | 35 ++ drivers/net/ethernet/sunplus/Makefile | 6 + drivers/net/ethernet/sunplus/spl2sw_define.h | 270 ++++++++++ drivers/net/ethernet/sunplus/spl2sw_desc.c | 228 ++++++++ drivers/net/ethernet/sunplus/spl2sw_desc.h | 19 + drivers/net/ethernet/sunplus/spl2sw_driver.c | 578 +++++++++++++++++++++ drivers/net/ethernet/sunplus/spl2sw_int.c | 271 ++++++++++ drivers/net/ethernet/sunplus/spl2sw_int.h | 13 + drivers/net/ethernet/sunplus/spl2sw_mac.c | 274 ++++++++++ drivers/net/ethernet/sunplus/spl2sw_mac.h | 18 + drivers/net/ethernet/sunplus/spl2sw_mdio.c | 126 +++++ drivers/net/ethernet/sunplus/spl2sw_mdio.h | 12 + drivers/net/ethernet/sunplus/spl2sw_phy.c | 92 ++++ drivers/net/ethernet/sunplus/spl2sw_phy.h | 12 + drivers/net/ethernet/sunplus/spl2sw_register.h | 86 +++ 19 files changed, 2191 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/sunplus,sp7021-emac.yaml create mode 100644 drivers/net/ethernet/sunplus/Kconfig create mode 100644 drivers/net/ethernet/sunplus/Makefile create mode 100644 drivers/net/ethernet/sunplus/spl2sw_define.h create mode 100644 drivers/net/ethernet/sunplus/spl2sw_desc.c create mode 100644 drivers/net/ethernet/sunplus/spl2sw_desc.h create mode 100644 drivers/net/ethernet/sunplus/spl2sw_driver.c create mode 100644 drivers/net/ethernet/sunplus/spl2sw_int.c create mode 100644 drivers/net/ethernet/sunplus/spl2sw_int.h create mode 100644 drivers/net/ethernet/sunplus/spl2sw_mac.c create mode 100644 drivers/net/ethernet/sunplus/spl2sw_mac.h create mode 100644 drivers/net/ethernet/sunplus/spl2sw_mdio.c create mode 100644 drivers/net/ethernet/sunplus/spl2sw_mdio.h create mode 100644 drivers/net/ethernet/sunplus/spl2sw_phy.c create mode 100644 drivers/net/ethernet/sunplus/spl2sw_phy.h create mode 100644 drivers/net/ethernet/sunplus/spl2sw_register.h -- 2.7.4