From patchwork Wed Mar 12 13:14:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 26093 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f198.google.com (mail-yk0-f198.google.com [209.85.160.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id ADDA1203AB for ; Wed, 12 Mar 2014 13:16:04 +0000 (UTC) Received: by mail-yk0-f198.google.com with SMTP id 9sf53629622ykp.1 for ; Wed, 12 Mar 2014 06:16:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=eREZf03Tkp33gehdRh1wT063T6u/7lcjUBMfPA8Jy1U=; b=jFSfR86KqSNBYOEAEoIz8ttAvaK8sYeDuIhEGH4OYnUL8A358ATpHLFXpxuFHDSCy3 N+AHeTNtFjQr5172Zni60DhGpMZmHzcTFDdRb/T4NLCwmOzkxB42koAiv2dsUQFOM2mu i0gY38PsisGJYSpG4I23f82BuWvCvhLQL5+dKqbfKTNZnC/gg0WAStYtqgGEFef/IjU+ Hknfiu3xUp7iXDEhVC3pIIerQjo4hZnTNrZJdGYxN4PbG1hb4h3m3W2aR2JH/OQkpAEG jiYDSwfgS6sxktrSceoXuxX+hoVCe9NqFB0l9EvLXKIncWwUE3RYOqptIHhhVOp9WnIH nRdA== X-Gm-Message-State: ALoCoQmC/V3hXP6qqy0aJzeqBwCREKBJlgIwA8yTBCPV0UjxQOkCbg459eSlyQmDnTX7FSfnlBYi X-Received: by 10.236.209.134 with SMTP id s6mr15340094yho.40.1394630164285; Wed, 12 Mar 2014 06:16:04 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.31.139 with SMTP id f11ls2848093qgf.71.gmail; Wed, 12 Mar 2014 06:16:04 -0700 (PDT) X-Received: by 10.220.83.4 with SMTP id d4mr39969vcl.39.1394630164156; Wed, 12 Mar 2014 06:16:04 -0700 (PDT) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id t4si6756333vcz.133.2014.03.12.06.16.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Mar 2014 06:16:04 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.179; Received: by mail-ve0-f179.google.com with SMTP id db12so10017445veb.38 for ; Wed, 12 Mar 2014 06:16:04 -0700 (PDT) X-Received: by 10.58.178.238 with SMTP id db14mr1664044vec.25.1394630164078; Wed, 12 Mar 2014 06:16:04 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp287570vck; Wed, 12 Mar 2014 06:16:03 -0700 (PDT) X-Received: by 10.68.44.71 with SMTP id c7mr4995237pbm.24.1394630162534; Wed, 12 Mar 2014 06:16:02 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e2si2351020pba.121.2014.03.12.06.16.01; Wed, 12 Mar 2014 06:16:01 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754212AbaCLNPb (ORCPT + 26 others); Wed, 12 Mar 2014 09:15:31 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:53251 "EHLO mail-wg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753987AbaCLNP2 (ORCPT ); Wed, 12 Mar 2014 09:15:28 -0400 Received: by mail-wg0-f49.google.com with SMTP id a1so7184051wgh.32 for ; Wed, 12 Mar 2014 06:15:27 -0700 (PDT) X-Received: by 10.181.11.169 with SMTP id ej9mr7697800wid.18.1394630126889; Wed, 12 Mar 2014 06:15:26 -0700 (PDT) Received: from lee--X1.home (host109-148-116-196.range109-148.btcentralplus.com. [109.148.116.196]) by mx.google.com with ESMTPSA id dk9sm69664476wjb.4.2014.03.12.06.15.25 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Mar 2014 06:15:26 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: lee.jones@linaro.org, kernel@stlinux.com, alexandre.torgue@st.com, Kishon Vijay Abraham I Subject: [PATCH 1/4] phy: miphy365x: Add Device Tree bindings for the MiPHY365x Date: Wed, 12 Mar 2014 13:14:53 +0000 Message-Id: <1394630096-28564-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1394630096-28564-1-git-send-email-lee.jones@linaro.org> References: <1394630096-28564-1-git-send-email-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The MiPHY365x is a Generic PHY which can serve various SATA or PCIe devices. It has 2 ports which it can use for either; both SATA, both PCIe or one of each in any configuration. Cc: Kishon Vijay Abraham I Acked-by: Mark Rutland Acked-by: Alexandre Torgue Signed-off-by: Lee Jones --- .../devicetree/bindings/phy/phy-miphy365x.txt | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/phy-miphy365x.txt diff --git a/Documentation/devicetree/bindings/phy/phy-miphy365x.txt b/Documentation/devicetree/bindings/phy/phy-miphy365x.txt new file mode 100644 index 0000000..cb39de1 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/phy-miphy365x.txt @@ -0,0 +1,62 @@ +STMicroelectronics STi MIPHY365x PHY binding +============================================ + +This binding describes a miphy device that is used to control PHY hardware +for SATA and PCIe. + +Required properties: +- compatible : Should be "st,miphy365x-phy" +- #phy-cells : Should be 2 (See second example) + First cell is the port number from: + - MIPHY_PORT_0 + - MIPHY_PORT_1 + Second cell is device type from: + - MIPHY_TYPE_SATA + - MIPHY_TYPE_PCI +- 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", from: + - sata0: For SATA port 0 registers + - sata1: For SATA port 1 registers + - pcie0: For PCIE port 0 registers + - pcie1: For PCIE port 1 registers +- st,syscfg : Should be a phandle of the system configuration register group + which contain the SATA, PCIe mode setting bits + +Optional properties: +- st,sata-gen : Generation of locally attached SATA IP. Expected values + are {1,2,3). If not supplied generation 1 hardware will + be expected +- st,pcie-tx-pol-inv : Bool property to invert the polarity PCIe Tx (Txn/Txp) +- st,sata-tx-pol-inv : Bool property to invert the polarity SATA Tx (Txn/Txp) + +Example: + + miphy365x_phy: miphy365x@fe382000 { + compatible = "st,miphy365x-phy"; + #phy-cells = <2>; + reg = <0xfe382000 0x100>, + <0xfe38a000 0x100>, + <0xfe394000 0x100>, + <0xfe804000 0x100>; + reg-names = "sata0", "sata1", "pcie0", "pcie1"; + st,syscfg = <&syscfg_rear>; + }; + +Specifying phy control of devices +================================= + +Device nodes should specify the configuration required in their "phys" +property, containing a phandle to the miphy device node, a port number +and a device type. + +Example: + +#include + + sata0: sata@fe380000 { + ... + phys = <&miphy365x_phy MIPHY_PORT_0 MIPHY_TYPE_SATA>; + ... + };