From patchwork Thu Jul 13 22:18:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Chen X-Patchwork-Id: 12024 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp2127772vqm; Thu, 13 Jul 2023 15:30:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlEsBQA/2swoM8yIWYQS9Qtd3wFMU4sazzL+7kEbuNDGgEfhYhknQWrOUiXwIq0DSMi0CGm7 X-Received: by 2002:a2e:84d7:0:b0:2a7:adf7:1781 with SMTP id q23-20020a2e84d7000000b002a7adf71781mr2387213ljh.2.1689287459165; Thu, 13 Jul 2023 15:30:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689287459; cv=none; d=google.com; s=arc-20160816; b=b9AtxwOXhBmmyNUdBIaZKHBYZ7ddyGE8Qho4fpB2EKymUSemf4Hoc55Vx825B2PFUr QQ0yggB28OLrWBAo1NoXAQyOzk0VYfNRVABMObYnrTP0UFS4p/CubqSH/4mLwdMXLD+2 7FsdUHw3zYUjc5Cd4aeFahxtm9kzr391IzCasjx+dgzH21a6VXmv01MYXcB3uj6vH7uK DS+Ad1fCYg0YMYSTRr/CMaATxAsovdrZjxjoJiq6Nud2QurrQutT32frw0gQGPy2Fwxg CRxyrKvCsBnLbhUPY4Z8wN001BojU2hXeticOeX1Ng7nLFVilWjdPpZM5eteKNgkNNFv 9law== 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=7ieOrWmzA+tWnhZSuViGx6QBezi2zZHFG6AuixDFzow=; fh=auIu3uj+2hbF0lD5w/46TjOR2iYLfsn3CHYsSny1RMQ=; b=msxWu25gtEEh4vdMlN7fP0HSShLqSyvoA3WLYWlZA/WfNcMaUdsoCwJ1r8D6CS4LZR s/CON0QXmaqjvWZHkEKNhlFwenQMDVxt0ndDqrHDvvispU2G70x8hMLUV4GR9zqf0BlY 6aj9BAoJ7+m4aoVawrjuDQul88tWP3srrw3m5T77rlJ6kMX0GrbxcYLQdzH3g/WwsS4E hPujHJhDhOAkymbKp0eYsbUZk/gOSkc6zI1DPuBqD3e6FlnPkyc46wVC21Ge74vUY98r Wsq+ronKtTIyTkwU+BL7Xc9RhgoezaZ/rMHmnApyrobuuqY+82aYRmeqYf86dXHoXwuH XVsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=OhFSiyhu; 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 l6-20020a170906230600b00992f309c359si7866164eja.430.2023.07.13.15.30.34; Thu, 13 Jul 2023 15:30:58 -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=OhFSiyhu; 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 S232499AbjGMWTQ (ORCPT + 99 others); Thu, 13 Jul 2023 18:19:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231310AbjGMWTO (ORCPT ); Thu, 13 Jul 2023 18:19:14 -0400 Received: from mail-qv1-xf33.google.com (mail-qv1-xf33.google.com [IPv6:2607:f8b0:4864:20::f33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 344752736 for ; Thu, 13 Jul 2023 15:19:13 -0700 (PDT) Received: by mail-qv1-xf33.google.com with SMTP id 6a1803df08f44-635dccdf17dso7068316d6.3 for ; Thu, 13 Jul 2023 15:19:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1689286752; x=1691878752; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7ieOrWmzA+tWnhZSuViGx6QBezi2zZHFG6AuixDFzow=; b=OhFSiyhuijWzUT9dU4IIYd/5lJzo8c1H2og/VCW6mHvMsl4M3G0i4say9IeIMJdSgy WR2GXA1bDqiTeyCj4qo6GgF3i+0Ulhmp8i+aCdJ5P/01e7ouNJI9PzGGctcuHslD5lNJ iKhG11T6GO58qMjgvbGuJD3kk0papMkl3/GqQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689286752; x=1691878752; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7ieOrWmzA+tWnhZSuViGx6QBezi2zZHFG6AuixDFzow=; b=lznupGuo3YEUiqyqeF+FDYSugTv9YXul+qSVCYVfIsLTzhnxA+aPQ2JlvIeiGccva5 Q/z0y15LGxj6vfQVnmCbLxJk0CaSrO56FkgG49jDZBUFrbkcr+Zs6mKqh/uyLPZCabf8 64qhxPGwYhUrnEzfSj1JH/EJz/2etcGgKPMJqmRn8vkSN3IK6WGb6slxNaWrmXMzex/c K2AxyzRUTzB0Z0xjaX8xLPIPX5HMh40/aMTnRulkH/NSCFybMTv28B3S2eSabZCRGMWc WXFsvn2hzUMJg9KYr4j4CGUSBWVUr2QrCmKhrPbPJc3vG/Rph0p0U0ISwG/rWlQABI7t 9zsQ== X-Gm-Message-State: ABy/qLZvEegAuM3FazTT+Wd7Qb6dVtjxEUueDKw83Y52tCUQ8vXkMujd zeZaufSrTSVbglRw9YHfEfHQTsmA+ow+oJXN5fbQvMQk X-Received: by 2002:ad4:44a9:0:b0:636:9291:c4fe with SMTP id n9-20020ad444a9000000b006369291c4femr2711933qvt.43.1689286752094; Thu, 13 Jul 2023 15:19:12 -0700 (PDT) Received: from stbirv-lnx-2.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id i14-20020a0cf38e000000b006262de12a8csm427623qvk.65.2023.07.13.15.19.08 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jul 2023 15:19:11 -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, simon.horman@corigine.com, christian.koenig@amd.com, Justin Chen Subject: [net-next v9 00/11] Brcm ASP 2.0 Ethernet Controller Date: Thu, 13 Jul 2023 15:18:55 -0700 Message-Id: <1689286746-43609-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_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,T_TVD_MIME_NO_HEADERS 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: INBOX X-GMAIL-THRID: 1771346286560082904 X-GMAIL-MSGID: 1771346286560082904 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 | 1437 ++++++++++++++++++++ drivers/net/ethernet/broadcom/asp2/bcmasp.h | 586 ++++++++ .../net/ethernet/broadcom/asp2/bcmasp_ethtool.c | 503 +++++++ drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c | 1415 +++++++++++++++++++ .../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, 4382 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