From patchwork Thu Dec 12 07:30:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 3329951 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7D7CD9F374 for ; Thu, 12 Dec 2013 07:32:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 86DB1207BF for ; Thu, 12 Dec 2013 07:32:42 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4439E207C1 for ; Thu, 12 Dec 2013 07:32:41 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vr0kS-00061X-Dd; Thu, 12 Dec 2013 07:31:53 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vr0kG-0003nG-Rw; Thu, 12 Dec 2013 07:31:40 +0000 Received: from exprod5og107.obsmtp.com ([64.18.0.184]) by merlin.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vr0k8-0003kZ-Fr for linux-arm-kernel@lists.infradead.org; Thu, 12 Dec 2013 07:31:34 +0000 Received: from mail-pd0-f177.google.com ([209.85.192.177]) (using TLSv1) by exprod5ob107.postini.com ([64.18.4.12]) with SMTP ID DSNKUqlmP6wbK1gPUkHYgJt5VaP8vUGGGS1r@postini.com; Wed, 11 Dec 2013 23:31:32 PST Received: by mail-pd0-f177.google.com with SMTP id q10so29344pdj.22 for ; Wed, 11 Dec 2013 23:31:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4gyCAJZV4aqV6oXgmql0kuBSC39XTGY+LWWpwPWKG8M=; b=GS5sdGz5urmSxFMJl6QKaVCwqSatRPnSCuY+uu3DMvOOIvbamfgG9bOt13dd8j+apC gZx+O8qfv3mBlc9Nlksm7Omb8gA+Jjm6cXpJRd2BR4IV+ms8cVB2ManCNJu02L631d8V l1EsaG099/RcAMvk/ZXbra/vIu94z/FY2emhwflWsmnlSfXZfcqwkRTuvByW65u69S9Y xo1LxkWIO5cr3CUNFF84rOJEXjV6w5J1pqXmGUG3Q/w30gLSjP7tliNnPcLyKUn9+Znm jt6gZZ1P/cnCYrw25mnSdXRp2smVnd5YGHoQvs8uSABglGlTsBa9lMSHABEy8T5ML6Ho me7g== X-Gm-Message-State: ALoCoQkstfMP4EKqZXudOkv+KvE5R8KcMRdMEepueTvlTY4W6VkYwdvtfqlT6YM4HEvQCY6ERGnzV8WVhIA/WtW8Ha5coiQ8/u4PDebYO2HfdBYi9QBYs/7RBTRA/Ktm4EC//Xhi3IGEENJdnWBBSdpOnjAAXi3urwsh7t1/0OsM0o2L/Q0VPXtUj1jp2eoCE2pnNOT7qxF8 X-Received: by 10.68.25.229 with SMTP id f5mr9517101pbg.6.1386833470884; Wed, 11 Dec 2013 23:31:10 -0800 (PST) X-Received: by 10.68.25.229 with SMTP id f5mr9517063pbg.6.1386833470718; Wed, 11 Dec 2013 23:31:10 -0800 (PST) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id om6sm16803553pbc.43.2013.12.11.23.31.09 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 11 Dec 2013 23:31:10 -0800 (PST) From: Loc Ho To: olof@lixom.net, tj@kernel.org, arnd@arndb.de Subject: [PATCH v4 2/4] Documentation: Add APM X-Gene SoC 15Gbps Multi-purpose PHY driver binding documentation Date: Thu, 12 Dec 2013 00:30:33 -0700 Message-Id: <1386833435-30498-3-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1386833435-30498-2-git-send-email-lho@apm.com> References: <1386833435-30498-1-git-send-email-lho@apm.com> <1386833435-30498-2-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131212_023132_920181_72C41D4D X-CRM114-Status: GOOD ( 12.76 ) X-Spam-Score: -4.2 (----) Cc: devicetree@vger.kernel.org, Suman Tripathi , linux-scsi@vger.kernel.org, jcm@redhat.com, patches@apm.com, linux-ide@vger.kernel.org, Loc Ho , Tuan Phan , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Loc Ho Signed-off-by: Tuan Phan Signed-off-by: Suman Tripathi --- .../devicetree/bindings/ata/apm-xgene-phy.txt | 89 ++++++++++++++++++++ 1 files changed, 89 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/ata/apm-xgene-phy.txt -- 1.5.5 diff --git a/Documentation/devicetree/bindings/ata/apm-xgene-phy.txt b/Documentation/devicetree/bindings/ata/apm-xgene-phy.txt new file mode 100644 index 0000000..3cbfa75 --- /dev/null +++ b/Documentation/devicetree/bindings/ata/apm-xgene-phy.txt @@ -0,0 +1,89 @@ +* APM X-Gene 15Gbps Multi-purpose PHY nodes + +PHY nodes are defined to describe on-chip 15Gbps Multi-purpose PHY. Each +PHY (pair of lanes) has its own node. + +Required properties: +- compatible : Shall be "apm,xgene-phy" or + "apm,xgene-phy-ext". The "apm,xgene-phy" describes + an PHY with internal reference PLL located within + the IP. The "apm,xgene-phy-ext" describes an PHY + where the internal reference PLL located outside of + the IP. +- reg : First PHY memory resource is the SDS PHY access + resource. + Second PHY memory resoruce is the clock and reset + resources. + Third PHY memory resource is the SDS PHY access + resource outside of the IP if it is type + "apm,xgene-phy-ext". +- #phy-cells : Shall be 1 as it expects one argument for setting + the mode of the PHY. Possible values are 0 (SATA), + 1 (SGMII), 2 (PCIe), or 3 (USB). + +Optional properties: +- status : Shall be "ok" if enabled or "disabled" if disabled. + Default is "ok". +- apm,tx-eye-tuning : Manual control to fine tune the capture of the serial + bit lines from the automatic calibrated position. + Two set of 3-tuple setting for Gen1, Gen2, and Gen3. + Range from 0 to 0x7f in unit of one bit period. + Default is 0xa. +- apm,tx-eye-direction : Eye tuning manual control direction. 0 means sample + data earlier than the nominal sampling point. 1 means + sample data later than the nominal sampling point. + Two set of 3-tuple setting for Gen1, Gen2, and Gen3. + Default is 0x0. +- apm,tx-boost-gain : Frequency boost AC (LSB 3-bit) and DC (2-bit) + gain control. Two set of 3-tuple setting for Gen1, + Gen2, and Gen3. Range is between 0 to 0x1f in unit + of dB. Default is 0x3. +- apm,tx-amplitude : Amplitude control. Two set of 3-tuple setting for + Gen1, Gen2, and Gen3. Range is between 0 to 0xf in + unit of 13.3mV. Default is 0xf. +- apm,tx-pre-cursor1 : 1st pre-cursor emphasis taps control. Two set of + 3-tuple setting for Gen1, Gen2, and Gen3. Range is + between 0 to 0xf in unit of 18.2mV. Default is 0x0. +- apm,tx-pre-cursor2 : 2st pre-cursor emphasis taps control. Two set of + 3-tuple setting for Gen1, Gen2, and Gen3. Range is + between 0 to 0x7 in unit of 18.2mV. Default is 0x0. +- apm,tx-post-cursor : Post-cursor emphasis taps control. Two set of + 3-tuple setting for Gen1, Gen2, and Gen3. Range is + between 0 to 0x1f in unit of 18.2mV. Default is 0xf. +- apm,tx-speed : Tx operating speed. One set of 3-tuple for + Gen1 (0x1), Gen2 (0x3), and Gen3 (0x7). Default is + 0x7. + +NOTE: PHY override parameters are board specific setting. + +Example: + phy1: phy@1f21a000 { + compatible = "apm,xgene-phy"; + reg = <0x0 0x1f21a000 0x0 0x100>, + <0x0 0x1f21c000 0x0 0x100>; + #phy-cells = <1>; + status = "disabled"; + apm,tx-boost-gain = <0x2 0x2 0x2 0x2 0x2 0x2>; + apm,tx-eye-tuning = <0xa 0xa 0xa 0xa 0xa 0xa>; + }; + + phy2: phy@1f22a000 { + compatible = "apm,xgene-phy"; + reg = <0x0 0x1f22a000 0x0 0x100>, + <0x0 0x1f22c000 0x0 0x100>; + #phy-cells = <1>; + status = "ok"; + apm,tx-boost-gain = <0x2 0x2 0x2 0x2 0x2 0x2>; + apm,tx-eye-tuning = <0xa 0xa 0xa 0x5 0x5 0x5>; + }; + + phy3: phy@1f23a000 { + compatible = "apm,xgene-phy-ext"; + reg = <0x0 0x1f23a000 0x0 0x100>, + <0x0 0x1f23c000 0x0 0x100>, + <0x0 0x1f2d0000 0x0 0x100>; + #phy-cells = <1>; + status = "ok"; + apm,tx-boost-gain = <0x3 0x3 0x3 0x3 0x3 0x3>; + apm,tx-eye-tuning = <0xa 0xa 0xa 0xc 0xc 0xc>; + };