From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756191AbcAMLJI (ORCPT ); Wed, 13 Jan 2016 06:09:08 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:52405 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754924AbcAMLJF (ORCPT ); Wed, 13 Jan 2016 06:09:05 -0500 Subject: Re: [PATCH 1/2] phy: zynqmp: Add dt bindings for ZynqMP PHY. To: Subbaraya Sundeep Bhatta , References: <1452676943-18931-1-git-send-email-sbhatta@xilinx.com> CC: , , , , Subbaraya Sundeep Bhatta From: Kishon Vijay Abraham I Message-ID: <5696304A.8090508@ti.com> Date: Wed, 13 Jan 2016 16:38:58 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <1452676943-18931-1-git-send-email-sbhatta@xilinx.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wednesday 13 January 2016 02:52 PM, Subbaraya Sundeep Bhatta wrote: > This patch adds the document describing dt bindings for ZynqMP > PHY. ZynqMP SOC has a High Speed Processing System Gigabit > Transceiver which provides PHY capabilties to USB, SATA, > PCIE, Display Port and Ehernet SGMII controllers. > > Signed-off-by: Subbaraya Sundeep Bhatta > --- > .../devicetree/bindings/phy/phy-zynqmp.txt | 104 +++++++++++++++++++++ > 1 file changed, 104 insertions(+) > create mode 100644 Documentation/devicetree/bindings/phy/phy-zynqmp.txt > > diff --git a/Documentation/devicetree/bindings/phy/phy-zynqmp.txt b/Documentation/devicetree/bindings/phy/phy-zynqmp.txt > new file mode 100644 > index 0000000..ec0d3de > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/phy-zynqmp.txt > @@ -0,0 +1,104 @@ > +Xilinx ZynqMP PHY binding > + > +This binding describes a ZynqMP PHY device that is used to control ZynqMP > +High Speed Gigabit Transceiver(GT). ZynqMP PS GTR provides four lanes > +and are used by USB, SATA, PCIE, Display port and Ethernet SGMMI controllers. > + > +Required properties (controller (parent) node): > +- compatible : Should be "xlnx,zynqmp-psgtr" > + > +- reg : Address and length of register sets for each device in > + "reg-names" > +- reg-names : The names of the register addresses corresponding to the > + registers filled in "reg": > + - serdes: SERDES block register set > + - siou: SIOU block register set > + - lpd: Low power domain peripherals reset control > + - fpd: Full power domain peripherals reset control > + > +-xlnx,tx_termination_fix: Include fix for a functional issue in the GT. The TX > + termination resistance can be out of spec due to a > + bug in the calibration logic. This issue will be fixed > + in silicon in future versions. > + > +Required nodes : A sub-node is required for each lane the controller > + provides. These nodes are translated by the driver's > + .xlate() function. driver details need not be in the binding documentation. > + > +Required properties (port (child) nodes): > +lane0: > +- #phy-cells : Should be 1 > + Cell after port phandle is device type from: > + - XPSGTR_TYPE_PCIE_0 > + - XPSGTR_TYPE_SATA_0 > + - XPSGTR_TYPE_USB0 > + - XPSGTR_TYPE_DP_1 > + - XPSGTR_TYPE_SGMII0 Why not use the already existing PHY TYPES? phy-cells can be made as '2' and the last cell can be used as index if that's required. Thanks Kishon