Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp77336lqo; Wed, 15 May 2024 08:11:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUcSNY6sJ+I6PS5h+jMm46gjKvdXpipZtp2IpZBMCY9+VNVAIDWKLnnP0vLlFeZPIbbP3zrObs2mQD78UWjGJg/iOIn85A2Chadk+vtwg== X-Google-Smtp-Source: AGHT+IFx/OeFfj1aMbR/+II0yDGMWAieLXtZ2FN+qTK859CXJxTHDQRg99VmtqkHwdfiu1IKjSis X-Received: by 2002:a05:6a20:d045:b0:1b0:119c:7583 with SMTP id adf61e73a8af0-1b0119c7820mr4480079637.56.1715785878089; Wed, 15 May 2024 08:11:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715785878; cv=pass; d=google.com; s=arc-20160816; b=KXtFvMxuFP46L8cAOlDst+n46ShvaYSrhH70pQQXHdbjOk8rieEnGPoF5H/hA6XKI2 Or3JtTRLeZdwkWwKnIEb8n1Wf+ocC8tlHKzkJP3e3Syu6L5hERvGeaoTcCmDtaRYBzei cU77Lof5unVaMm68/e6bbdJx4klHrxVw+9nbsfNWnR7LoShPjIGdkTLtY4BJ456cMaDA N71JyLkxGyT3OcwAAOlgVQwhm2zCb3WVZxNezdsaTMpbRfho+qEz9pM7/tFAWPFElAGT +0OQiTFl95gaaG90Fjx7WMcstSLUfE+aF2/Of+5Sy+mnkqlRJPY6B2M6mxa5vAyD2OVB ijew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1e9w9yqkxxgBKEE7I+MvdChO+ZAZRqAgVmll2NsjAr8=; fh=fx5ZvzLSbr+WQ8qx0J/pKWevT7Bg8xq/40eEiTP7DF0=; b=SmCBbTWBnW41j+JFB6BrFlKyPdm3ipBUM4f3qWP5g5wNfHOLknlgScVvYX4fIdDpcO W/BGg9noQN+03t3u7Vuj+O2ZcqT3/XNSKz8bfF39nkIlSUc006HtXYxl+X0oXyEeYBH6 sKg7ImjU74K4PVLyK9jgUs03jEbR9By6vGHi1KzAGX9nPrFKQyOOj1OVB7lGaH95N/5U pYh3XRI8L5fE0LDm+SU5qawsqyO6jJ+T2/2+IeUOUJedB8UUBKtm2h+wTW5Iz+oFtMbG JtSOyGAVQbyaMOJpOBT+A5xN5GGfPYeHbmDkq8efi2LCKvRKD+NR1apAX7caK/Nheb4B jE+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=Movt4rzK; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-180050-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180050-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-634103f6f1fsi13477027a12.322.2024.05.15.08.11.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 08:11:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180050-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=Movt4rzK; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-180050-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180050-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8CC56284926 for ; Wed, 15 May 2024 15:11:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A3AAF155753; Wed, 15 May 2024 15:11:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="Movt4rzK" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37B185DF3B; Wed, 15 May 2024 15:11:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715785868; cv=none; b=lJfJAFmas6usBkBoiucyUJKkYoeFTkVzC0/hd8RzkGWjXwSl8lr89DB8HKEgbLLR3mNtxWEG3hBbfnFV0RQuM/AN6gojsCtOHFJSUUJo4cYQ9ipKAsgs+GQTi9ixslO/wajJVOAypSwHCOU7M6C5Q8DnUqvpHvgz1aaSoLVk68I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715785868; c=relaxed/simple; bh=29PrztJZldYF2W2DVZi/w2+hJZPuUm3z2k2Ch5n3sjw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=P5Lq4H2dwq+mwY6oeIq+zAqikVbAE+lTXWydauBGMEQUU3bUj35kIPm7ZByejJZQOlVbLthVToMLpAtrmvksYgX4roj03LkMJkUHQq4KHP8EuCgkyQG30qVTCQjB21ZKXzmUW71VnAMWPiqZp8cPxumQgYJ18RnwhdSeR992WOE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=Movt4rzK; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=1e9w9yqkxxgBKEE7I+MvdChO+ZAZRqAgVmll2NsjAr8=; b=Mo vt4rzKoVlCN2wfo++WXtU3LCg5ZuCVBl1CD0HbT4ueshfpTaWzmLafUQ8HNKF9GgCgC8Z6uanupSy jOWUW2Siy8fycsiebaA8l0b4E6xw24SBYbUZGecTXC/RamsY+mF0WQLCj0lQwrHrGYrnd5XQYAq8e ocA70c1n+DAUU0c=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s7GHL-00FSaI-2I; Wed, 15 May 2024 17:10:51 +0200 Date: Wed, 15 May 2024 17:10:51 +0200 From: Andrew Lunn To: Thomas =?iso-8859-1?Q?Ge=DFler?= Cc: Thomas Gessler , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, MD Danish Anwar , Ravi Gunasekaran Subject: Re: [PATCH 2/2] net: phy: dp83869: Fix RGMII-SGMII and 1000BASE-X Message-ID: <7b951904-6193-45f1-8878-7bf3ecf83b74@lunn.ch> References: <20240514122728.1490156-1-thomas.gessler@brueckmann-gmbh.de> <20240514122728.1490156-2-thomas.gessler@brueckmann-gmbh.de> <38bc6947-391b-478d-ab71-6cc8d9428275@lunn.ch> <338669-229a-5eac-3170-3477e5ae840@brueckmann-gmbh.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <338669-229a-5eac-3170-3477e5ae840@brueckmann-gmbh.de> On Wed, May 15, 2024 at 10:15:33AM +0200, Thomas Ge?ler wrote: > On Tue, 14 May 2024, Andrew Lunn wrote: > > On Tue, May 14, 2024 at 02:27:28PM +0200, Thomas Gessler wrote: > > > The RGMII-to-SGMII mode is special, because the chip does not really act > > > as a PHY in this mode but rather as a bridge. > > > > It is known as a media converter. You see them used between an RGMII > > port and an SFP cage. Is that your use case? > > Basically. I would call this an RGMII-SGMII bridge. A "media converter" I > would call a device that changes the physical medium, like 1000BASE-T > copper/RJ45 to 1000BASE-X fiber/SFP. > > We have this chip on a daughter card with exposed SGMII lines that can be > plugged into customer-specific motherboards. The motherboard will have > either an SGMII-copper PHY (this can also be a DP83869) with 10/100/1000 > auto-neg enabled but without MDIO exposed to the CPU on the daughter card; > or an SFP cage. The SFP module, in turn, can be for 1000BASE-X fiber, > 1000BASE-X-to-1000-BASE-T copper, or SGMII copper supporting 10/100/1000 > auto-neg. The SFP use case is probably not too hard to support. There are PHYs drivers today which have the needed plumbing for this. Look at the marvell10g driver, its mv3310_sfp_ops. qcom/qca807x.c: qca807x_sfp_ops etc. Andrew