From patchwork Thu Jun 1 22:12:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Chen X-Patchwork-Id: 688427 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A144DC77B7E for ; Thu, 1 Jun 2023 22:12:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230001AbjFAWMr (ORCPT ); Thu, 1 Jun 2023 18:12:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbjFAWMq (ORCPT ); Thu, 1 Jun 2023 18:12:46 -0400 Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F04EC18C for ; Thu, 1 Jun 2023 15:12:43 -0700 (PDT) Received: by mail-qk1-x730.google.com with SMTP id af79cd13be357-75ce1196bd7so130609785a.3 for ; Thu, 01 Jun 2023 15:12:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1685657563; x=1688249563; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=04RV64gWIiR1gkrzF+wdCcRtjMhjyTMTRhGQpNrGIxc=; b=RvrIHUwfq3Ty9wT80FesPQSdjZaqBf+7ikhp+hsRibAlZA1pWlbA8YGqBF728r88GT xHzwanS0BJgHA90yPKDzfCecxG+BJZj2SdCANsSTMIf7b4s7F75VAhipckH1Zoyzbgoq YWQvXkN6HrNAndCEWISYAAt5D95K3TSl4tiFg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685657563; x=1688249563; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=04RV64gWIiR1gkrzF+wdCcRtjMhjyTMTRhGQpNrGIxc=; b=diYjQubX8tvVaN+Ql86bm8sua1ipfx6khFQukut35Q5/scxV4bfGuXUBl1uBRUckKo BofaSxBvQz+xFOMO0xV4doYuXfq+G2Z1K6yL5APl53Z+tqU/hCvaI5yVfshrGjsD/sYd FQSPSEXcs/NseJ2MhS4Mg7AW+8eRpAyAj0s2xZsiu637fY5Urf5gr0EBh0IsFgkeKS6r t650WgDebd1lv/EewCDCNAx+SgrrF65QfMxpiAZplRtKkbJM2BBvisJ724FvgOtsAK11 0LspuBmb0nwBY0lCRlGEIHeZSBHa4+vmD6rykThovhDYSgQJRl1W8htdYwthE+E5RD7i YnMg== X-Gm-Message-State: AC+VfDwEnh1DRhWWC0czGXJOso/xEGzaEiRW3IXBySuA7pT7ZAfBlRC9 MdSsXgF6drVdsTb+H5c+oDm18BYGEWl85MILI2pw9A== X-Google-Smtp-Source: ACHHUZ4sMymG/6wqFok/B8wPgYeFN3UUAWC0zHJG8jj/vUMPf58EXxUDVCFrIPRmIsI5sXC5z02Lng== X-Received: by 2002:a37:849:0:b0:75b:23a0:d9d1 with SMTP id 70-20020a370849000000b0075b23a0d9d1mr9439089qki.39.1685657563047; Thu, 01 Jun 2023 15:12:43 -0700 (PDT) Received: from stbirv-lnx-2.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id f5-20020a05620a068500b00759554bbe48sm7180430qkh.4.2023.06.01.15.12.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jun 2023 15:12:42 -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 v6 0/6] Brcm ASP 2.0 Ethernet Controller Date: Thu, 1 Jun 2023 15:12:25 -0700 Message-Id: <1685657551-38291-1-git-send-email-justin.chen@broadcom.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.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 (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 | 153 ++ .../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 | 1467 ++++++++++++++++++++ drivers/net/ethernet/broadcom/asp2/bcmasp.h | 638 +++++++++ .../net/ethernet/broadcom/asp2/bcmasp_ethtool.c | 568 ++++++++ drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c | 1393 +++++++++++++++++++ .../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, 4486 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