From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933294AbcAMJhQ (ORCPT ); Wed, 13 Jan 2016 04:37:16 -0500 Received: from mail-bl2nam02on0070.outbound.protection.outlook.com ([104.47.38.70]:62176 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932117AbcAMJhL (ORCPT ); Wed, 13 Jan 2016 04:37:11 -0500 X-Greylist: delayed 871 seconds by postgrey-1.27 at vger.kernel.org; Wed, 13 Jan 2016 04:37:11 EST Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; From: Subbaraya Sundeep Bhatta To: , CC: , , , , "Subbaraya Sundeep Bhatta" Subject: [PATCH 1/2] phy: zynqmp: Add dt bindings for ZynqMP PHY. Date: Wed, 13 Jan 2016 14:52:23 +0530 Message-ID: <1452676943-18931-1-git-send-email-sbhatta@xilinx.com> X-Mailer: git-send-email 2.1.2 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-22060.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:149.199.60.100;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(199003)(189002)(107886002)(5001960100002)(81156007)(5001770100001)(92566002)(5003940100001)(189998001)(63266004)(42186005)(52956003)(575784001)(47776003)(33646002)(106466001)(50986999)(87936001)(103686003)(86362001)(2906002)(6806005)(19580405001)(4326007)(4001430100002)(19580395003)(46386002)(5008740100001)(90966002)(48376002)(50226001)(45336002)(1096002)(229853001)(50466002)(586003)(1220700001)(36756003)(36386004)(11100500001)(107986001)(5001870100001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL2NAM02HT116;H:xsj-pvapsmtpgw02;FPR:;SPF:Pass;PTR:unknown-60-100.xilinx.com,xapps1.xilinx.com;A:1;MX:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: caea9855-8486-4d8d-5c2b-08d31bfb11ae X-Exchange-Antispam-Report-Test: UriScan:;BCL:0;PCL:0;RULEID:(8251501002);SRVR:BL2NAM02HT116;UriScan:(192813158149592); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(13018025)(13017025)(13015025)(520078)(8121501046)(10201501046)(3002001);SRVR:BL2NAM02HT116;BCL:0;PCL:0;RULEID:;SRVR:BL2NAM02HT116; X-Forefront-PRVS: 08200063E9 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jan 2016 09:22:33.4096 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.100];Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2NAM02HT116 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. + +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 +lane1: +- #phy-cells : Should be 1 + Cell after port phandle is device type from: + - XPSGTR_TYPE_PCIE_1 + - XPSGTR_TYPE_SATA_1 + - XPSGTR_TYPE_USB0 + - XPSGTR_TYPE_DP_0 + - XPSGTR_TYPE_SGMII1 +lane2: +- #phy-cells : Should be 1 + Cell after port phandle is device type from: + - XPSGTR_TYPE_PCIE_2 + - XPSGTR_TYPE_SATA_0 + - XPSGTR_TYPE_USB0 + - XPSGTR_TYPE_DP_1 + - XPSGTR_TYPE_SGMII2 +lane3: +- #phy-cells : Should be 1 + Cell after port phandle is device type from: + - XPSGTR_TYPE_PCIE_3 + - XPSGTR_TYPE_SATA_1 + - XPSGTR_TYPE_USB1 + - XPSGTR_TYPE_DP_0 + - XPSGTR_TYPE_SGMII3 + +Example: + zynqmp_phy@fd400000 { + compatible = "xlnx,zynqmp-psgtr"; + status = "okay"; + reg = <0x0 0xfd400000 0x40000>, <0x0 0xfd3d0000 0x1000>, + <0x0 0xfd1a0000 0x1000>, <0x0 0xff5e0000 0x1000>; + reg-names = "serdes", "siou", "fpd", "lpd"; + + lane0: lane@0 { + #phy-cells = <1>; + }; + lane1: lane@1 { + #phy-cells = <1>; + }; + lane2: lane@2 { + #phy-cells = <1>; + }; + lane3: lane@3 { + #phy-cells = <1>; + }; + }; + +Specifying phy control of devices +================================= + +Device nodes should specify the configuration required in their "phys" +property, containing a phandle to the phy port node and a device type. + +Example: + +#include + + usb@fe200000 { + ... + phys = <&lane2 XPSGTR_TYPE_USB0>; + ... + }; + + ahci@fd0c0000 { + ... + phys = <&lane3 XPSGTR_TYPE_SATA_0>; + ... + }; -- 2.1.2