From patchwork Tue May 23 21:53:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Chen X-Patchwork-Id: 13253050 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF43BBA50 for ; Tue, 23 May 2023 21:53:57 +0000 (UTC) Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDB68C5 for ; Tue, 23 May 2023 14:53:55 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1ae6b4c5a53so1321305ad.2 for ; Tue, 23 May 2023 14:53:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1684878835; x=1687470835; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ug/6iWbdNe7y5AfI+KQMNL353AGCcznhZcmpWDm/Ccg=; b=g43tBx2jdZ0CWsw+AjJy1eBBA5DFil5xGrGzBYT0t6AYYJjokqDu6Jvy+iuCVAAQ7q FJuvDA+Ng6xH1cHMnQKuZzzzGTt5eIuOLBkgrgBAt8jL4frtiYz/+ZFCOZfTa3GZbzVD 5ncq+hWqkEU8JuDEQ3aiHnoISxFVsQLb1LKO0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684878835; x=1687470835; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ug/6iWbdNe7y5AfI+KQMNL353AGCcznhZcmpWDm/Ccg=; b=HN03Wd5prHQ1g5wbnTj3s7eEQijujXQhw7T+v8Kmll7hgMEaShimR6an6g9j9KXixS Mp72G6c/V0hQFzAwc5YrDCVUqMKIVnmiNDjP19AEY2OGZjZTFQ59g8IYjTjwKtaavtll XI9NazCTQh4T7zI8Tl7DKhQViLyxA3zDHyxtgqkIC2jm9cZyaxU6K/0yScjsjvISmcT3 Mm2w+3Q3K56ySj8w88w6Oz4kyZIM1YzXnNjjqMJqOlIHebWi/TPuqkF1LWvx9vj1wK6/ S2OywxVQeRl2IDnZDkNtOMKKhoeB8X2X6dhdIS5heZvKEMDfwpWpHeh3blw4Ptpz8Y5P jtTA== X-Gm-Message-State: AC+VfDxpHUXcI1XBbLyDj6sjTYhAmiUY6MATg+tvKTKPvg0Nv0bsJNHx ylDHJBOUDw8yMX+1gVRtsU8TyBnCSnLu07Zj1a7a1+AgitefRlFu//jfw2c5af90h9jE8wDpUOy 3yRYGxEJaTteNSv61wVGXuDsgNWb1QvwrR2htWPI/GktO9y++GjLyynM5NvJdxmGADlgRV4v0uU DMw2ZTgQ== X-Google-Smtp-Source: ACHHUZ42Wkb7sV+bguY1Xo090DTdbHI6p7/Omrv6xI+efSK5ORV8yUPh73qX2xrlph6y6k6/HVgVow== X-Received: by 2002:a17:902:db07:b0:1ac:8dae:d842 with SMTP id m7-20020a170902db0700b001ac8daed842mr18135225plx.46.1684878834685; Tue, 23 May 2023 14:53:54 -0700 (PDT) Received: from stbirv-lnx-2.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id e4-20020a170902744400b001ae62d7cb2bsm7189820plt.199.2023.05.23.14.53.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 May 2023 14:53:53 -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: justinpopo6@gmail.com, justin.chen@broadcom.com, f.fainelli@gmail.com, davem@davemloft.net, 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, conor@kernel.org, simon.horman@corigine.com Subject: [PATCH net-next v4 0/6] Brcm ASP 2.0 Ethernet Controller Date: Tue, 23 May 2023 14:53:41 -0700 Message-Id: <1684878827-40672-1-git-send-email-justin.chen@broadcom.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-0.4 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 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: X-Patchwork-Delegate: kuba@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 | 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, 4504 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