From patchwork Fri May 19 21:19:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Chen X-Patchwork-Id: 9607 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1533194vqo; Fri, 19 May 2023 14:30:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Hf51aWg+3f62LQODZrwMmF8ogl0xELzv25w8xNhAPfbAn0uWlcMrfQbwJ/unWxHsuNTYY X-Received: by 2002:a17:90a:ebc9:b0:253:3b3d:477f with SMTP id cf9-20020a17090aebc900b002533b3d477fmr3035387pjb.13.1684531806902; Fri, 19 May 2023 14:30:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684531806; cv=none; d=google.com; s=arc-20160816; b=UI9mpKBZkvvEnpkCVb3urBKx10q/GnHZCUruf4p4jWMsKJ1GlpUPLMwMGPIgyqT2Lq 9dD12R493y0zpNR1+0P2F/0W7/re1nJ7dkvlGN7vQMwh4wc8pLNup1C4PnA5bxwcgbuI SaYlndzUmQW0cMFDg9adNVWebzQKG4MtS5qQsEEJNG4gPrDIAVIWt1tzrN3lYfSe/rvg RHfXmkUcVLijST9W2WSPN6DkXVf/2CfFp/z8lzIwMmDD31uRG5I7knL/yWCR5XzCh0nY tzqMnfFDsTN7wU9zUEMosTYSEWXZaIfId1g/XcWa9aZB6+lo5ZGZzm1XhZ1K3tmpqZAo iDrA== 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=2JC0QCna7RUoxejSCgQmaGfJCZmxK6BMa1hxijz8A30=; b=yHAOLhZPw5GJ7Inx25LFF/R/6T6CebGMhksjx9+jWD/qhxx18UCRrADwiS+ZAxpWQX 1x8IpBcGZUWWAd5lFiH9EnJojKBryb6XgXSDGxbQc1teoRG9OKqHh8muiesVRXo0r/Sp W9Z6f6CPNZqR8PAg9zK7nYrUyAI7zhL2mEC5Oe4YVKUrAKAkwoNG4xuUkhP+e6wOtbA0 TNCs4aLLG6DMEXsUM9DsRh2UgPWBi873hEPCAXWscHrQdf2mx4NRkBIQe0OsDdpahyEc /a5fJe8YDsgNFxoUkAPzBK4l+TV5BbqSFB2dY4GZjnE94WVOYpAOAMMWshWRK+BlD5Ch idIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=Pn6ueWXc; 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 y192-20020a638ac9000000b0052c2061447dsi221524pgd.522.2023.05.19.14.29.04; Fri, 19 May 2023 14:30:06 -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=Pn6ueWXc; 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 S229789AbjESVTz (ORCPT + 99 others); Fri, 19 May 2023 17:19:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229557AbjESVTy (ORCPT ); Fri, 19 May 2023 17:19:54 -0400 Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7FCB1B4 for ; Fri, 19 May 2023 14:19:52 -0700 (PDT) Received: by mail-qv1-xf2d.google.com with SMTP id 6a1803df08f44-623f24b7ec9so2107916d6.3 for ; Fri, 19 May 2023 14:19:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1684531192; x=1687123192; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2JC0QCna7RUoxejSCgQmaGfJCZmxK6BMa1hxijz8A30=; b=Pn6ueWXcFeAWVxkOho/7dzn+cR9u0AcYFCwxqNKzCmV0jcVZ+k46IanhzYGPZDQOWp /xhelZKSvpUsJywnrgqlMSfHCMoLdIaVRx52N1x4HvW46uuK9vW81D6wcMsPYdatF4xO 747AryACzWnlaPK+HX0qT6axJtfd6Vh3kyb5M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684531192; x=1687123192; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2JC0QCna7RUoxejSCgQmaGfJCZmxK6BMa1hxijz8A30=; b=K2mTHBW8XGQRoo9CnOHcJ8SVRHKLOJ8edG6DQj7YbJ7rFD9NKRSgzg+/xnVf80S54+ CJ7wT3bQP3l1hDLQIXLXNrZGQeEK/gJSMtDD+DgGuSAVgLzKt9gKfb8olFL6WErDCw1q 6hk9f5pxbiVod1Ege73T0he8opqpF0nXcH1enL2ep5nL1uz6nEvMsNw070hNVscB6c2/ Tkz+VTVsAkAiPLRVsOiTEC3jshee8XyfZpBBIiXgfkDQaGKScEc6YxZ38NIok6tcIQ1k BLO3rTdNEoeZhbW6f8sjvwYIUMY3fYFcXzqtcVRDbflgpYiRR9leUfY3BfmL3gjmthtJ QkPw== X-Gm-Message-State: AC+VfDxVgzJBfJ0Mru0+3CnlQLbWOGwa0bcYFwU7tPm06PdsG/tG2E5T UWB5KcQRdt+3moUV+nDVJqZcgA== X-Received: by 2002:a05:6214:763:b0:621:331b:f575 with SMTP id f3-20020a056214076300b00621331bf575mr6489198qvz.25.1684531191882; Fri, 19 May 2023 14:19:51 -0700 (PDT) Received: from stbirv-lnx-2.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id p11-20020ae9f30b000000b0074df8eefe2dsm1364585qkg.98.2023.05.19.14.19.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 May 2023 14:19:50 -0700 (PDT) From: Justin Chen To: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, bcm-kernel-feedback-list@broadcom.com Cc: justinpopo6@gmail.com, justin.chen@broadcom.com, f.fainelli@gmail.com, davem@davemloft.net, florian.fainelli@broadcom.com, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.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 Subject: [PATCH net-next v3 0/6] Brcm ASP 2.0 Ethernet Controller Date: Fri, 19 May 2023 14:19:38 -0700 Message-Id: <1684531184-14009-1-git-send-email-justin.chen@broadcom.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=0.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?1766359623843107714?= X-GMAIL-MSGID: =?utf-8?q?1766359623843107714?= 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 | 145 ++ .../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 | 1460 ++++++++++++++++++++ drivers/net/ethernet/broadcom/asp2/bcmasp.h | 636 +++++++++ .../net/ethernet/broadcom/asp2/bcmasp_ethtool.c | 568 ++++++++ drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c | 1429 +++++++++++++++++++ .../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, 4505 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