Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1814522imn; Mon, 1 Aug 2022 00:38:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR4pSwVQwZlFJ8eApBcaDNAuTSphmumnrNN/t1RYiQz7HecsvZwVv3SAV/nVUMqIRxsm3v8x X-Received: by 2002:a17:90b:390d:b0:1f2:4dbe:5f45 with SMTP id ob13-20020a17090b390d00b001f24dbe5f45mr18587731pjb.7.1659339509035; Mon, 01 Aug 2022 00:38:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659339509; cv=none; d=google.com; s=arc-20160816; b=Kjlpc6NRbhmq1Ke4qwGEOb0ivXiNDbofAMIiDjCtplHRGsuv4M4Ywj5ATcZflRUh4A JsTFZ2FKSHRYD+VkSDNJ6dK+2mHnBspbQkQKDFBPTVdeDefcQ+BPBiEhYgK4iFkPMUOM Tp/pgpCjtbb27+CSkw6/ia5mIeYuVhokSHMQIkJuGX8EEBjysIIvYYD2G6OrQ5jqhZKi G96YkQi+NnCH1JQn7RRD88bR+z2pdRdpzdzmbDYvwjA8OjN4vTGaOgyfgF0HX/B1RMdt hKlhlbMUaa6QOzqFOoC+nUdhxQgS7Ja9fVcKfpVk7OSCljzpxW4gNIwOeDLLkw6B+RRs FwAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=rD3QjUZWg+66SP9jAAlBBPHmhDHWvUYeejN9eH8mXTY=; b=MhK1ppZZDkxPtf6CLPEP2kujqwkDSHLhvmdvpFyD2MZyokbPyNPiStqkP2LpGbjrl/ 9XTgdonv4UnYZNXesCeO3tECWBXB5SLEDufj0heZp7aDxWM+xAO9lXEHXpk4Bd8zMDg8 lFQxiU5KSDReBZKRf8RLwdsRh9ciN5pgH3j1n5pISDzoljpDbJ1B7MqN+uhof5dL1ivE +31GHhsPMJo3QlM09V1VPM2UikryEWn8qdF2inl1UNmy2giYtGgK35H5GdvpnQYOlSrT up2zmZFPxZ1d1SnUibKiLJ2xzU1wELJcqKT6acM7EIoFVxJIgQYpORaPmKeNr1HUVeWK ve0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=h0LfKaeR; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l20-20020a635714000000b004113ecaadaesi12765087pgb.753.2022.08.01.00.38.14; Mon, 01 Aug 2022 00:38:29 -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=@bootlin.com header.s=gm1 header.b=h0LfKaeR; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229725AbiHAHhY (ORCPT + 99 others); Mon, 1 Aug 2022 03:37:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbiHAHhX (ORCPT ); Mon, 1 Aug 2022 03:37:23 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4E593A4A9; Mon, 1 Aug 2022 00:37:20 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id CFC2124000A; Mon, 1 Aug 2022 07:37:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1659339438; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=rD3QjUZWg+66SP9jAAlBBPHmhDHWvUYeejN9eH8mXTY=; b=h0LfKaeRHio27vUJyBgru+uQuMivEezj0vwKEe5CP1uKMATNMX9TWuTev3uxTXSFKAQHg8 LgWL3LjjwdJEK+ohyKxGfGI+pD12/rMqkHF4NfcHX7fQr2kFvwPvzC5WyHoDOTeQagetA9 62D6oBZPE8wUppXr24jRhyNb21kNdr6wMuKWXNnSl6kfJEkgqPxIXZ+PyEzmVivw/01VQo qQqGDbOc6hUSpP00Ea3KJswI78E+D56nzpN4TI24I+vAt6jFO9Iyu/K7e9BQeGNtt1OjFY /uzcDrMnBoFsLKRsnBaDrautBd/0iHmdneVaZXbnJQlVI0nJX3MlpNSkAYkohg== From: Maxime Chevallier To: davem@davemloft.net, Rob Herring Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, thomas.petazzoni@bootlin.com, Andrew Lunn , Florian Fainelli , Heiner Kallweit , Russell King , linux-arm-kernel@lists.infradead.org, Richard Cochran , Horatiu.Vultur@microchip.com, Allan.Nielsen@microchip.com, UNGLinuxDriver@microchip.com Subject: [PATCH net-next v4 0/4] net: Introduce QUSGMII phy mode Date: Mon, 1 Aug 2022 09:37:09 +0200 Message-Id: <20220801073713.32290-1-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 Hello everyone, This is the V4 of a previous series [1] initially aimed at introducing inband extensions, with modes like QUSGMII. This mode allows passing info in the ethernet preamble between the MAC and the PHY, such s timestamps. This series has now become a preliminary series, that simply introduces the new interface mode, without support for inband extensions, that will come later. The reasonning is that work will need to be done in the networking subsystem, but also in the generic phy driver subsystem to allow serdes configuration for qusgmii. This series add the mode, the relevant binding changes, adds support for it in the lan966x driver, and also introduces a small helper to get the number of links a given phy mode can carry (think 1 for SGMII and 4 for QSGMII). This allows for better readability and will prove useful when (if) we support PSGMII (5 links on 1 interface) and OUSGMII (8 links on one interface). V4 contains no change but the collected Reviewed-by from Andrew. Best regards, Maxime Maxime Chevallier (4): net: phy: Introduce QUSGMII PHY mode dt-bindings: net: ethernet-controller: add QUSGMII mode net: phy: Add helper to derive the number of ports from a phy mode net: lan966x: Add QUSGMII support for lan966x .../bindings/net/ethernet-controller.yaml | 1 + Documentation/networking/phy.rst | 9 ++++ .../ethernet/microchip/lan966x/lan966x_main.c | 2 + .../microchip/lan966x/lan966x_phylink.c | 3 +- .../ethernet/microchip/lan966x/lan966x_port.c | 22 +++++--- .../ethernet/microchip/lan966x/lan966x_regs.h | 6 +++ drivers/net/phy/phy-core.c | 52 +++++++++++++++++++ drivers/net/phy/phylink.c | 3 ++ include/linux/phy.h | 6 +++ 9 files changed, 97 insertions(+), 7 deletions(-) -- 2.37.1