Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1599097ybh; Fri, 13 Mar 2020 04:11:56 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtKyEEyVNuapZS274aFAEqgZCKplkNf56+kT7jKqudQEf6V7GHfd/4GhyyTtbDK/oDawSE7 X-Received: by 2002:aca:5887:: with SMTP id m129mr6239705oib.175.1584097915976; Fri, 13 Mar 2020 04:11:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584097915; cv=none; d=google.com; s=arc-20160816; b=Gy9lCldpp/DchZGRqpwFY7t1Fsa4IFAb3iqbe40QfIhGgpK9RpW0LR7dbvhDv4Fpos GwGNtZIVPhrPuvvDUBMPgZ9L3+uND8tf9AqJJof9BQKjB+g35SzSQqnMc/pT6XUv4phZ reGaYD4c5TdA7klIiSQEIQBv0tHfLCMMQ05EuA7Ubq5Vi6hPOh1xWednAmp1hEAfRqvA VJ02Q6N8tU3Y0xgJbp67oFNqk7TMNAYlsLs0emMQE0dWED3lkqWzhTpidkUwA9hcxHak 0SDH5yCknLdoc0etwSUa2uZK15bYFHe4Dz4yFIqyvaIqnPgD7qeo5M0z8oTTEFSlN3h5 f+zQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Gcba3nSrASmOMxPn5/+FGEYyz7Y0+H63Cau6YWzzsfI=; b=L+BvYKoRClDO0c2BhFCBPSm7OXPOeHco3oRSRmU2WEQK3taFYbmQ5LxC5thKXiRoK8 Z3G+03zWkVYq+cQBWnlLuLL8vv1LYG9wwh7xpT5UtxsNQzqIbnfIKpdI2Lv00CnRWkW+ 94mfCrh322if1AZ5ZKKc6/YuqOH/EHsUbqnnNif3U4FSUjks02lwPjzpCINb+abL1Mna L7iqSq/i+jAmxAPAq54yWV7WBAQ6ill3WlRBV5wZUFN9gUq930pPYPQP+QCuCMK3iKAu ywywugfN2bBVYQlLwIncDUJt1UQOfjnU0pJd59E9GI+w+BtDzWXWPkdv3G/7gPV/mgZ9 Qrbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=q8JtAEqZ; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v203si4385002oif.224.2020.03.13.04.11.43; Fri, 13 Mar 2020 04:11:55 -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 header.i=@ti.com header.s=ti-com-17Q1 header.b=q8JtAEqZ; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726623AbgCMLJb (ORCPT + 99 others); Fri, 13 Mar 2020 07:09:31 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:45860 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726414AbgCMLJb (ORCPT ); Fri, 13 Mar 2020 07:09:31 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 02DB9Rl9116314; Fri, 13 Mar 2020 06:09:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1584097767; bh=Gcba3nSrASmOMxPn5/+FGEYyz7Y0+H63Cau6YWzzsfI=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=q8JtAEqZ0Vo8O5HyQZARU8EY5pYSNsgL3rcDdn3U4rkjXRd+pMvW/9Q0YjOXPuTrF vlrVDldujyvuHTFbRIvMP4o85hP0JxGZHlqynKujRHkhkwe4HhjtGy/o1FVs44DFnO Kupm59OYnYlKEdBlqiPWlWG2ys23da0cpvNRtvvk= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 02DB9Qq3032533 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 13 Mar 2020 06:09:27 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Fri, 13 Mar 2020 06:09:26 -0500 Received: from localhost.localdomain (10.64.41.19) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Fri, 13 Mar 2020 06:09:26 -0500 Received: from [10.24.69.159] (ileax41-snat.itg.ti.com [10.172.224.153]) by localhost.localdomain (8.15.2/8.15.2) with ESMTP id 02DB9ObY004979; Fri, 13 Mar 2020 06:09:25 -0500 Subject: Re: [PATCH v6 1/3] dt-bindings: phy: Add DT bindings for Xilinx ZynqMP PSGTR PHY To: Laurent Pinchart , , Rob Herring CC: Anurag Kumar Vulisha , Michal Simek , References: <20200311103252.17514-1-laurent.pinchart@ideasonboard.com> <20200311103252.17514-2-laurent.pinchart@ideasonboard.com> From: Kishon Vijay Abraham I Message-ID: <57072adb-9967-f5d1-7a3d-af713e8c35cd@ti.com> Date: Fri, 13 Mar 2020 16:44:04 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200311103252.17514-2-laurent.pinchart@ideasonboard.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +Rob On 11/03/20 4:02 pm, Laurent Pinchart wrote: > 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 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 | 104 ++++++++++++++++++ > include/dt-bindings/phy/phy.h | 1 + > 2 files changed, 105 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..9948e4a60e45 > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/xlnx,zynqmp-psgtr.yaml > @@ -0,0 +1,104 @@ > +# 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 > + > +required: > + - "#phy-cells" > + - compatible > + - reg > + - reg-names > + > +if: > + properties: > + compatible: > + const: xlnx,zynqmp-psgtr > + > +then: > + properties: > + 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 > + > +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>; > + status = "okay"; > + }; > + > +... > 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 */ >