From patchwork Wed Feb 12 16:03:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 24550 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0B2C5203F3 for ; Wed, 12 Feb 2014 16:03:41 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id f73sf21728821yha.7 for ; Wed, 12 Feb 2014 08:03:41 -0800 (PST) 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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=H8ITToMMhKEh6DV/T7ah1fdShYC4vdOLpm3kj9gO948=; b=F5DOD7KehIX0mdPpYXjLoheVuDWQ2VnmsD/aoSIb1aBD0vUIwBDuumVWbGklIbwiFY 5XfveGwpSbh44BEakJ0cSlJSrbeqKclcfoMuclVxQf0BtiZpYStsl63mgDP0KGfya83c 906E22Rix31BWqsBoR1ZthBTswevX9fHxU0C2UbznBbP1i70BAjrH/79M4593F3sXQDA dItYcTu2+iRUcrU8+Bo1mjeEqeVWrb7YduPXt5ZYR9WTGs2/8GEtJ+O2XkscGZ98XSDw jRnRRLdW4l0yUc4iWtTIstwJ40SR6uoZ/Qrrsd5gJ7pz7/XFOHFSUyfA+WVESZEmLEB2 ovvw== X-Gm-Message-State: ALoCoQnCBnpuOJgHSDcAX9j2rR9tgPl1vpyXPRQdx8icVR9Py/5xafQaSRWi12UZF2g5aCG+S53d X-Received: by 10.58.152.228 with SMTP id vb4mr2027892veb.0.1392221021084; Wed, 12 Feb 2014 08:03:41 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.80.149 with SMTP id c21ls3066880qgd.52.gmail; Wed, 12 Feb 2014 08:03:40 -0800 (PST) X-Received: by 10.58.119.161 with SMTP id kv1mr16069133veb.21.1392221020900; Wed, 12 Feb 2014 08:03:40 -0800 (PST) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id kl10si7448738vdb.155.2014.02.12.08.03.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Feb 2014 08:03:40 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id ie18so7059833vcb.40 for ; Wed, 12 Feb 2014 08:03:40 -0800 (PST) X-Received: by 10.53.13.44 with SMTP id ev12mr28096365vdd.17.1392221020822; Wed, 12 Feb 2014 08:03:40 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp10933vcz; Wed, 12 Feb 2014 08:03:40 -0800 (PST) X-Received: by 10.194.109.68 with SMTP id hq4mr30860207wjb.12.1392221019528; Wed, 12 Feb 2014 08:03:39 -0800 (PST) Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by mx.google.com with ESMTPS id yn7si11752852wjc.37.2014.02.12.08.03.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Feb 2014 08:03:39 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.177 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.177; Received: by mail-wi0-f177.google.com with SMTP id e4so7146388wiv.16 for ; Wed, 12 Feb 2014 08:03:39 -0800 (PST) X-Received: by 10.180.76.168 with SMTP id l8mr2698961wiw.40.1392221018892; Wed, 12 Feb 2014 08:03:38 -0800 (PST) Received: from localhost.localdomain ([80.76.198.141]) by mx.google.com with ESMTPSA id gc5sm6798365wib.0.2014.02.12.08.03.24 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Feb 2014 08:03:37 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: alexandre.torgue@st.com, Lee Jones , devicetree@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH 1/4] phy: miphy365x: Add Device Tree bindings for the MiPHY365x Date: Wed, 12 Feb 2014 16:03:02 +0000 Message-Id: <1392220985-28189-1-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 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.220.181 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: 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: devicetree@vger.kernel.org Cc: Srinivas Kandagatla Signed-off-by: Lee Jones --- .../devicetree/bindings/phy/phy-miphy365x.txt | 43 ++++++++++++++++++++++ 1 file changed, 43 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..fdfa7ca --- /dev/null +++ b/Documentation/devicetree/bindings/phy/phy-miphy365x.txt @@ -0,0 +1,43 @@ +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 example) +- reg: Address and length of the register set for the device +- reg-names: The names of the register addresses corresponding to the + registers filled in "reg". +- st,syscfg : Should be a phandle of the syscfg node. + +Example: + + miphy365x_phy: miphy365x@0 { + compatible = "st,miphy365x-phy"; + #phy-cells = <1>; + 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>; + ... + };