From patchwork Wed May 24 23:01:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Chen X-Patchwork-Id: 9816 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp236554vqr; Wed, 24 May 2023 16:04:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ563TtDeSaQvC6ZvTKOm9qPEQkKX7qJ9+n0MRN5uGgHz1lAJWtdE66ioB1eEXDbdTGOgqex X-Received: by 2002:a05:6a00:1911:b0:647:e45f:1a4c with SMTP id y17-20020a056a00191100b00647e45f1a4cmr4901384pfi.11.1684969486458; Wed, 24 May 2023 16:04:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684969486; cv=none; d=google.com; s=arc-20160816; b=k66Nl6NPDbnpIHPd+QBGNVicD9PzFKtcSsb3spXNkTRDcVLyatVeKdWDCXI8wWqjou 2BcK3WFLYnch2rdW/6Oa9KWGiuaZEeA3FK/j7hrDes2DrCUI7miqR84EdYdrLZ6ywliX i4NrKFJO2cPQCzDqIWoCPJNK9GAFqn7asBcW44ldqnF6Pcr57uEF5dGnqifQ8Xosb9MX 23N+3CY1OtXABZuZm1k3083uUomLlcVlOitJymBZnruq94InD/CCtestPZruuxt5JY19 IYJ1U0OETWVdsjuR6C8lB40UXycn3ruaYuhhWMpym+IR8KNP6ft6N8+IV4shR/TnuzP8 MmrA== 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=MJ59Bbeyf7RP86wloh1N0GnykjqYrjWg+trfNLVoLa4=; b=w4GSdOicw7IokjDYOZhXUSnRpkVmwzFqj5lOM3AA+wuZ5j3Z9nQrwFE0j7oKjdX5WA daVFD9IzhW1wraQ7G0BDG9SxrHmcjsewYKwLCUleAyyU2Yab2TaGf8lUYs0Jl0kkj24R 4oqceOHM/xQHSpYq12gz5BhVSPmtu4BEpVf37zMfbV+nyH+e+mXO1vefc/sUGq84YXum yVK0WGPTfjdU8bRX6o/JZGMEKcI0dez6f+pduLIn+qxG/0sF6n6pFZGRpUGx2ynHXMer HdQ/6YDA7ic2gUgUBerFky2n7m18HQ4SG28h81BRHXzisJnqoI8JHWCtanM7xMIGrdsd ZS6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=OxxpZXap; 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 q14-20020a638c4e000000b005347e036056si1111379pgn.633.2023.05.24.16.04.08; Wed, 24 May 2023 16:04:46 -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=OxxpZXap; 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 S236356AbjEXXCJ (ORCPT + 99 others); Wed, 24 May 2023 19:02:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230250AbjEXXCH (ORCPT ); Wed, 24 May 2023 19:02:07 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 447ADA9 for ; Wed, 24 May 2023 16:02:03 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-253570deb8dso630145a91.1 for ; Wed, 24 May 2023 16:02:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1684969323; x=1687561323; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MJ59Bbeyf7RP86wloh1N0GnykjqYrjWg+trfNLVoLa4=; b=OxxpZXapwDwA66WqtHUozM129QrkGpnqD/Y9IyioQJfzrOH0Sn0ykLqxJfWiXhQnvs dEPvuiQF+9JK98ioqgYAelyI4UPPm0U3MZ2lkMAw5k3WvccONwMbq8gQnMs7dllIYlbi NUgqW7ClcSFbQa3578dtKkXeYkm78+U9kKE2o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684969323; x=1687561323; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MJ59Bbeyf7RP86wloh1N0GnykjqYrjWg+trfNLVoLa4=; b=HlwKHIEiM6E2V3/iHZbqABM7gcgRuPjl0yNYBlpvCBE9I7zIMdM5M1TigpzL726God 8hXwMkK7uGtrhPP+xKBqcF3FuuTU2tgAV1k8M2af1sRwYWyugxiyL9shBlhvfoLupKmX zkdUizye1iXQurDpWEOTJOXE+ktlmG9i+vrv9uIF2A100bGwtyawHolgskv6ch22jNww f8yLCd52RTI28etOCSu116m2FONFvzcVmRaJV/ZySCHUDKJxSe6SAa7NbEtcHJVThYnw HdgYd/kV6JbNho0V4zcKvs1ZDWYwvnI+ie2aK7OtlHw9uukWIrsi8tZJe9/EUCEI1+yA sjcA== X-Gm-Message-State: AC+VfDx+xQTuJ+tZBESOXzf687FrfEsOht6YTfw7jaBOdInH/Tt6L6XM K3fSQsD9UTQJvAF+XwYDeJhi/A== X-Received: by 2002:a17:90a:d681:b0:255:c829:b638 with SMTP id x1-20020a17090ad68100b00255c829b638mr4797871pju.9.1684969322580; Wed, 24 May 2023 16:02:02 -0700 (PDT) Received: from stbirv-lnx-2.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id j10-20020a17090ae60a00b00246774a9addsm1789889pjy.48.2023.05.24.16.01.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 May 2023 16:02:01 -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: justin.chen@broadcom.com, 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 Subject: [PATCH net-next v5 0/6] Brcm ASP 2.0 Ethernet Controller Date: Wed, 24 May 2023 16:01:47 -0700 Message-Id: <1684969313-35503-1-git-send-email-justin.chen@broadcom.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-0.1 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 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?1766818564516024328?= X-GMAIL-MSGID: =?utf-8?q?1766818564516024328?= Add support for the Broadcom ASP 2.0 Ethernet controller which is first introduced with 72165. Add support for 74165 10/100 integrated Ethernet PHY which also uses the ASP 2.0 Ethernet controller. Florian Fainelli (2): dt-bindings: net: Brcm ASP 2.0 Ethernet controller net: phy: bcm7xxx: Add EPHY entry for 74165 Justin Chen (4): dt-bindings: net: brcm,unimac-mdio: Add asp-v2.0 net: bcmasp: Add support for ASP2.0 Ethernet controller 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 | 149 ++ .../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 | 1462 ++++++++++++++++++++ drivers/net/ethernet/broadcom/asp2/bcmasp.h | 637 +++++++++ .../net/ethernet/broadcom/asp2/bcmasp_ethtool.c | 568 ++++++++ drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c | 1425 +++++++++++++++++++ .../net/ethernet/broadcom/asp2/bcmasp_intf_defs.h | 238 ++++ drivers/net/mdio/mdio-bcm-unimac.c | 2 + drivers/net/phy/bcm7xxx.c | 1 + include/linux/brcmphy.h | 1 + 14 files changed, 4508 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