From patchwork Wed Jun 14 22:30:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Chen X-Patchwork-Id: 13280490 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E10F1428B for ; Wed, 14 Jun 2023 22:30:30 +0000 (UTC) Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66E372690 for ; Wed, 14 Jun 2023 15:30:28 -0700 (PDT) Received: by mail-qt1-x832.google.com with SMTP id d75a77b69052e-3f9a6c18e45so22296821cf.3 for ; Wed, 14 Jun 2023 15:30:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1686781827; x=1689373827; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=69LBwooVRwc2RWMtFv/u5V2VGbnaGaZBReNFyGK6wFY=; b=Izi9EBcdE+x394ycrVDVfNu6HtzK1TBfDzyPrk3r0KAFp/fStlMo1psd7SG07U64bS OAY2R5WaC0ywLnaewZcS9uaZpeOjYcd36/QmFnLrqSRMRbM1j+2WKTIGiCHhViku14ju 9sEi/8SUIo+9OaMTP/Z9wrXOu8fhlgusryVmY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686781827; x=1689373827; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=69LBwooVRwc2RWMtFv/u5V2VGbnaGaZBReNFyGK6wFY=; b=GPd9pz6d/fmN0WRR97UrazXMmwzJjPDPngbuAY5gtLvdo+y6Xft1sk0IXmFgCLOkxS IDjE2vwBezbZcMZ0gRAdudh4L1if1AKiGUsTP04h2yMudY6Qk52wzdKcCElIPUgE23fN gzt9O4+BZ1pOtpftwHQq4/WVUSm4eGUqZISMi44+GNJznrtP46KQT+ObElI9KF6jxkO6 RvErJO//MGrUT+Slm2IrYbZ6YU1w1XIFqjb84Mp5t49Hy8tliSi3xakRMdAjAa7lbZAI DZeB2ED8/wuRE6r8bakbA8ag1+5c9O6H3K4OEDHkIWuNdTTSt6hUWgfHonH5/PBCHQHr NkYQ== X-Gm-Message-State: AC+VfDz0llqESKibNGD2UuFbZxiWUJNqfVNN7vib1SeS+k4dh9zI3zw9 dE8ERVkbgg6MBDB4tteuDFwjzDhZiXUCo1rApGu+/4SiwWcgPU+qNPsAu7Y2WPcE1beu69l8VDo NMZXX3QvA1Itlpu7SUcdMHaaisikVqhGEMYEHSA+5QlnNdzeIKNTenUkgMABfEnSC6lGuaQ7nTt d9KsbNQw== X-Google-Smtp-Source: ACHHUZ4rxqipZbIJF9SPP+z6Mnn4CWBN8uWbgaGGVO/+R73PQbxjf1GzmihsbbRcreBn/+Soy9okXg== X-Received: by 2002:a05:622a:1829:b0:3f7:e753:7ace with SMTP id t41-20020a05622a182900b003f7e7537acemr4046293qtc.4.1686781827193; Wed, 14 Jun 2023 15:30:27 -0700 (PDT) Received: from stbirv-lnx-2.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id d3-20020ac85443000000b003ef2db16e72sm5419360qtq.94.2023.06.14.15.30.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Jun 2023 15:30:26 -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 v7 00/11] Brcm ASP 2.0 Ethernet Controller Date: Wed, 14 Jun 2023 15:30:09 -0700 Message-Id: <1686781820-832-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 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: X-Patchwork-Delegate: kuba@kernel.org 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 | 501 +++++++ drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c | 1431 +++++++++++++++++++ .../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, 4431 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