17d0873ebSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 27d0873ebSEmmanuel Vadot%YAML 1.2 37d0873ebSEmmanuel Vadot--- 47d0873ebSEmmanuel Vadot$id: http://devicetree.org/schemas/phy/mediatek,mt7988-xfi-tphy.yaml# 57d0873ebSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 67d0873ebSEmmanuel Vadot 77d0873ebSEmmanuel Vadottitle: MediaTek MT7988 XFI T-PHY 87d0873ebSEmmanuel Vadot 97d0873ebSEmmanuel Vadotmaintainers: 107d0873ebSEmmanuel Vadot - Daniel Golle <daniel@makrotopia.org> 117d0873ebSEmmanuel Vadot 127d0873ebSEmmanuel Vadotdescription: 137d0873ebSEmmanuel Vadot The MediaTek XFI SerDes T-PHY provides the physical SerDes lanes 147d0873ebSEmmanuel Vadot used by the (10G/5G) USXGMII PCS and (1G/2.5G) LynxI PCS found in 157d0873ebSEmmanuel Vadot MediaTek's 10G-capabale MT7988 SoC. 167d0873ebSEmmanuel Vadot In MediaTek's SDK sources, this unit is referred to as "pextp". 177d0873ebSEmmanuel Vadot 187d0873ebSEmmanuel Vadotproperties: 197d0873ebSEmmanuel Vadot compatible: 207d0873ebSEmmanuel Vadot const: mediatek,mt7988-xfi-tphy 217d0873ebSEmmanuel Vadot 227d0873ebSEmmanuel Vadot reg: 237d0873ebSEmmanuel Vadot maxItems: 1 247d0873ebSEmmanuel Vadot 257d0873ebSEmmanuel Vadot clocks: 267d0873ebSEmmanuel Vadot items: 277d0873ebSEmmanuel Vadot - description: XFI PHY clock 287d0873ebSEmmanuel Vadot - description: XFI register clock 297d0873ebSEmmanuel Vadot 307d0873ebSEmmanuel Vadot clock-names: 317d0873ebSEmmanuel Vadot items: 327d0873ebSEmmanuel Vadot - const: xfipll 337d0873ebSEmmanuel Vadot - const: topxtal 347d0873ebSEmmanuel Vadot 357d0873ebSEmmanuel Vadot resets: 367d0873ebSEmmanuel Vadot items: 377d0873ebSEmmanuel Vadot - description: Reset controller corresponding to the phy instance. 387d0873ebSEmmanuel Vadot 397d0873ebSEmmanuel Vadot mediatek,usxgmii-performance-errata: 407d0873ebSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/flag 417d0873ebSEmmanuel Vadot description: 427d0873ebSEmmanuel Vadot One instance of the T-PHY on MT7988 suffers from a performance 437d0873ebSEmmanuel Vadot problem in 10GBase-R mode which needs a work-around in the driver. 44*b2d2a78aSEmmanuel Vadot This flag enables a work-around adjusting an analog phy setting and 457d0873ebSEmmanuel Vadot is required for XFI Port0 of the MT7988 SoC to be in compliance with 467d0873ebSEmmanuel Vadot the SFP specification. 477d0873ebSEmmanuel Vadot 487d0873ebSEmmanuel Vadot "#phy-cells": 497d0873ebSEmmanuel Vadot const: 0 507d0873ebSEmmanuel Vadot 517d0873ebSEmmanuel Vadotrequired: 527d0873ebSEmmanuel Vadot - compatible 537d0873ebSEmmanuel Vadot - reg 547d0873ebSEmmanuel Vadot - clocks 557d0873ebSEmmanuel Vadot - clock-names 567d0873ebSEmmanuel Vadot - resets 577d0873ebSEmmanuel Vadot - "#phy-cells" 587d0873ebSEmmanuel Vadot 597d0873ebSEmmanuel VadotadditionalProperties: false 607d0873ebSEmmanuel Vadot 617d0873ebSEmmanuel Vadotexamples: 627d0873ebSEmmanuel Vadot - | 637d0873ebSEmmanuel Vadot #include <dt-bindings/clock/mediatek,mt7988-clk.h> 647d0873ebSEmmanuel Vadot soc { 657d0873ebSEmmanuel Vadot #address-cells = <2>; 667d0873ebSEmmanuel Vadot #size-cells = <2>; 677d0873ebSEmmanuel Vadot 687d0873ebSEmmanuel Vadot phy@11f20000 { 697d0873ebSEmmanuel Vadot compatible = "mediatek,mt7988-xfi-tphy"; 707d0873ebSEmmanuel Vadot reg = <0 0x11f20000 0 0x10000>; 717d0873ebSEmmanuel Vadot clocks = <&xfi_pll CLK_XFIPLL_PLL_EN>, 727d0873ebSEmmanuel Vadot <&topckgen CLK_TOP_XFI_PHY_0_XTAL_SEL>; 737d0873ebSEmmanuel Vadot clock-names = "xfipll", "topxtal"; 747d0873ebSEmmanuel Vadot resets = <&watchdog 14>; 757d0873ebSEmmanuel Vadot mediatek,usxgmii-performance-errata; 767d0873ebSEmmanuel Vadot #phy-cells = <0>; 777d0873ebSEmmanuel Vadot }; 787d0873ebSEmmanuel Vadot }; 797d0873ebSEmmanuel Vadot 807d0873ebSEmmanuel Vadot... 81