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: 13254598 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 178D58826 for ; Wed, 24 May 2023 23:02:11 +0000 (UTC) Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F7C3A4 for ; Wed, 24 May 2023 16:02:03 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-253570deb8dso630147a91.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=JquuZF3MFmDw1zkLemB2bYQQXyXqOutlFFBFv345Yu4=; b=EdAotKNkXDa7f1TwIU43dW/MVxknhYFbn7fSMhIYJtayIuPY8skxFJmPiIP6sraoZj A5xJZfdp5TMXlLFCZHkt/wQjcEwY0zV5lo5rCrHVXnWn619sEIp3PMK1bE12DGoh1jyM F1+YJzChmtSDaMK1SB07Jxy2za5TtBNz0Gbzk= 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=JquuZF3MFmDw1zkLemB2bYQQXyXqOutlFFBFv345Yu4=; b=KoLPSMR//FVi9nEZSKOvO0eGm4AX/NDEtoiObJOoCZKMWZv8tY7uJTnlS2/MLg9axS +KsAvl4yIspdpq/JzHv75OwQYJGOdYz+2Ew1XzfPit/TjlCTphQSSb67FY0qY8x1Zku+ tnc9kv5rA4jaAcYwy/8om1W2Jehpp1j/BX60eO8FpRF7sVSs8K4Im1WaSARZufNMa1Xs sU/zl5FJVb4H6mMvTPahk/GQS5y2zqJNQIcU5IwmUe4vanF/FBEYBKP8kXUHdYWC92f2 J+WHUx0C1+dnNFE6aWX+e1U7FatYwUxMRBkglxVAE6dOnpro3FQWZqUGMG4Xc8W96id7 X+Bw== X-Gm-Message-State: AC+VfDxRI4UvFNEhISYhrOE8BMqLOBHmy9feS/7qOmzA9bGPhrsYw+s5 nkVvY99HjJO331rjBEewb7CXsPgyo9/V3mW+tbDv622n6G62w7/Z8yszHTMLYG0kR35dTRY5Gry aZAsWQ7HobqaF2TsGJ4ApW1zVHyt13HxGC7/n9KUsEuh9nQCiFwEnoTFWIMwYZnKl+jTIa+XK1Q ULDo4FyA== X-Google-Smtp-Source: ACHHUZ5E20wX5MTYNkaH3f1zMuKCDW2OZMfabwftQmomDUaXezExGDWEHoY5nJmRgXLg3QDGpFD2Ug== 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 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 | 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