Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2918517rdb; Tue, 6 Feb 2024 01:28:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IHonjXxv42WvdWieF7g1kMMuVselw/wvCooQGhxw5yKTHjLbvZDs05Msvz541QVGaVJmpO0 X-Received: by 2002:a17:906:4e8b:b0:a37:687:275c with SMTP id v11-20020a1709064e8b00b00a370687275cmr2207069eju.20.1707211706055; Tue, 06 Feb 2024 01:28:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707211706; cv=pass; d=google.com; s=arc-20160816; b=L/NYEvdA1EDSFjz9JeB3C9e+7y4eZp1N2zbcqUJDig0IXjh4O1WYe88aMIfNs5pOAN YzrNX6nuJUlRwz9pP3kXyctcM9WeQ46MEbHPm531UqNeV2ELsfRy7ivStUuBYVdg4rsE K8I6TnCN2UUXrM+55dWVIDxSORsCq3auHUXeovEaSzBLPPQIdsGXeVeIso3RGboY12mh u9ZkkzqLvai2gjerNvOgVKy6DZEWd63FBCdXYxbwJazGd4yksf2fRpauYErmDjxJcfWa yZLuwa69Y5I/DlGMjWlJsD/cCbEhV4hoBkHo1ApS+gtllyCZ5LsuJ1/JBeTdSZTBoxxm Mt5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=JcpXEMS5q8X3MrjViIpcSnvi7m+8n2iVZHzQTU0Azm4=; fh=NCFJ7JWVKzBpr8O7z8zGCUz0zf8kvUrn/AzvJkCz4bs=; b=f+tRccnLDbOZ/skZc6SRwC1YxSFWREcuqdubbTFt/KupY99pf78f+JsCjp8SZfGkC7 VgfbtLtu2WqvU4XvuMSXUN+C7yslCA8oBZM3TOgqsmX2/qiLsJuPhVQSnUz6a/WlbNsK fJasgaPhRMFq6WwlUBsn1YypsPWb5ydKK9KUOnOHe0bDB/bfm23Xzo7EUI9Bx4rxpyJL oiW07szWMUDXtZ09wKMKgft3zJ7ynbVJQTh2HRBSZqG2hjRch6y4Cv3Pmd/nj+5LCJxm 8co+6LKuBhVa2yv6FqH7J4XjAtIasrHZwCy8hyDPLjfBbmSqbuZwUXbqcKm1tBKClR72 aQ6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ZuUd+Fue; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-54588-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54588-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com X-Forwarded-Encrypted: i=1; AJvYcCXAxhkAvQMaZX/kXRnjIKn4eAkRGcV3vFo6iIztK+vZqvqCnhbsSfwCftMLKLmRF+62lfhn6adKcR9Q6A9x0xRmCv1PpaMd9vx4qyN6Qw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id mj5-20020a170906af8500b00a36a0bba8d0si887632ejb.858.2024.02.06.01.28.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 01:28:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54588-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ZuUd+Fue; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-54588-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54588-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id C65301F24855 for ; Tue, 6 Feb 2024 09:28:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80D7312D15E; Tue, 6 Feb 2024 09:28:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="ZuUd+Fue" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 2155C745E0; Tue, 6 Feb 2024 09:28:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707211692; cv=none; b=VBnA6vU6bEjYHI1MaiRxLq7JDFT9RGHquWEAgmiOlS1uDJtBFoiPRraFqaSGrK5APsoO4gcXOTXcM0URAubgNqdDAQL8bI04+914Pp+QamX1alVJQ+In8r58EyPiohgwa+ZIMmqBRGhdbms7OyZuOKNdOR9pn1S89qQk8mxnHEw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707211692; c=relaxed/simple; bh=A4GC26ZvMOKhodYJDqUeGvS/fHc7oz32Zo3RglFVqy4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=dMEvRoAckQDJCQplFX8jlxQ03fJT0TS7KPwQnc7Ooc1sxVSqJtvJm0y24u53mfZTYA/I8/aG8BcIOGZCg8jf2Fz7FZ6Z6TJOU5GMenMzc2BIFYJWRUEs+zP+TeEonn8NOpb/yrvMyKngnnNU+oyUlHTSq589e3I7oqik8+SXDWQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=ZuUd+Fue; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1707211689; bh=A4GC26ZvMOKhodYJDqUeGvS/fHc7oz32Zo3RglFVqy4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ZuUd+Fue2DTUYn81nMSnY9HrH+nWCVRoR4LnDIm5HmZK4+fsBHcspBXbsP9JyW0u/ X2Efdk2AC/zoERqxDDw5O3wVfjcBXpBOyfYUYLQgGtRxD5X1WRXpUbkNtTmPtRYaBA buGg7spyDambfAq4WTT+4YZUx/a/OkPxNxlN/bGL8Fzs2FUURqOY8eJU1q/NkYalNu z/O6E5UD7zU1Vyu265Ve/LHqNtwtUdOo26k53cX8HMf1D8hqTh06YsKdm67l1/uFsG m1jst4zG6jgS+GLeuApS2U6zjEHcSH79aNtN665AEmLZItO1Ko0Jaglu6/9PrLQJvP ghtVaIqIAA2kw== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id D2D7F3782039; Tue, 6 Feb 2024 09:28:07 +0000 (UTC) Message-ID: <02f4d6ee-e9f6-4184-a125-091f45bae54a@collabora.com> Date: Tue, 6 Feb 2024 10:28:07 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/2] phy: add driver for MediaTek XFI T-PHY Content-Language: en-US To: Daniel Golle , Chunfeng Yun , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , Qingfang Deng , SkyLake Huang , Philipp Zabel , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Bc-bocun Chen , Steven Liu , John Crispin References: <3251ac3db1a739e0c18ded0a824edae981c1e2df.1707153425.git.daniel@makrotopia.org> <2972dfd0b9ca48174fbf49b9d162bac1a12b2331.1707153425.git.daniel@makrotopia.org> From: AngeloGioacchino Del Regno In-Reply-To: <2972dfd0b9ca48174fbf49b9d162bac1a12b2331.1707153425.git.daniel@makrotopia.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 05/02/24 18:29, Daniel Golle ha scritto: > Add driver for MediaTek's XFI T-PHY which can be found in the MT7988 > SoC. The XFI T-PHY is a 10 Gigabit/s Ethernet SerDes PHY with muxes on > the internal side to be used with either USXGMII PCS or LynxI PCS, > depending on the selected PHY interface mode. > > The PHY can operates only in PHY_MODE_ETHERNET, the submode is one of > PHY_INTERFACE_MODE_* corresponding to the supported modes: > > * USXGMII \ > * 10GBase-R }- USXGMII PCS - XGDM \ > * 5GBase-R / \ > }- Ethernet MAC > * 2500Base-X \ / > * 1000Base-X }- LynxI PCS - GDM / > * Cisco SGMII (MAC side) / > > In order to work-around a performance issue present on the first of > two XFI T-PHYs present in MT7988, special tuning is applied which can be > selected by adding the 'mediatek,usxgmii-performance-errata' property to > the device tree node. > > There is no documentation for most registers used for the > analog/tuning part, however, most of the registers have been partially > reverse-engineered from MediaTek's SDK implementation (an opaque > sequence of 32-bit register writes) and descriptions for all relevant > digital registers and bits such as resets and muxes have been supplied > by MediaTek. > > Signed-off-by: Daniel Golle Reviewed-by: AngeloGioacchino Del Regno