Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1717434lqe; Mon, 8 Apr 2024 19:24:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVn9ZR/r/2LxMh9pIvZaNnMxmTLIKtJ5VTxwkiLlLYfowAlkHBa6iANgb/0SxBXEyOAS5uBKGLkG5kKuC/SMwD2K5odCFTPEge2vZKYFA== X-Google-Smtp-Source: AGHT+IEWM53iQrYaLlo+Ebc8ePLvUzYq6pBQ1PQqMB5OWP2GY1yudw24qsXYvmPYENgJfH96pp+q X-Received: by 2002:a05:6214:1fd1:b0:699:4add:a8e9 with SMTP id jh17-20020a0562141fd100b006994adda8e9mr8406636qvb.44.1712629459847; Mon, 08 Apr 2024 19:24:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712629459; cv=pass; d=google.com; s=arc-20160816; b=ZLczvjukmYoPKWmRn4z8HnJmdC0v5kvlem9mSE9HesskO2EwdwlE8RWgDoLD6+Y1x0 IGDGfDkREehPz/bpeVXF1RqVaBVEfUBbF7bop/vGkXDIIpyiMwsvb7aWIiZKP3dgq8iS 8cgQnjXFpRmWsBT+o/QAfdltyAN9WdFVVx3r6lbJezii3n7MOSGKlnsLLArXZn9I1fAq 3veFtr4dJrNzvngBSVvhiC7TC01a1ryUmq0PTCPmfOQ9C0YPbRnMjKzd3XFpsURMwkGJ aFciSzaYw/KQaZwpfxb4ZjezqCUljoRM0kmLI+4H8WeVtQrzZL+6NtM5PJcwiGAqZSHz 1JgA== 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=PszmvqxJ3QQ8CRoz74EYW6pQ5NmOU3g6pI/vs2cTILg=; fh=MGkOUgswtEDdPMhRUc1NU2T3cDb27GJB2bHZ9MzRiTw=; b=I1Rxr7ZQso3BdXteKAjxMvsPhzjAJjEQvDuh5rjC19hs5NmpGETf6QDAfKBlA/K5bT S2dptDae4yyJ9aGyjrrFNo7nfEqmew16MbluU16Kkr/DzIpGAoyTalJ7OUUxVKh68P+d 7TflTQ5MTlWh9RoTktSk8VUkwCtmIu8u+IfC6b6w9esqyb1hlSB8A4+WOc50h9crX1kX EBIYMJMY6kkGeiflIsizDKag1mLifMYcf4sCb+vAL44WSM8eGqGJyJ15tU8xxWT+15ix FQ/mt+ExrhPcnnvjl4gvv/Cr2mV2QTwd2x/GZbdyzAZaxBxytYIQ59YLTATGs5SmV4n+ BtnQ==; 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-136128-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136128-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id dk8-20020a056214092800b00696a7f3ff6fsi9323785qvb.130.2024.04.08.19.24.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 19:24:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136128-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-136128-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136128-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 79ABC1C23C3C for ; Tue, 9 Apr 2024 02:24:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D8E3E4F883; Tue, 9 Apr 2024 02:24:09 +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 998C84A2C; Tue, 9 Apr 2024 02:24:07 +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=1712629449; cv=none; b=JiRWE59sb5uy2IDKapmlzqft5SU5xdtQXFOQOvV6hRyDocJ1URJTPPzgSyJf1HXkx6SJnbGj7IYLylAr3uN2CSNz2KN1R7793Ln60ztMDyziqYlUTUMb3eb9CMWKZE7nUteZJRYjh6l+06nq1BUZXJZUQYdRlkt0VSKLmKRcpFE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712629449; c=relaxed/simple; bh=MljgnSDWU7dplQLrY9QDBH9fo3xA3ecNaTh4ie6HiWk=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=mM7mV7vketQyPPXG4a3laPja9cBQCa35dvl6gHVmUQCVQWihPqcB/XSoTrLX2ADn3+ADaSjtjw9CdEG9IS/iieqvOlysJPHyCuQGRUWEPnr8OE3Bqny+yqaDh5KcF4Ijh5f94gN80EwhaxtX2dyUor01UMiW2lDg6bg2z3+4Bzs= 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 ) id 1ru19S-0007X1-0q; Tue, 09 Apr 2024 02:23:58 +0000 Date: Tue, 9 Apr 2024 03:23:54 +0100 From: Daniel Golle To: Vinod Koul , Bc-bocun Chen , Steven Liu , John Crispin , Chunfeng Yun , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Daniel Golle , 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 Subject: [PATCH v4 1/2] dt-bindings: phy: mediatek,mt7988-xfi-tphy: add new bindings Message-ID: 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=us-ascii Content-Disposition: inline Add bindings for the MediaTek XFI Ethernet SerDes T-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 Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Krzysztof Kozlowski --- v4: no changes v3: Add reference to MediaTek-internal "pextp" name, better explain reset as well as 10GBase-R tuning work-around. v2: unify filename and compatible as requested .../phy/mediatek,mt7988-xfi-tphy.yaml | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/mediatek,mt7988-xfi-tphy.yaml diff --git a/Documentation/devicetree/bindings/phy/mediatek,mt7988-xfi-tphy.yaml b/Documentation/devicetree/bindings/phy/mediatek,mt7988-xfi-tphy.yaml new file mode 100644 index 00000000000000..cfb3ca97f87c68 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/mediatek,mt7988-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,mt7988-xfi-tphy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek MT7988 XFI T-PHY + +maintainers: + - Daniel Golle + +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 MT7988 SoC. + In MediaTek's SDK sources, this unit is referred to as "pextp". + +properties: + 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: Reset controller corresponding to the phy instance. + + 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. + This flag enables a work-around ajusting an analog phy setting and + is required for XFI Port0 of the MT7988 SoC to be in compliance with + the SFP specification. + + "#phy-cells": + const: 0 + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - "#phy-cells" + +additionalProperties: false + +examples: + - | + #include + 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>; + }; + }; + +... -- 2.44.0