Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp526518imn; Thu, 28 Jul 2022 07:58:59 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tRN8XxlV+0ALevrc+/pslKwbPOSspxhRARt5WUbPcDGqrqgbpcYqoE957teMpEO2O/LXW9 X-Received: by 2002:a17:902:c102:b0:16d:bc02:4c3a with SMTP id 2-20020a170902c10200b0016dbc024c3amr5752836pli.0.1659020339576; Thu, 28 Jul 2022 07:58:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659020339; cv=none; d=google.com; s=arc-20160816; b=0nsZXXmVPy9Wx2I3j5YX2HZ5hDnPPFA08soQpfhRX1bzSymmNJJCDpejf0QBmMSOlg FHllPnX4Cpmu5XNx9xvukAwhVBkDIxXE5n55JbXNT6rwKPvdm+phdfYGZczxiYtKaZ6N 4PO4z4hJXgASFOisx0b7uR3PX1bCqcKcqnlz9VJcr1KE8kqGPuf3NX5Q+uitRP2pbq+N 2e3iizBYS902Qze1dr2ex9wH6NvBpbW/fhiqmYuxKGu/TagUPoSlh7tRLAXMKJT2i88d +vTdXYcV+iRyF2F6TX4U6VlgZdJsF7kFA9QOTKgO9XazzB6DVSU2AY33WDDgxdiQImU3 8f+A== 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=w9gjrFfJNDyi+UVEtu1C2UBFOyncoWXQkKZtz3CZtE8=; b=Jvs6N26fXOocZO5YDmeabyv3r7ptKZ0FH9h/HrVQ9LrczTMQAqAFxcqZAfu/h3hB3y Rg9gJARccPSHXbLK3T2fVLxk4zDmipiRYrQLQikLm2GA9fcfGzI5xA9ntr1u1A++P9js PyGT6JOyDFd9lWzO5sr0tMqhY9R6bJpA2Nu0r9heVxKokaG+fInhBEQWY4bHXIsAeIqX arrw9x6yf2JpdVAtHPGm25FlCb3tX6hHJI9rOAefeEWMGbAUMXOTCRZs1mc2T3Eo+ulu JEyMGi2I+XGxuxVQ1uPbylMmE21Yi+tNOMMMPwhyERfQ0YUz979C0oUBwtMsPqTbt7pg +/ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=o3sxx7HQ; 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 v3-20020a631503000000b00415ed5db5absi1180638pgl.772.2022.07.28.07.58.43; Thu, 28 Jul 2022 07:58:59 -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=o3sxx7HQ; 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 S232611AbiG1OxM (ORCPT + 99 others); Thu, 28 Jul 2022 10:53:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232245AbiG1OxE (ORCPT ); Thu, 28 Jul 2022 10:53:04 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::223]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57F956050B; Thu, 28 Jul 2022 07:53:02 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 94FB260009; Thu, 28 Jul 2022 14:52:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1659019978; 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=w9gjrFfJNDyi+UVEtu1C2UBFOyncoWXQkKZtz3CZtE8=; b=o3sxx7HQE6bPRAFefUy9+Yi6mBcI36Wp00NT/2+0A9NLCgpsN7gC899XWtjYi3SvDulVPY q9AsRK/lyCobDOktBquxGBLOs6MpT9VIgp1hQ2N/nWfBDtuKNzy2Wliv12CICDJ0qZFf74 AijxQ54dJhWAAIjRBgpfYEy+sOaM9GzHno52Tew4dRPd3cziBCEGQdxtfB0JClCqI83Qxq jipUJPKweHtp7ZD2iLUmUrKHk+gs+R0/V80xSzkkaPBELItM8IJbAeK2oLJX+IhCYzCkZ1 OhPIE+NNa+DSn1cPEDXhEUUxPmfS4H+Nmnw30jiN/CRSDUrB0r/WA9sAntg2Fw== 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, Horatiu.Vultur@microchip.com, Allan.Nielsen@microchip.com, UNGLinuxDriver@microchip.com Subject: [PATCH net-next 0/4] net: Introduce QUSGMII phy mode Date: Thu, 28 Jul 2022 16:52:48 +0200 Message-Id: <20220728145252.439201-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 V2 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). Best regards, Maxime [1] : https://lore.kernel.org/netdev/20220519135647.465653-1-maxime.chevallier@bootlin.com/ 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 | 5 ++ 9 files changed, 96 insertions(+), 7 deletions(-) -- 2.37.1