Message ID | 702afb0c1246d95c90b22e57105304028bdd3083.1706823233.git.daniel@makrotopia.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-48895-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp50096dyc; Thu, 1 Feb 2024 14:04:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGiT8Jg13MMefqfx0XgdxzTQ0wE35eRXZ5XBdyEq0vqmY1WRd3kdiZb431SHVh1lG9NiRlO X-Received: by 2002:a92:c646:0:b0:363:b0fb:322 with SMTP id 6-20020a92c646000000b00363b0fb0322mr585875ill.0.1706825061269; Thu, 01 Feb 2024 14:04:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706825061; cv=pass; d=google.com; s=arc-20160816; b=m9FNqzr05NgoSTaw9T1Bc1tDq0vY/tZbwh/nKRDdxrsXDnNrJV6i2ArD4Z/kOgRE7r nfotDrCDD9aSyfTkrMtTiCSRTL5Boh2GN5yKUDeXzLbYiqMyw3tdMECh82BY9VrU40lM vZ3RPtA6Xn107U4nmuxcz+ciLjeb5Gd4/p7gX93Ir60EuCpUKL96IPIduhP6I4U0BMJ6 OEgRV953hM59J4NeVTQgk2QAjn4VEwcMuZMP20TtbEL3Leq1ppxyIz77/lh4piS8yNAR PlpfWJBklEdn/7NYlTjjhzFsmxji2nMcXhFRjmNWRVk13Dm2f8FdOErzCmYy1m9mdVhw Tong== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:to:from:date; bh=sS1eE5byfPvULPUEvTd4F/Dpjur59sxc0vbJNDTJi90=; fh=2eCOeX7lILCtH7saobrTG+0h6Gm6jFdtJql4EJy+BEM=; b=wulwMaFaDC23m5d19kj5La95iW0n+xHHobfnuqwKw65IUpg2j0m1drOoDRnXxYG/ZM eZKqOG1VSQewNqEXJxgRmCK/Qk33jLdoFz/O0W0Zt/eTZAwdejOlmpu/ZrmQVU4+aEEY le1riNqX5gH9CNSMi0OJryFDTSCQoX64hJ/6dPe4Zc4zrsMVhEnlO0lk+17O2YXwBMlQ VcElEEIlfPxD9RGJpiffQALRXPOJHHEbkMtZXpBrhgePgiUD57gEoYfzHGqEOg1Zjis4 G+2zZarPx9JHIS+jG/sMvlqFWcVdJQNy2oDEFKsYsjb/xWGh5Fz+a+vEfGQ9/WxW83zM /xZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-48895-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48895-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCUnOcbKolOwKJVaBepg2Ml45/VgzkeZnul9JLRX+MFFLvb4puwp4ou/HlnWhlNzvP80RufhkHWeSt5FJms6Fho7RjqmAQ== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id t3-20020a634603000000b005c701bcfe09si405724pga.27.2024.02.01.14.04.20 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 14:04:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48895-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-48895-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48895-ouuuleilei=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id BB0C1B24CB4 for <ouuuleilei@gmail.com>; Thu, 1 Feb 2024 21:53:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 628813FE46; Thu, 1 Feb 2024 21:52:56 +0000 (UTC) Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (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 1C13B3EA8C; Thu, 1 Feb 2024 21:52:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706824374; cv=none; b=OHITqskGf7JV965tOrzl4/yv8g+5LJaI6H8cAYg7U18LdPY1lNsHoJNgud2ZfZN/vxwNBQCsySC1NsJ0OOLFyDYRWr2wJQibFBg4kBWAaMhuj94nybTWM2LDFhtYTOhqaVIrCvWCPOYJeH6pOwxhB9ywRZ+CeYWQ2pF8BxIOcMo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706824374; c=relaxed/simple; bh=Ccx10qd970yQy1oM88KwOcpNYhrY2oGDn3lojNz7158=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=hgSCrPbkN5DcQGPuTTqWm9gSrQjrI7K96HOZg8srnbQimZ0Ur1kyJkraqy8pClNB9R/Yyc7wcjOX9hxO+FaQZ9l9UHf0iicEs+pQzGTs1FnJDvrf/O42K3ra7wdDkoGNQ8k7alDeiZXeZ2IBSIDR0gVsNw1UitdDRD9po4sNAIc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96.2) (envelope-from <daniel@makrotopia.org>) id 1rVez0-0004CR-11; Thu, 01 Feb 2024 21:52:30 +0000 Date: Thu, 1 Feb 2024 21:52:20 +0000 From: Daniel Golle <daniel@makrotopia.org> To: Bc-bocun Chen <bc-bocun.chen@mediatek.com>, Steven Liu <steven.liu@mediatek.com>, John Crispin <john@phrozen.org>, Chunfeng Yun <chunfeng.yun@mediatek.com>, Vinod Koul <vkoul@kernel.org>, Kishon Vijay Abraham I <kishon@kernel.org>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Daniel Golle <daniel@makrotopia.org>, Qingfang Deng <dqfext@gmail.com>, SkyLake Huang <SkyLake.Huang@mediatek.com>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Philipp Zabel <p.zabel@pengutronix.de>, 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 Subject: [PATCH 1/2] dt-bindings: phy: mediatek,xfi-tphy: add new bindings Message-ID: <702afb0c1246d95c90b22e57105304028bdd3083.1706823233.git.daniel@makrotopia.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789735795524573522 X-GMAIL-MSGID: 1789735795524573522 |
Series |
[1/2] dt-bindings: phy: mediatek,xfi-tphy: add new bindings
|
|
Commit Message
Daniel Golle
Feb. 1, 2024, 9:52 p.m. UTC
Add bindings for the MediaTek XFI T-PHY Ethernet SerDes PHY found in the
MediaTek MT7988 SoC which can operate at various interfaces modes:
via USXGMII PCS:
* USXGMII
* 10GBase-R
* 5GBase-R
via LynxI SGMII PCS:
* 2500Base-X
* 1000Base-X
* Cisco SGMII (MAC side)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
.../bindings/phy/mediatek,xfi-tphy.yaml | 80 +++++++++++++++++++
1 file changed, 80 insertions(+)
create mode 100644 Documentation/devicetree/bindings/phy/mediatek,xfi-tphy.yaml
Comments
On 01/02/2024 22:52, Daniel Golle wrote: > Add bindings for the MediaTek XFI T-PHY Ethernet SerDes PHY found in the > MediaTek MT7988 SoC which can operate at various interfaces modes: > > via USXGMII PCS: > * USXGMII > * 10GBase-R > * 5GBase-R > > via LynxI SGMII PCS: > * 2500Base-X > * 1000Base-X > * Cisco SGMII (MAC side) > > Signed-off-by: Daniel Golle <daniel@makrotopia.org> > --- > .../bindings/phy/mediatek,xfi-tphy.yaml | 80 +++++++++++++++++++ > 1 file changed, 80 insertions(+) > create mode 100644 Documentation/devicetree/bindings/phy/mediatek,xfi-tphy.yaml > > diff --git a/Documentation/devicetree/bindings/phy/mediatek,xfi-tphy.yaml b/Documentation/devicetree/bindings/phy/mediatek,xfi-tphy.yaml > new file mode 100644 > index 0000000000000..e897118dcf7e6 > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/mediatek,xfi-tphy.yaml > @@ -0,0 +1,80 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/phy/mediatek,xfi-tphy.yaml# Please use compatible as filename. Your binding says only one is possible (const, not enum), so there is no reasoning for different filename. > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek XFI T-PHY > + > +maintainers: > + - Daniel Golle <daniel@makrotopia.org> > + > +description: > + The MediaTek XFI SerDes T-PHY provides the physical SerDes lanes > + used by the (10G/5G) USXGMII PCS and (1G/2.5G) LynxI PCS found in > + MediaTek's 10G-capabale SoCs. > + > +properties: > + $nodename: > + pattern: "^phy@[0-9a-f]+$" No need for nodename in individual bindings file. > + > + compatible: > + const: mediatek,mt7988-xfi-tphy > + > + reg: > + maxItems: 1 > + > + clocks: > + items: > + - description: XFI PHY clock > + - description: XFI register clock > + > + clock-names: > + items: > + - const: xfipll > + - const: topxtal > + > + resets: > + items: > + - description: PEXTP reset > + > + mediatek,usxgmii-performance-errata: > + $ref: /schemas/types.yaml#/definitions/flag > + description: > + One instance of the T-PHY on MT7988 suffers from a performance > + problem in 10GBase-R mode which needs a work-around in the driver. Can you explain what is this issue and errata about (except performance)? > + The work-around is enabled using this flag. > + > + "#phy-cells": > + const: 0 > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - resets > + - "#phy-cells" > + > +additionalProperties: false Best regards, Krzysztof
On Thu, Feb 01, 2024 at 09:52:20PM +0000, Daniel Golle wrote: > Add bindings for the MediaTek XFI T-PHY Ethernet SerDes PHY found in the > MediaTek MT7988 SoC which can operate at various interfaces modes: This is v4 unless I'm confused[1]. Where's the revision history? Rob [1] https://lore.kernel.org/all/b875f693f6d4367a610a12ef324584f3bf3a1c1c.1702352117.git.daniel@makrotopia.org/ > > via USXGMII PCS: > * USXGMII > * 10GBase-R > * 5GBase-R > > via LynxI SGMII PCS: > * 2500Base-X > * 1000Base-X > * Cisco SGMII (MAC side) > > Signed-off-by: Daniel Golle <daniel@makrotopia.org> > --- > .../bindings/phy/mediatek,xfi-tphy.yaml | 80 +++++++++++++++++++ > 1 file changed, 80 insertions(+) > create mode 100644 Documentation/devicetree/bindings/phy/mediatek,xfi-tphy.yaml > > diff --git a/Documentation/devicetree/bindings/phy/mediatek,xfi-tphy.yaml b/Documentation/devicetree/bindings/phy/mediatek,xfi-tphy.yaml > new file mode 100644 > index 0000000000000..e897118dcf7e6 > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/mediatek,xfi-tphy.yaml > @@ -0,0 +1,80 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/phy/mediatek,xfi-tphy.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek XFI T-PHY > + > +maintainers: > + - Daniel Golle <daniel@makrotopia.org> > + > +description: > + The MediaTek XFI SerDes T-PHY provides the physical SerDes lanes > + used by the (10G/5G) USXGMII PCS and (1G/2.5G) LynxI PCS found in > + MediaTek's 10G-capabale SoCs. > + > +properties: > + $nodename: > + pattern: "^phy@[0-9a-f]+$" > + > + compatible: > + const: mediatek,mt7988-xfi-tphy > + > + reg: > + maxItems: 1 > + > + clocks: > + items: > + - description: XFI PHY clock > + - description: XFI register clock > + > + clock-names: > + items: > + - const: xfipll > + - const: topxtal > + > + resets: > + items: > + - description: PEXTP reset What is PEXTP?
On Fri, Feb 02, 2024 at 03:24:20PM -0600, Rob Herring wrote: > On Thu, Feb 01, 2024 at 09:52:20PM +0000, Daniel Golle wrote: > > Add bindings for the MediaTek XFI T-PHY Ethernet SerDes PHY found in the > > MediaTek MT7988 SoC which can operate at various interfaces modes: > > This is v4 unless I'm confused[1]. Where's the revision history? It's a new series only covering the XFI T-PHY driver. However, I should have written a cover letter referencing the previous series to netdev. Sorry for that and thank you for pointing it out. > > Rob > > [1] https://lore.kernel.org/all/b875f693f6d4367a610a12ef324584f3bf3a1c1c.1702352117.git.daniel@makrotopia.org/ > > > > > via USXGMII PCS: > > * USXGMII > > * 10GBase-R > > * 5GBase-R > > > > via LynxI SGMII PCS: > > * 2500Base-X > > * 1000Base-X > > * Cisco SGMII (MAC side) > > > > Signed-off-by: Daniel Golle <daniel@makrotopia.org> > > --- > > .../bindings/phy/mediatek,xfi-tphy.yaml | 80 +++++++++++++++++++ > > 1 file changed, 80 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/phy/mediatek,xfi-tphy.yaml > > > > diff --git a/Documentation/devicetree/bindings/phy/mediatek,xfi-tphy.yaml b/Documentation/devicetree/bindings/phy/mediatek,xfi-tphy.yaml > > new file mode 100644 > > index 0000000000000..e897118dcf7e6 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/phy/mediatek,xfi-tphy.yaml > > @@ -0,0 +1,80 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/phy/mediatek,xfi-tphy.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: MediaTek XFI T-PHY > > + > > +maintainers: > > + - Daniel Golle <daniel@makrotopia.org> > > + > > +description: > > + The MediaTek XFI SerDes T-PHY provides the physical SerDes lanes > > + used by the (10G/5G) USXGMII PCS and (1G/2.5G) LynxI PCS found in > > + MediaTek's 10G-capabale SoCs. > > + > > +properties: > > + $nodename: > > + pattern: "^phy@[0-9a-f]+$" > > + > > + compatible: > > + const: mediatek,mt7988-xfi-tphy > > + > > + reg: > > + maxItems: 1 > > + > > + clocks: > > + items: > > + - description: XFI PHY clock > > + - description: XFI register clock > > + > > + clock-names: > > + items: > > + - const: xfipll > > + - const: topxtal > > + > > + resets: > > + items: > > + - description: PEXTP reset > > What is PEXTP? >
On Fri, 2024-02-02 at 09:21 +0100, Krzysztof Kozlowski wrote: > > External email : Please do not click links or open attachments until > you have verified the sender or the content. > On 01/02/2024 22:52, Daniel Golle wrote: > > Add bindings for the MediaTek XFI T-PHY Ethernet SerDes PHY found > in the > > MediaTek MT7988 SoC which can operate at various interfaces modes: > > > > via USXGMII PCS: > > * USXGMII > > * 10GBase-R > > * 5GBase-R > > > > via LynxI SGMII PCS: > > * 2500Base-X > > * 1000Base-X > > * Cisco SGMII (MAC side) > > > > Signed-off-by: Daniel Golle <daniel@makrotopia.org> > > --- > > .../bindings/phy/mediatek,xfi-tphy.yaml | 80 > +++++++++++++++++++ > > 1 file changed, 80 insertions(+) > > create mode 100644 > Documentation/devicetree/bindings/phy/mediatek,xfi-tphy.yaml > > > > diff --git a/Documentation/devicetree/bindings/phy/mediatek,xfi- > tphy.yaml b/Documentation/devicetree/bindings/phy/mediatek,xfi- > tphy.yaml > > new file mode 100644 > > index 0000000000000..e897118dcf7e6 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/phy/mediatek,xfi-tphy.yaml > > @@ -0,0 +1,80 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/phy/mediatek,xfi-tphy.yaml# > > Please use compatible as filename. Your binding says only one is > possible (const, not enum), so there is no reasoning for different > filename. > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: MediaTek XFI T-PHY > > + > > +maintainers: > > + - Daniel Golle <daniel@makrotopia.org> > > + > > +description: > > + The MediaTek XFI SerDes T-PHY provides the physical SerDes lanes > > + used by the (10G/5G) USXGMII PCS and (1G/2.5G) LynxI PCS found > in > > + MediaTek's 10G-capabale SoCs. > > + > > +properties: > > + $nodename: > > + pattern: "^phy@[0-9a-f]+$" > > No need for nodename in individual bindings file. > > > + > > + compatible: > > + const: mediatek,mt7988-xfi-tphy Add a generic compatible "mediatek,xfi-tphy"? Other socs also use this phy but not upstream. > > + > > + reg: > > + maxItems: 1 > > + > > + clocks: > > + items: > > + - description: XFI PHY clock > > + - description: XFI register clock > > + > > + clock-names: > > + items: > > + - const: xfipll > > + - const: topxtal > > + > > + resets: > > + items: > > + - description: PEXTP reset > > + > > + mediatek,usxgmii-performance-errata: > > + $ref: /schemas/types.yaml#/definitions/flag > > + description: > > + One instance of the T-PHY on MT7988 suffers from a > performance > > + problem in 10GBase-R mode which needs a work-around in the > driver. > > Can you explain what is this issue and errata about (except > performance)? > > > + The work-around is enabled using this flag. > > + > > + "#phy-cells": > > + const: 0 > > + > > +required: > > + - compatible > > + - reg > > + - clocks > > + - clock-names > > + - resets > > + - "#phy-cells" > > + > > +additionalProperties: false > > > Best regards, > Krzysztof >
On 04/02/2024 07:17, Chunfeng Yun (云春峰) wrote: > On Fri, 2024-02-02 at 09:21 +0100, Krzysztof Kozlowski wrote: >> >> External email : Please do not click links or open attachments until >> you have verified the sender or the content. >> On 01/02/2024 22:52, Daniel Golle wrote: >>> Add bindings for the MediaTek XFI T-PHY Ethernet SerDes PHY found >> in the >>> MediaTek MT7988 SoC which can operate at various interfaces modes: >>> >>> via USXGMII PCS: >>> * USXGMII >>> * 10GBase-R >>> * 5GBase-R >>> >>> via LynxI SGMII PCS: >>> * 2500Base-X >>> * 1000Base-X >>> * Cisco SGMII (MAC side) >>> >>> Signed-off-by: Daniel Golle <daniel@makrotopia.org> >>> --- >>> .../bindings/phy/mediatek,xfi-tphy.yaml | 80 >> +++++++++++++++++++ >>> 1 file changed, 80 insertions(+) >>> create mode 100644 >> Documentation/devicetree/bindings/phy/mediatek,xfi-tphy.yaml >>> >>> diff --git a/Documentation/devicetree/bindings/phy/mediatek,xfi- >> tphy.yaml b/Documentation/devicetree/bindings/phy/mediatek,xfi- >> tphy.yaml >>> new file mode 100644 >>> index 0000000000000..e897118dcf7e6 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/phy/mediatek,xfi-tphy.yaml >>> @@ -0,0 +1,80 @@ >>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/phy/mediatek,xfi-tphy.yaml# >> >> Please use compatible as filename. Your binding says only one is >> possible (const, not enum), so there is no reasoning for different >> filename. >> >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: MediaTek XFI T-PHY >>> + >>> +maintainers: >>> + - Daniel Golle <daniel@makrotopia.org> >>> + >>> +description: >>> + The MediaTek XFI SerDes T-PHY provides the physical SerDes lanes >>> + used by the (10G/5G) USXGMII PCS and (1G/2.5G) LynxI PCS found >> in >>> + MediaTek's 10G-capabale SoCs. >>> + >>> +properties: >>> + $nodename: >>> + pattern: "^phy@[0-9a-f]+$" >> >> No need for nodename in individual bindings file. >> >>> + >>> + compatible: >>> + const: mediatek,mt7988-xfi-tphy > Add a generic compatible "mediatek,xfi-tphy"? > > Other socs also use this phy but not upstream. Are they here? No... They will use this one as fallback. Stop insisting on some generic fallbacks just because you do not like using other SoCs as fallbacks. You ignored other comments, so I understand you agree with them 100%. Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/phy/mediatek,xfi-tphy.yaml b/Documentation/devicetree/bindings/phy/mediatek,xfi-tphy.yaml new file mode 100644 index 0000000000000..e897118dcf7e6 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/mediatek,xfi-tphy.yaml @@ -0,0 +1,80 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/mediatek,xfi-tphy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek XFI T-PHY + +maintainers: + - Daniel Golle <daniel@makrotopia.org> + +description: + The MediaTek XFI SerDes T-PHY provides the physical SerDes lanes + used by the (10G/5G) USXGMII PCS and (1G/2.5G) LynxI PCS found in + MediaTek's 10G-capabale SoCs. + +properties: + $nodename: + pattern: "^phy@[0-9a-f]+$" + + compatible: + const: mediatek,mt7988-xfi-tphy + + reg: + maxItems: 1 + + clocks: + items: + - description: XFI PHY clock + - description: XFI register clock + + clock-names: + items: + - const: xfipll + - const: topxtal + + resets: + items: + - description: PEXTP reset + + mediatek,usxgmii-performance-errata: + $ref: /schemas/types.yaml#/definitions/flag + description: + One instance of the T-PHY on MT7988 suffers from a performance + problem in 10GBase-R mode which needs a work-around in the driver. + The work-around is enabled using this flag. + + "#phy-cells": + const: 0 + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - "#phy-cells" + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/mediatek,mt7988-clk.h> + soc { + #address-cells = <2>; + #size-cells = <2>; + + phy@11f20000 { + compatible = "mediatek,mt7988-xfi-tphy"; + reg = <0 0x11f20000 0 0x10000>; + clocks = <&xfi_pll CLK_XFIPLL_PLL_EN>, + <&topckgen CLK_TOP_XFI_PHY_0_XTAL_SEL>; + clock-names = "xfipll", "topxtal"; + resets = <&watchdog 14>; + mediatek,usxgmii-performance-errata; + #phy-cells = <0>; + }; + }; + +...