Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp493291ybb; Fri, 20 Mar 2020 02:57:49 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtLWES/JRwWZOGkGpY19LXQU/Slt1hUqKPAwrehHDpIShIjdFRlu9jVcxMBLZmID2vIp5pF X-Received: by 2002:aca:f0d7:: with SMTP id o206mr5555376oih.41.1584698269001; Fri, 20 Mar 2020 02:57:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584698268; cv=none; d=google.com; s=arc-20160816; b=AKxOtvbXcF0ki8KYHudwqTEvvYznpgbqKDgNlH/vmd1Un0VelYEJQsqqnroe9poycG Kc+y2QrMgAPR1VHAhLDfbMAEbBkHmPCnSNvL1Dn99pzOFWiBfpvecA3eZzCG0HIHjy9U VgBP08HxTdG8g9pGOG+SPAAXuXcQcKwXCEZekfQH8Z30AKEo+EORCn9mlzDdYTJWLq9n y2p2yXZA31kq9v7qx7nP6Y0W6mqTtRG1Ve8nkIohhbXQSciaEA/Tgw02i5JYYQoAV7rx U3UmGvWxM6joXpikzWtP8peu6tzNCi7eyp3DP/h2l1TL1LtD2w4dAkd2p4sAjPFXRL8G T52w== 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=HuTXjhghEvCFd4CL28ypI2kOU8VP1DAuVenEkcuiegQ=; b=v/WXyRuf6Bldvu0+YLNtBE8QyC+3v4FR1PYmaGowgj6VTC3WOW242hLY6hSSHZDM8L HO6dQt9aXg/aGNByLD08ZloOZi5BeMvVqL86JGQO7a2SjyG8vnY8Yh62Q9Dt2hpN7vtD C3GTE04uL9rb1Ujh4E0sNP+3Uh9oFeNjTDszDV9xkygJXN5k9Ryb/QYl5aOuiacB4nVL w26BdBYabhEcq9gJ7hpYoGebN3FemBukiEygQP8gJty0uTnif7p6AqzxqnIf5QfR+Yk7 9zavmiLaJOVPcc9EFrG61mbN8W74RTG0avv61NY752FTk4L19TV2alj6yJPQqQacV8s8 Vd4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=jsogXJmn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j23si2771366otp.31.2020.03.20.02.57.36; Fri, 20 Mar 2020 02:57:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=jsogXJmn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727239AbgCTJz5 (ORCPT + 99 others); Fri, 20 Mar 2020 05:55:57 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:58812 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726806AbgCTJz5 (ORCPT ); Fri, 20 Mar 2020 05:55:57 -0400 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 B2ECC504; Fri, 20 Mar 2020 10:55:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1584698155; bh=nrwMlIbqTrDTZMfFwLJVabf3fTFzIkX1vCUKgBlEUmY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jsogXJmnj5QEV4b0WNca7+PJ4cSl6zQNGdiO6ulyINrHIo1g55L6NcFPbvP5sHo06 O6QP6Uil6lsO/6pahNyp2txZFMPHD+sIo9r+n6rvoPOImyyU3khxHvJY+Fl326oWoJ YpgvzZCghQSD0or1fhTPDPsnPmS+w4iCVpCQdQTE= From: Laurent Pinchart To: Kishon Vijay Abraham I , Rob Herring Cc: Anurag Kumar Vulisha , Michal Simek , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6.1 1/3] dt-bindings: phy: Add DT bindings for Xilinx ZynqMP PSGTR PHY Date: Fri, 20 Mar 2020 11:55:45 +0200 Message-Id: <20200320095545.9912-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200320095036.GA5193@pendragon.ideasonboard.com> References: <20200320095036.GA5193@pendragon.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 --- 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 | 106 ++++++++++++++++++ include/dt-bindings/phy/phy.h | 1 + 2 files changed, 107 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..b5d661f2813d --- /dev/null +++ b/Documentation/devicetree/bindings/phy/xlnx,zynqmp-psgtr.yaml @@ -0,0 +1,106 @@ +# SPDX-License-Identifier: GPL-2.0 +%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: + not: + required: + - xlnx,tx-termination-fix + +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 1f3f866fae7b..f6bc83b66ae9 100644 --- a/include/dt-bindings/phy/phy.h +++ b/include/dt-bindings/phy/phy.h @@ -17,5 +17,6 @@ #define PHY_TYPE_USB3 4 #define PHY_TYPE_UFS 5 #define PHY_TYPE_DP 6 +#define PHY_TYPE_SGMII 7 #endif /* _DT_BINDINGS_PHY */ -- Regards, Laurent Pinchart