Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp458823ybg; Tue, 9 Jun 2020 05:14:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxp9hL6IKqj9z7grtLvhh0GXQbwfV/Kjc8mgQQMo+u9lgw0ftTEpL61kk60T+PQgVCmZgOu X-Received: by 2002:a05:6402:39a:: with SMTP id o26mr27210783edv.10.1591704884756; Tue, 09 Jun 2020 05:14:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591704884; cv=none; d=google.com; s=arc-20160816; b=ItGmeTqRVw3wMRnoArjgzeEH5Gze2cphXkvBm04gqSPmDOo78XrFlLLyayyuHE4wfN x1+DzRAGK2p7r8jK8VN6jua23mZO9zsNhmu1rUQnBeWd7mKAuk0ExB2P+DZ5B9nJYMnh jP8ERX9tM9T/PzNqjdWFcxaO9KJgQ/MWsS5yNL1VjIfi8m9D3fBGs2D8hfwbUKRBTtg9 7NYJYPr8IwAlj9rygnuMJVKjTwH6h2T6gZvb2/bkS6wCNev7S3B6DX1SkAGWzixEAokt iDNAYGr9lGLmkvwRlGhtNY3+/zGmnq1eb32O7TIqcfaS+pFR2soQ/lDzP/6nsksz0e77 AxmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=zpuDRhK1zSRoE+jXUm+uP0m7a7oNLUO8dxmDCTOf29Y=; b=HgykufATsqJtHS/DVhkRkUWor5E/LEB9ra9Yv+Ra9n81VS11sCUhLnJ/MKfWkTgEfQ +xf8GmNdNtKz9UGsJxdDHLRwm+ndlwpN9PomsKphKKcbTrnAWayBVDCIA/FMeDgDu2Zv AIrl/CKijJQwOw1wPgJ5b2yJoYilJU196eNnrv+SHcYoZMaNMhzxGiYJFcGLNMQULvGM 5gl3MnocmBfmaxO9KaZmLgC6P8Tp2tKrcLgEakP/i20l2VkRfz0KlCSVUyMjcpemplAu 2fYx4UiieHGqXyO5z4bAeDDzBiOq0o/Oq0dQsjbDnc9v0NK15tArDsU/vZ2u2NV1OqmQ Z6og== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id du1si15181878ejc.616.2020.06.09.05.14.20; Tue, 09 Jun 2020 05:14:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729260AbgFIMLh (ORCPT + 99 others); Tue, 9 Jun 2020 08:11:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729094AbgFIMLg (ORCPT ); Tue, 9 Jun 2020 08:11:36 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97296C05BD1E for ; Tue, 9 Jun 2020 05:11:36 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jid6K-0007sT-3d; Tue, 09 Jun 2020 14:11:32 +0200 Received: from sha by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1jid6J-0005En-9w; Tue, 09 Jun 2020 14:11:31 +0200 Date: Tue, 9 Jun 2020 14:11:31 +0200 From: Sascha Hauer To: Russell King - ARM Linux admin Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, kernel@pengutronix.de, linux-kernel@vger.kernel.org, Thomas Petazzoni , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] net: ethernet: mvneta: add support for 2.5G DRSGMII mode Message-ID: <20200609121131.GJ11869@pengutronix.de> References: <20200608074716.9975-1-s.hauer@pengutronix.de> <20200608160801.GO1551@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200608160801.GO1551@shell.armlinux.org.uk> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 09:53:29 up 110 days, 15:23, 126 users, load average: 0.02, 0.10, 0.13 User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 08, 2020 at 05:08:01PM +0100, Russell King - ARM Linux admin wrote: > On Mon, Jun 08, 2020 at 09:47:16AM +0200, Sascha Hauer wrote: > > The Marvell MVNETA Ethernet controller supports a 2.5 Gbps SGMII mode > > called DRSGMII. > > > > This patch adds a corresponding phy-mode string 'drsgmii' and parses it > > from DT. The MVNETA then configures the SERDES protocol value > > accordingly. > > > > It was successfully tested on a MV78460 connected to a FPGA. > > Digging around, this is Armada XP? Which SoCs is this mode supported? > There's no mention of DRSGMII in the A38x nor A37xx documentation which > are later than Armada XP. It's an Armada XP MV78460 in my case. I have no idea what other SoCs this mode is supported on. > > What exactly is "drsgmii"? It can't be "double-rate" SGMII because that > would give you 2Gbps max instead of the 1Gbps, but this gives 2.5Gbps, > so I'm really not sure using "drsgmii" is a good idea. It may be what > Marvell call it, but we really need to know if there's some vendor > neutral way to refer to it. The abbreviation really is for "Double Rated SGMII". It seems it has 2.5 times the clock rate than ordinary SGMII. Another term I found is HSGMII (High serial gigabit media-independent interface) which also has 2.5Gbps. Anyway, I just learned from the paragraph you added to Documentation/networking/phy.rst that 1000BASEX differs from SGMII in the format of the control word. As we have a fixed link to a FPGA the control word seems to be unused, at least the Port MAC Control Register0 PortType setting bit doesn't change anything. So I can equally well use the existing 2500BASEX mode. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |