From patchwork Fri Jun 16 22:14:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Chen X-Patchwork-Id: 10919 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1652703vqr; Fri, 16 Jun 2023 15:31:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ42wic2tZH7u5sS5b9kWgOlrv5G8UozWvXOf2xtuGUjvdZteLxM/Zik4+zusXH+Ay6z4tg7 X-Received: by 2002:a05:6358:c109:b0:12b:dc5e:fd8b with SMTP id fh9-20020a056358c10900b0012bdc5efd8bmr503565rwb.28.1686954706107; Fri, 16 Jun 2023 15:31:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686954706; cv=none; d=google.com; s=arc-20160816; b=NKreqsmhKi4UaGftdaIBDQME6ZYYCULyV5wAKz6ueJKdPvHM2LKltb47gu2oDLWhGS mJy5akWYRfV5LcPXja+sW++aGE5ZpNc6n7WyRe15qQ1wxeKdE2j4MyWJF6XsBVxWyI11 sR9qGl1mW5+8gqD9AlxlTe5Mb1XCMPNzywOqq0Ik4ooqgwciC8kK0EqiyXS8tjZYLXLP Zo+BzFvLdMXrRgPttqNmWbEBUGU9rKVLqu87Oz6yf+YHzZEcVg5h1dFLT5gYzqXL7mV3 oMWSwYmmcOyatHBU9VCFtTf627t95rKm5tPH+hWOYffpcgFCNLmxlcYy+lpQ82xbhU4e yWXw== 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=z6oa4ojHaJiKA1bo4SVrpoak1kvworCpEq0F/N/U0ig=; b=pS3wwl0NKYrSzonJzABLO/AS0myQA6S02DbQTRo+/17QEUNxCa8dpkmF/dEgHkNXky BqpHcl1gr/v0KRsu3wvfNtB7JSDgGXa86bc+LZWbGE1TJabCBc4uF4Fdv+NayPS4DmJg ykDHS5JmgxKlryFl9DWKwpiTW5ER/BWysZsjAMB2cPLP9I6E/3nbNQHPNJqjSFewt4gx nChAS5LoOeAAlKWCxHusvXJBs6Q/yOK7LOfffozx+rVhHOGM2MRcHjDUUpGmSNNdGfgP hhv5isn2MLzvDWpQ7Mzu0+4ro6u0wOHEARLoum5fXE8om8FY4O1Pud1joyHBdTUSrFt9 bRTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=DV7fJl9g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a16-20020a637f10000000b0051a8a22a42dsi15391585pgd.268.2023.06.16.15.31.33; Fri, 16 Jun 2023 15:31:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=DV7fJl9g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345823AbjFPWOn (ORCPT + 99 others); Fri, 16 Jun 2023 18:14:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345770AbjFPWOe (ORCPT ); Fri, 16 Jun 2023 18:14:34 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 248DE1FF5 for ; Fri, 16 Jun 2023 15:14:32 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1b52132181aso8394765ad.2 for ; Fri, 16 Jun 2023 15:14:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1686953671; x=1689545671; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=z6oa4ojHaJiKA1bo4SVrpoak1kvworCpEq0F/N/U0ig=; b=DV7fJl9giBNwcy/5l0YS+sQgKWJpMMHp7PkT5IRK0L99mqS0WZRmszszlxi2ZImfGe rWhFmokzlJmp56Nmh/TFhpdJGLUkAvgbRLBp8b6KKDkKoVnzGc/y7hQmG6lJHeoEKhWn Erk+wjqoNMH9VhhhKWBj9hVgEW1/LLmizUkEU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686953671; x=1689545671; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=z6oa4ojHaJiKA1bo4SVrpoak1kvworCpEq0F/N/U0ig=; b=Tms2idGLkWb7GN5u47JnUAaGNDcU8cyS5lKXjzBwYPmaSaj6NZsOcw7bnpXxwbc1Ir DyyKL0ZKquEY50i/jwHvtYE21ceKZ2IlIyzjD1A9sYmglL+1YNlwtE4JS4KNLd8i6r/T K14o616sQwSYb1coISXnSy2rxUk8iqjSYL1+ClGwogQT3caU5eaH2jxVKQfa4N0xJCwa zWzuwbrzwgMH0fJL64tRHIOh9pdonDyXapl2m++pZvo/3rsbh10O3moJrAKVjDkA8NLY 28kH2GtAZAhN/HIe10HoxhjiwJn1Uope+0jRuak0u4SU5uHd2g7OKhn+pCwbwlqVRwRQ x6Mg== X-Gm-Message-State: AC+VfDzfAuctlPynZFTmpkVEs2E3GPfuQzttXp0ueZgQRpv3UK+22Ibb Be/eQkrIi791b73nK/JUY9IGhJmT5ESNyx+gU2duIQ== X-Received: by 2002:a17:903:428d:b0:1b1:7336:2634 with SMTP id ju13-20020a170903428d00b001b173362634mr2380502plb.57.1686953671448; Fri, 16 Jun 2023 15:14:31 -0700 (PDT) Received: from stbirv-lnx-2.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id f12-20020a170902ab8c00b001aaed524541sm16220860plr.227.2023.06.16.15.14.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Jun 2023 15:14:30 -0700 (PDT) From: Justin Chen To: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, bcm-kernel-feedback-list@broadcom.com Cc: florian.fainelli@broadcom.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, opendmb@gmail.com, andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, richardcochran@gmail.com, sumit.semwal@linaro.org, christian.koenig@amd.com, simon.horman@corigine.com, Justin Chen Subject: [PATCH net-next v8 00/11] Brcm ASP 2.0 Ethernet Controller Date: Fri, 16 Jun 2023 15:14:13 -0700 Message-Id: <1686953664-17498-1-git-send-email-justin.chen@broadcom.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, MIME_HEADER_CTYPE_ONLY,MIME_NO_TEXT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,T_TVD_MIME_NO_HEADERS,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768900218189638069?= X-GMAIL-MSGID: =?utf-8?q?1768900218189638069?= Add support for the Broadcom ASP 2.0 Ethernet controller which is first introduced with 72165. Florian Fainelli (2): dt-bindings: net: Brcm ASP 2.0 Ethernet controller net: phy: bcm7xxx: Add EPHY entry for 74165 Justin Chen (9): dt-bindings: net: brcm,unimac-mdio: Add asp-v2.0 net: bcmasp: Add support for ASP2.0 Ethernet controller net: bcmasp: Add support for WoL magic packet net: bcmasp: Add support for wake on net filters net: bcmasp: Add support for eee mode net: bcmasp: Add support for ethtool standard stats net: bcmasp: Add support for ethtool driver stats net: phy: mdio-bcm-unimac: Add asp v2.0 support MAINTAINERS: ASP 2.0 Ethernet driver maintainers .../devicetree/bindings/net/brcm,asp-v2.0.yaml | 155 +++ .../devicetree/bindings/net/brcm,unimac-mdio.yaml | 2 + MAINTAINERS | 9 + drivers/net/ethernet/broadcom/Kconfig | 11 + drivers/net/ethernet/broadcom/Makefile | 1 + drivers/net/ethernet/broadcom/asp2/Makefile | 2 + drivers/net/ethernet/broadcom/asp2/bcmasp.c | 1471 ++++++++++++++++++++ drivers/net/ethernet/broadcom/asp2/bcmasp.h | 587 ++++++++ .../net/ethernet/broadcom/asp2/bcmasp_ethtool.c | 503 +++++++ drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c | 1430 +++++++++++++++++++ .../net/ethernet/broadcom/asp2/bcmasp_intf_defs.h | 257 ++++ drivers/net/mdio/mdio-bcm-unimac.c | 2 + drivers/net/phy/bcm7xxx.c | 1 + include/linux/brcmphy.h | 1 + 14 files changed, 4432 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/brcm,asp-v2.0.yaml create mode 100644 drivers/net/ethernet/broadcom/asp2/Makefile create mode 100644 drivers/net/ethernet/broadcom/asp2/bcmasp.c create mode 100644 drivers/net/ethernet/broadcom/asp2/bcmasp.h create mode 100644 drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c create mode 100644 drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c create mode 100644 drivers/net/ethernet/broadcom/asp2/bcmasp_intf_defs.h