Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4746730rwb; Wed, 17 Aug 2022 05:34:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR670vR9Dh34Vv16cAn8qLpNzNKjhBV36nuProEBxrY6vGDgBTil0aj9SXmnaj/nWbyoas0/ X-Received: by 2002:a05:6a00:1821:b0:52e:3c7c:9297 with SMTP id y33-20020a056a00182100b0052e3c7c9297mr25395233pfa.54.1660739669498; Wed, 17 Aug 2022 05:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660739669; cv=none; d=google.com; s=arc-20160816; b=LVaySWGNPJ/n34G71dskigsCLCKJfvkPdn4brfhpvnLWD5pYtK0sVT6k3mkk1tG7Xx GrAzh7MJ4qQ78V8sZVQDEAOY9YPi8yEBEExskp0e0tc0bvBZ9C4jK675v0uQVJ5ETB6z HOqaciOp7zQKSeC4XQD7yev03wCEfwtir2q4ZaZU0oPytc55f8dxie1BBH8vAmum/dUy dWg9qAnt8Tf+ztsxdj50dK5I43cz8HNuQuhqrU7lPlNtJLFHYjPhkRUqVtYQrdUA0qlD mS1haqH1IboyK4i062MI6BGIh3LNRdf/byRV+H+qfetjUr2avRAzfFePocCu78A7JCla G8hQ== 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=DLEYqO5dMB0zAjtR6V0ajrtcPKNGR5EeE0G8gF6uTM0=; b=AA+9YtWViRthPaB9WHa5DPd5MNWwv0HwNkSkW8XPlK88yJZIGJpQzokhXpt20sfiGG gwjpNQwvW2h6S73VjgZf6Q2crkIl0K3vJglrNyrj/hJk6D6mURObnNJu1iM3/AGYDKQ6 xh0wrzJufMyl2R9LMaXLmDvDoqcB5jpz8KRUblHDSs869dsPvUx1Tow579Nix3RtX0Vh 7mE0XjKE94AdhQGiB/5QfnD0UYYDk4UHqG+z1ZRvwoq6BA0Y+Oy/4LnXr/2qWKBRVyXz 9O71mMD2F0YWBUjwEyKh8Vmd4V0WZvgKFb6SVzSA4RBiUQgbif0BqHdVbZO5hBIwk1O1 v6ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=W6qT+1mO; 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 b9-20020a170902d40900b0017284077aa0si991074ple.588.2022.08.17.05.34.18; Wed, 17 Aug 2022 05:34: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=W6qT+1mO; 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 S236364AbiHQMdH (ORCPT + 99 others); Wed, 17 Aug 2022 08:33:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbiHQMdE (ORCPT ); Wed, 17 Aug 2022 08:33:04 -0400 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44D19861F2; Wed, 17 Aug 2022 05:33:02 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id E85521C0005; Wed, 17 Aug 2022 12:32:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1660739580; 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=DLEYqO5dMB0zAjtR6V0ajrtcPKNGR5EeE0G8gF6uTM0=; b=W6qT+1mOQ99hKPnCptPbYh+OHv54/Ya+GjeokQI6LvprJyitVF/DPewdWutXRFw5410nWo SPCf0H8c0cfKRx4i7O5HRxYUBI9ma6iVtdIXb4q1KqiQJI4t7Klw35bdsQA2qlyjVxBgYb 2T1Hc3sc5HnU4KDFrWcI7vo6Z3s1TirPc4ZqUvYJgrn7pqCcPxHgQmFoNWdsjWAYr+q5TR t7+ZI7PSF+zOL90HLHrCKtn/WqpaXLJvTaMuwrifYBAxFFaWXSbdZqW3VBco9MYtgB4t7j IqUQ1FzFTgBcKam7ydX8RnTthhqgGVmhs6rdGmh2pT/PjWtEuPfgQWBUM4X+Hg== 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 RESEND v4 0/4] net: Introduce QUSGMII phy mode Date: Wed, 17 Aug 2022 14:32:51 +0200 Message-Id: <20220817123255.111130-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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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, Re-sending, since the previous v4 was sent while net-next was closed. This is a resend of 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 as 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