From patchwork Tue Feb 25 18:41:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 3718461 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C4AF4BF13A for ; Tue, 25 Feb 2014 18:43:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D7BF7201F5 for ; Tue, 25 Feb 2014 18:43:37 +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 D7843201F4 for ; Tue, 25 Feb 2014 18:43:36 +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 1WIMxx-000312-3J; Tue, 25 Feb 2014 18:42: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 1WIMxp-0003dE-8u; Tue, 25 Feb 2014 18:42:45 +0000 Received: from exprod5og106.obsmtp.com ([64.18.0.182]) by merlin.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WIMxU-0003Yw-7J for linux-arm-kernel@lists.infradead.org; Tue, 25 Feb 2014 18:42:26 +0000 Received: from mail-pd0-f179.google.com ([209.85.192.179]) (using TLSv1) by exprod5ob106.postini.com ([64.18.4.12]) with SMTP ID DSNKUwzj+pHLwefTjwlJIl41JSh00HhpMnJm@postini.com; Tue, 25 Feb 2014 10:42:24 PST Received: by mail-pd0-f179.google.com with SMTP id w10so337791pde.24 for ; Tue, 25 Feb 2014 10:42:02 -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=JCoc7eL8Ikje3+07q+9Cx3DenKpznNsh9E1VS+922Ow=; b=V589jNfveTbzIjqXgu1LGABGqWqrtRqya5JB3F5zzD4FUT1w5sSFVhb0LRu+AEKWEV Sh9Wxh7mAUNbOtTAt0d7JS3wBW5EEh2RYczyjmSMiAiNRQHVYhe1BdNutNhqQnKPyDTJ eKpHWEhkbD5obHc6uoQ8ojDm+13RDB4JEBWvJN0ABHnHgqOaYN3iyfSekHJenkRVxNF4 r8vKxZl84pgUIE9RkI3pJ113xrJp7V/r8Az8ob9U53yU2hYQSBjPRCQN2RShtPez5HS1 JF+LXBs3oEY478mFsRxbJq4DdLWY/IQKILCFUXQwu/SIdPUP2jWJuSne5MOZLfybsTzD QwJg== X-Gm-Message-State: ALoCoQlzzfR6yRRynmyh7XqUaBQVkeAZFiaqzBOWxL8TBWhtI/Fx4JuWnT5UEPXIwXqdYqjF/yNCaTAtZdc81yulzs/qAilKGQzJJGKt/SyKMjB+7rU8AtQ/6qo2QBmmGd+vbeYEhbZopXio5vop7D2ESbeZYNh702ywqVPfb8Co2x9SNkg7G6I3BG37/JcC2WPijHIh6Ive X-Received: by 10.67.2.106 with SMTP id bn10mr3354861pad.38.1393353722457; Tue, 25 Feb 2014 10:42:02 -0800 (PST) X-Received: by 10.67.2.106 with SMTP id bn10mr3354837pad.38.1393353722369; Tue, 25 Feb 2014 10:42:02 -0800 (PST) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id zc6sm148801975pab.18.2014.02.25.10.41.59 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 25 Feb 2014 10:42:01 -0800 (PST) From: Loc Ho To: kishon@ti.com, tj@kernel.org Subject: [PATCH v11 2/4] Documentation: Add APM X-Gene SoC 15Gbps Multi-purpose PHY driver binding documentation Date: Tue, 25 Feb 2014 11:41:37 -0700 Message-Id: <1393353699-6443-3-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1393353699-6443-2-git-send-email-lho@apm.com> References: <1393353699-6443-1-git-send-email-lho@apm.com> <1393353699-6443-2-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140225_134224_487692_7F827A22 X-CRM114-Status: GOOD ( 12.92 ) X-Spam-Score: -1.1 (-) Cc: devicetree@vger.kernel.org, Suman Tripathi , linux-scsi@vger.kernel.org, arnd@arndb.de, jcm@redhat.com, patches@apm.com, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, ddutile@redhat.com, Loc Ho , olof@lixom.net, 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=-1.1 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=no 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 This patch adds APM X-Gene SoC 15Gbps Multi-purpose PHY driver binding documentation. Signed-off-by: Loc Ho Signed-off-by: Tuan Phan Signed-off-by: Suman Tripathi --- .../devicetree/bindings/phy/apm-xgene-phy.txt | 79 ++++++++++++++++++++ 1 files changed, 79 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/apm-xgene-phy.txt diff --git a/Documentation/devicetree/bindings/phy/apm-xgene-phy.txt b/Documentation/devicetree/bindings/phy/apm-xgene-phy.txt new file mode 100644 index 0000000..5f3a65a --- /dev/null +++ b/Documentation/devicetree/bindings/phy/apm-xgene-phy.txt @@ -0,0 +1,79 @@ +* 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". +- reg : PHY memory resource is the SDS PHY access resource. +- #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), 3 (USB), and 4 (XFI). + +Optional properties: +- status : Shall be "ok" if enabled or "disabled" if disabled. + Default is "ok". +- clocks : Reference to the clock entry. +- 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 each (up to 3) + supported link speed on the host. Range from 0 to + 127 in unit of one bit period. Default is 10. +- 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 each (up to 3) + supported link speed on the host. Default is 0. +- apm,tx-boost-gain : Frequency boost AC (LSB 3-bit) and DC (2-bit) + gain control. Two set of 3-tuple setting for each + (up to 3) supported link speed on the host. Range is + between 0 to 31 in unit of dB. Default is 3. +- apm,tx-amplitude : Amplitude control. Two set of 3-tuple setting for + each (up to 3) supported link speed on the host. + Range is between 0 to 199500 in unit of uV. + Default is 199500 uV. +- apm,tx-pre-cursor1 : 1st pre-cursor emphasis taps control. Two set of + 3-tuple setting for each (up to 3) supported link + speed on the host. Range is 0 to 273000 in unit of + uV. Default is 0. +- apm,tx-pre-cursor2 : 2st pre-cursor emphasis taps control. Two set of + 3-tuple setting for each (up to 3) supported link + speed on the host. Range is 0 to 127400 in unit uV. + 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 each + supported link speed on the host. + 0 = 1-2Gbps + 1 = 2-4Gbps (1st tuple default) + 2 = 4-8Gbps + 3 = 8-15Gbps (2nd tuple default) + 4 = 2.5-4Gbps + 5 = 4-5Gbps + 6 = 5-6Gbps + 7 = 6-16Gbps (3rd tuple default) + +NOTE: PHY override parameters are board specific setting. + +Example: + phy1: phy@1f21a000 { + compatible = "apm,xgene-phy"; + reg = <0x0 0x1f21a000 0x0 0x100>; + #phy-cells = <1>; + status = "disabled"; + }; + + phy2: phy@1f22a000 { + compatible = "apm,xgene-phy"; + reg = <0x0 0x1f22a000 0x0 0x100>; + #phy-cells = <1>; + status = "ok"; + }; + + phy3: phy@1f23a000 { + compatible = "apm,xgene-phy"; + reg = <0x0 0x1f23a000 0x0 0x100>; + #phy-cells = <1>; + status = "ok"; + };