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: 684215 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 19D20C7EE23 for ; Fri, 19 May 2023 21:19:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229731AbjESVTz (ORCPT ); Fri, 19 May 2023 17:19:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbjESVTy (ORCPT ); Fri, 19 May 2023 17:19:54 -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 C5E021B3 for ; Fri, 19 May 2023 14:19:52 -0700 (PDT) Received: by mail-qk1-x730.google.com with SMTP id af79cd13be357-7590aa05af6so400185285a.0 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=VK4g71/PnJQnc3j71yOHxiHzDiP/hWUAH2CqZaJPANY=; b=I5E52bIQ3N5oJ7PJADifeUMY6PdKNJ4AufC0G/IttPwp8c/Y5s/WZWpYCWSvqfD0Hp 54d+9x+j+r7Bu+3o28JD4mFb6PaxgVNPS4k4JDenKFZ7B/CKmho8zx3mWrhoyxHb2Tco 65utqKX1WZCtz7DXiz+s/f2TF+P+IKr3Ncf9k= 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=VK4g71/PnJQnc3j71yOHxiHzDiP/hWUAH2CqZaJPANY=; b=PO4478/LkU0EmKx2H6cPxhHpVWqX6AFrLEbaDJIEnzi1xPWmoH6xmaRvryHS1PO/DU R/V8sSPoSSowiOHJAgXuGooKYLDZVwZ7h/X1PSzhyhwEX68SUhybtQFZzk8eLDFb3mNk z+laDvaZsDdY11qPnEQH/K43X50gtBB4UOZXJY7YJ53v7/HYdmWfOqNW8fa5gznAr37t G1/+lOHDKuNtm5Hh1mDRLO9Qqz62YwuCDzU8xNVQJk/lh5Fwb68cSGOj7sZ6rx9qz8X4 mFya58i0N+siDheR5Pu7LEPqqTf2/ncyX7qaaTURSYKGUt7DEdg7fBtB1O/Iu6TBbYMB HFSA== X-Gm-Message-State: AC+VfDxp1KeQ2BCnwCVANlcaqVsnpR6VAV0RqIPpYrWwSlueW71BGpuA JrKGrPC4gxydgRIhdULXySP1qA== X-Google-Smtp-Source: ACHHUZ4EHOpi+16FJbiDnqt8k5Jw/ktGuuEmvgukFXKz6ntOxpbzy/xC/ONztYjud1CsGC0OqRGX7Q== 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 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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