Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1286221rdh; Fri, 24 Nov 2023 08:59:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IGy2Bzw5tImqynjTcM59KEG9zj5CsoDeIfY3iy4inSTbyq4ltplQPbQPBUv55y5nsCQkkT9 X-Received: by 2002:a17:902:74cc:b0:1cf:80db:72d9 with SMTP id f12-20020a17090274cc00b001cf80db72d9mr3679513plt.3.1700845187370; Fri, 24 Nov 2023 08:59:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700845187; cv=none; d=google.com; s=arc-20160816; b=xxSmCrKhbQwBfPZjQ37XbZYZpKGptoQ2zWx7534V1v0W5vSr4QgYxXAHSGEW2vgmTH lMxlj0ZFMveE8JcOJhD2kjQkI1PE/zlzs3wKyKjCsuee7vG1F+p620PdI1B989VOKbn+ ni/dMUbw3XZjXFDtWMdz/IzjeqxG6dNw9YNLFbUzidRtaJtvsB/trRLMQFPK3v6RbqkY Li87N1v3dop6WG4/ilMFePfcYoRWt3C0ovzQbLUuDvir/1TeiKXJvMPzgw9XVhVfJeIn wTIo/IZVPpcwZ/eGFrfMH2F89E++ZRzFJN7+6blDI6Pt/6Chne6LgYHDMu/dubimm/Uo Q6gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=v0Guy2IikSc5MeYOJiXDfxaB0G9vo7MgKvXYX5tKlvo=; fh=y86mxAQs0ABi0cg4rfpW10SHG5t/O932C+pkd4o22yk=; b=y4uMdPNXzlonw5380fu6pyC1vsj9Mio/eIkXlHO4ZkIc+SeSNpii6gLCGLRsfh2pG7 FghAHaRViYDdMn9i4132rQ3iYa6BRBBYS4DCyx7X/6QultPsqXp4pMm9qYz9MF2dfBRe fdR8gBskZ02gKRkQMMxyAj46HqckP49d8f4rBt7qaa5qiiA5kU4FVSA36kFN382O1piB 3r0wLxkblCmdLF3Jj5wW6LF7mAUANzbx6tLNeqp4iVnfUpWhpLzkvk8fnOBHeniVgRxH GLrf67GD46aEZDmJWBUbwZeztV5vVN0klnEiOB5LamwHCULoDb00RqldN3LYb3ZJA9vP ZgqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sartura.hr header.s=sartura header.b=D5dJfcqb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=sartura.hr Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id z6-20020a1709028f8600b001cf8b399006si3632946plo.189.2023.11.24.08.59.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 08:59:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@sartura.hr header.s=sartura header.b=D5dJfcqb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=sartura.hr Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 8AC6F8047506; Fri, 24 Nov 2023 08:59:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231228AbjKXQ7Y (ORCPT + 99 others); Fri, 24 Nov 2023 11:59:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229741AbjKXQ7W (ORCPT ); Fri, 24 Nov 2023 11:59:22 -0500 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E4AF173D for ; Fri, 24 Nov 2023 08:59:27 -0800 (PST) Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-2856cdb4c09so1384236a91.0 for ; Fri, 24 Nov 2023 08:59:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura.hr; s=sartura; t=1700845166; x=1701449966; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=v0Guy2IikSc5MeYOJiXDfxaB0G9vo7MgKvXYX5tKlvo=; b=D5dJfcqb8mc2kWNs4GeR16/WZyxftYQwMtDG84BUD4zhCLFSCPIvjBpyQsp/ZhzJAV +umFMbNx7B5PZYLdSrk/9k9m2wby2qqYx+tIfHVr0fTEkG0LNrZd3QRnnzNMEwsVxsx3 B7raN8eqf6kH4+Ci32JD3GTUxHZvOwt+4ducbkxukE0yqgSeOBq8iARqqiid+/Ir366w q0usQJIvAQQQkso/wTqiC/rCBQpuwXKF2+sQeysInn6vtNgZ1ojYLlURasPUmFaqopO6 K7xkB5wd+Ji/6IQ3rDuHFSLErKwhI+0u6aJgDOIXzsqdNPrrn2DBYZlJGerEuRDJG8V8 v6Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700845166; x=1701449966; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=v0Guy2IikSc5MeYOJiXDfxaB0G9vo7MgKvXYX5tKlvo=; b=bLKJ2IBeoNWqUvzk2gSQ1HYIshyWAh612v9fW+xvxNUxtD/bANh9d1GGihnZRp9BPf tpSj7IZshs/zmJfDBvBcKQfm5tzkS5Df7jvNX4mJ8erVghlODDpbpGVQ75rXlntKSZRK QPW05d80RMgsqk1q71Yy+AW1bgKXchMBJc9Fp5fAlr4qoK0zsSppHlwetxwgxb9SeTYo j2MZMRDKOqqU3bFsywT0O71oRLSLs1klPvKExpFVo+IImK1w8zA3zqh428ncULhumc7V MAIfgGY872fZNOQH8az0rKcEA0+pW1wzWy8IypDeyTvgVob9nBHnzotN8HI7irJ0+FQy IezA== X-Gm-Message-State: AOJu0YzqRheM1tKnnZZ7aV2DpwmPRpF8RpFvfZCnD3cNQrDP0KVheroK c1//NxBD4CAgEVqI4p8z+D5E0gI4XPf3xmxzTth99g== X-Received: by 2002:a17:90b:1b07:b0:285:9d0d:7e3 with SMTP id nu7-20020a17090b1b0700b002859d0d07e3mr1013190pjb.38.1700845166588; Fri, 24 Nov 2023 08:59:26 -0800 (PST) MIME-Version: 1.0 References: <655e4939.5d0a0220.d9a9e.0491@mx.google.com> <6a030399-b8ed-4e2c-899f-d82eb437aafa@lunn.ch> <655f2ba9.5d0a0220.294f3.38d8@mx.google.com> <655fa905.df0a0220.49d9b.7afd@mx.google.com> <367c0aea-b110-4e3f-a161-59d27db11188@quicinc.com> <4d159a99-f602-424e-a3c1-259c52e4d543@lunn.ch> In-Reply-To: From: Robert Marko Date: Fri, 24 Nov 2023 17:59:15 +0100 Message-ID: Subject: Re: [net-next RFC PATCH 03/14] dt-bindings: net: document ethernet PHY package nodes To: "Russell King (Oracle)" Cc: Andrew Lunn , Jie Luo , Christian Marangi , Rob Herring , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio , Heiner Kallweit , Florian Fainelli , Broadcom internal kernel review list , Daniel Golle , Qingfang Deng , SkyLake Huang , Matthias Brugger , AngeloGioacchino Del Regno , David Epping , Vladimir Oltean , Harini Katakam , Simon Horman , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 24 Nov 2023 08:59:43 -0800 (PST) On Fri, Nov 24, 2023 at 4:16=E2=80=AFPM Russell King (Oracle) wrote: > > On Fri, Nov 24, 2023 at 03:44:20PM +0100, Andrew Lunn wrote: > > > First Serdes mode Second Serdes mode > > > Option 1 PSGMII for copper Disabled > > > ports 0-4 > > > Option 2 PSGMII for copper 1000BASE-X / 100BASE-FX > > > ports 0-4 > > > Option 3 QSGMII for copper SGMII for > > > ports 0-3 copper port 4 > > > > With option 2, can the second SERDES also do SGMII? You are likely to > > need that when a Copper SFP module is inserted into the cage. > > The document states "The fiber port supports 1000BASE-X/100BASE-FX". > > The same is true of Marvell 88x3310's fiber port - it supports only > fiber not SGMII. This is actually something else that - when the > patches for stacked PHYs mature - will need to be addressed. If we > have a 1G copper SFP plugged into an interface that only supports > 1000base-X then we need a way to switch the PHY on the SFP module > to 1000base-X if it's in SGMII mode. > > Some copper SFPs come up in 1000base-X mode, and we currently rely > on the 88e1111 driver to switch them to SGMII mode. Others do want > SGMII mode (like Mikrotik RJ01 where the PHY is inaccessible and > thus can't be reconfigured.) I can confirm that SGMII mode doesn't work with Option 2, I have tested thi= s a while ago with Mikrotik RJ01 (I think it has AR803x, but its not accessib= le as you pointed out) and it was somewhat working but in half duplex only and dropping packets. Currently, SFP mode is checked and only 1000Base-X and 100Base-FX are accepted, otherwise the module insert will return and error for unsupported mode. Regards, Robert > > -- > RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ > FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last! --=20 Robert Marko Staff Embedded Linux Engineer Sartura Ltd. Lendavska ulica 16a 10000 Zagreb, Croatia Email: robert.marko@sartura.hr Web: www.sartura.hr