Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp462876rdb; Thu, 1 Feb 2024 13:53:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IFbQtcq0YtxeT+EgszAr0B0Bhj4y1mGuwDr80/dM1q1CUVP0sIAGS32XDI34jQaEhGOODfF X-Received: by 2002:a05:622a:552:b0:42a:8a40:e33c with SMTP id m18-20020a05622a055200b0042a8a40e33cmr3752903qtx.57.1706824384172; Thu, 01 Feb 2024 13:53:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706824384; cv=pass; d=google.com; s=arc-20160816; b=0hOcu8ulJK628PS4CNWgp5YhxDaviDX5BOk4gBbqDNQQDRiTLsIqpDNcFlsF/QLIEI 1xoOVaDhjTBjWN9gtO+5C8XIGtk5WXXnLUQ5YBgyjKLJQ6jHTbdgSOmnPqUewsZd3Onk M5o+kz8CnYdpbjzDuUziSQmXONaxjMbg/65Nb4ZtxLsJYk4CD3u6B57TQTEcLUMaL0GH pYHIQMQqIEDiIvTHXJIr3LXDQ5bHpe0egKGbrt5IEe/gP4QziCCtI6FSNAFqcTYt3JYO af0rAYmPWVaMsM/toL3LYiO+FZYkt2m4LrYdRxOSJikdNbJ6IrzdYN/nu3zeJpy9uFIV y6Fg== 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=UerUtTZ3D8KwezO+W2eCjar8glEQ7QUc6EJ9C5nnJao=; b=smPAaYv6BICNxDfoo0ioX7NCSVwcNNIwPtm3zyAXvXn07Bcb4/bveSz49yHpZyXINI q1X9f0mqwh5Ee5pUgg3losB2Inj+p7vVOrWl2735+momEKInlOl9rEm0B3zwW7Y1UjHA bJ3NITqWnMceXtEXIZCVmbzk143mUCsOT4fLZZNgZ5fpGfw45JF9mCTu7WuCVevDG2WC xK2032E5HYwXIkTyZa7IaKawqoQwj9nnz+eWmeyP0Op6YJ8RbiIMFl5klzFvALhHajxd SZ0owLJ0/x+TU0mNl7VPB24i/8VtbO8sbwIyHQoqI3XK5iWBDaUkm/dogwYD6LYNqyBV MwfA==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48895-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCX9IcuWPfBQpHx/lSJkxScM5Ml7mV4HYYl/Yj+La3e6fUx5rymQuY+nBbFD5hjEDdYIg7gPEGas4W8sUIk5FY9Ok8Bk+voWnNRQu3cTrg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a4-20020ac85b84000000b0042bdfbf7785si455340qta.406.2024.02.01.13.53.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 13:53:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48895-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-48895-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48895-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 914C41C2393C for ; Thu, 1 Feb 2024 21:53:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A40B3FB14; Thu, 1 Feb 2024 21:52:55 +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 ) id 1rVez0-0004CR-11; Thu, 01 Feb 2024 21:52:30 +0000 Date: Thu, 1 Feb 2024 21:52:20 +0000 From: Daniel Golle To: Bc-bocun Chen , Steven Liu , John Crispin , Chunfeng Yun , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Daniel Golle , Qingfang Deng , SkyLake Huang , Matthias Brugger , AngeloGioacchino Del Regno , 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 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --- .../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 + +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 + 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.43.0