Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3051502ybt; Mon, 29 Jun 2020 14:00:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwi/sDDhbDeGUIaps+x8VO4PXkmmXWwF6ZD/Ikbd8tIG6ZpJUF7932mW/mqOChCciR/Ng8+ X-Received: by 2002:a17:906:2799:: with SMTP id j25mr2623775ejc.466.1593464444411; Mon, 29 Jun 2020 14:00:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593464444; cv=none; d=google.com; s=arc-20160816; b=V1VcLnKfU1Fl778zPgifW6iUA3M1Pa1WJ990KXcWgAohlGjDjZ2aPFb90IC+RX2LcI GkL4wQog8N57SIC3ER4O/gXXvuaJ7GWNA9aHRvesqoSFpB5fbvju9oYmBb9fQu0OPmLe o28h4lBdl/0J6Lx2wV6c2Ik6wcUalLoR3BHlBuMFdGR9KMghEP0dkEKNL0TCbIvRIiU+ l7CZISTfKw++u9mYjVbBMfrKWyMiW3q9D8/IQ+zX6PeLxoGJr/ajX1YNhZCtS50k4AW7 guC9hZfEgSxZq1O3Ay1orRulFUNui3GecUUpeT7iXD4ob5PKNan2FP3STrqP+7O5EuPx 5jhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Vp4HDd75UIfUMXQuevZWt5Rhl65pskL2T6OmOZOhyyo=; b=fUnHj9IkjNsh/SSXBwa5L0ahbfb9bPezouIYRkUonYNFxmsDPlzjOdt/hyKohXubYi WTrHvwpYjXK8kFseDyXNSgYC3Q9XlP0t354pIYCENemeI+urPctzeN/v7Ci+0p3tkXNw R2vnkDJb8SURAPaqQQO1Kx4BoCpTvA3vmVmiX0aARzyOgIpkt+akvP7WFWUhkqlVVDFh dv0Z3lDMNfjcKH8bE9zyfVouqAUVjB+CELQk262WzAOCGAZZRI1HaxW1sASKyGEA7sl9 s5hfZcMx60UK4b3DND+1/19bRbazNXzHNyciFHGkSUhQvIkcA1g2Vt+erAr3aLgHzLe7 B1hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=S5gF1lYb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b8si419914edz.89.2020.06.29.14.00.20; Mon, 29 Jun 2020 14:00:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=S5gF1lYb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731332AbgF2U5K (ORCPT + 99 others); Mon, 29 Jun 2020 16:57:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731263AbgF2TNG (ORCPT ); Mon, 29 Jun 2020 15:13:06 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 058DDC0D941B; Mon, 29 Jun 2020 05:01:03 -0700 (PDT) Received: from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 07B58734; Mon, 29 Jun 2020 14:01:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1593432062; bh=X0xCbcYYYzfCKHt5yFv1VQW59LoexinUu8b4tbBY7VU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S5gF1lYbPD5U7b9shzsI+EzCTcQZ14Chmrflm1b+TCuAJ2Yq0MXD2Ds1TsocSI50E RIyuIUhozo3GKTcD6xFieOC6MHOaAl4A1FEhFOr4jtLhwiM9KSSV0HIQeDL8I4wQZk jVcDb0HmYnbtZfjEjdhNQ06b/gTCz93lsoz9RNUA= From: Laurent Pinchart To: linux-kernel@vger.kernel.org Cc: Kishon Vijay Abraham I , Anurag Kumar Vulisha , Michal Simek , Vinod Koul , devicetree@vger.kernel.org Subject: [PATCH v9 1/3] dt-bindings: phy: Add DT bindings for Xilinx ZynqMP PSGTR PHY Date: Mon, 29 Jun 2020 15:00:52 +0300 Message-Id: <20200629120054.29338-2-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200629120054.29338-1-laurent.pinchart@ideasonboard.com> References: <20200629120054.29338-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anurag Kumar Vulisha Add DT bindings for the Xilinx ZynqMP PHY. ZynqMP SoCs have a High Speed Processing System Gigabit Transceiver which provides PHY capabilities to USB, SATA, PCIE, Display Port and Ehernet SGMII controllers. Signed-off-by: Anurag Kumar Vulisha Signed-off-by: Laurent Pinchart Reviewed-by: Rob Herring --- Changes since v8: - Rebase on phy/next Changes since v7: - Switch to GPL-2.0-only OR BSD-2-Clause Changes since v6: - Fixed specification of compatible-dependent xlnx,tx-termination-fix property - Dropped status property from example - Use 4 spaces to indent example Changes since v5: - Document clocks and clock-names properties - Document resets and reset-names properties - Replace subnodes with an additional entry in the PHY cells - Drop lane frequency PHY cell, replaced by reference clock phandle - Convert bindings to YAML - Reword the subject line - Drop Rob's R-b as the bindings have significantly changed - Drop resets and reset-names properties --- .../bindings/phy/xlnx,zynqmp-psgtr.yaml | 105 ++++++++++++++++++ include/dt-bindings/phy/phy.h | 1 + 2 files changed, 106 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/xlnx,zynqmp-psgtr.yaml diff --git a/Documentation/devicetree/bindings/phy/xlnx,zynqmp-psgtr.yaml b/Documentation/devicetree/bindings/phy/xlnx,zynqmp-psgtr.yaml new file mode 100644 index 000000000000..09e3cde7ebca --- /dev/null +++ b/Documentation/devicetree/bindings/phy/xlnx,zynqmp-psgtr.yaml @@ -0,0 +1,105 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/xlnx,zynqmp-psgtr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx ZynqMP Gigabit Transceiver PHY Device Tree Bindings + +maintainers: + - Laurent Pinchart + +description: | + This binding describes the Xilinx ZynqMP Gigabit Transceiver (GTR) PHY. The + GTR provides four lanes and is used by USB, SATA, PCIE, Display port and + Ethernet SGMII controllers. + +properties: + "#phy-cells": + const: 4 + description: | + The cells contain the following arguments. + + - description: The GTR lane + minimum: 0 + maximum: 3 + - description: The PHY type + enum: + - PHY_TYPE_DP + - PHY_TYPE_PCIE + - PHY_TYPE_SATA + - PHY_TYPE_SGMII + - PHY_TYPE_USB + - description: The PHY instance + minimum: 0 + maximum: 1 # for DP, SATA or USB + maximum: 3 # for PCIE or SGMII + - description: The reference clock number + minimum: 0 + maximum: 3 + + compatible: + enum: + - xlnx,zynqmp-psgtr-v1.1 + - xlnx,zynqmp-psgtr + + clocks: + minItems: 1 + maxItems: 4 + description: | + Clock for each PS_MGTREFCLK[0-3] reference clock input. Unconnected + inputs shall not have an entry. + + clock-names: + minItems: 1 + maxItems: 4 + items: + pattern: "^ref[0-3]$" + + reg: + items: + - description: SERDES registers block + - description: SIOU registers block + + reg-names: + items: + - const: serdes + - const: siou + + xlnx,tx-termination-fix: + description: | + Include this for fixing functional issue with the TX termination + resistance in GT, which can be out of spec for the XCZU9EG silicon + version. + type: boolean + +required: + - "#phy-cells" + - compatible + - reg + - reg-names + +if: + properties: + compatible: + const: xlnx,zynqmp-psgtr-v1.1 + +then: + properties: + xlnx,tx-termination-fix: false + +additionalProperties: false + +examples: + - | + phy: phy@fd400000 { + compatible = "xlnx,zynqmp-psgtr-v1.1"; + reg = <0x0 0xfd400000 0x0 0x40000>, + <0x0 0xfd3d0000 0x0 0x1000>; + reg-names = "serdes", "siou"; + clocks = <&refclks 3>, <&refclks 2>, <&refclks 0>; + clock-names = "ref1", "ref2", "ref3"; + #phy-cells = <4>; + }; + +... diff --git a/include/dt-bindings/phy/phy.h b/include/dt-bindings/phy/phy.h index 3727ef72138b..36e8c241cf48 100644 --- a/include/dt-bindings/phy/phy.h +++ b/include/dt-bindings/phy/phy.h @@ -18,5 +18,6 @@ #define PHY_TYPE_UFS 5 #define PHY_TYPE_DP 6 #define PHY_TYPE_XPCS 7 +#define PHY_TYPE_SGMII 8 #endif /* _DT_BINDINGS_PHY */ -- Regards, Laurent Pinchart