From patchwork Mon Jun 30 13:01:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 32721 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f198.google.com (mail-vc0-f198.google.com [209.85.220.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A3D6621131 for ; Mon, 30 Jun 2014 13:02:37 +0000 (UTC) Received: by mail-vc0-f198.google.com with SMTP id hy10sf16673427vcb.1 for ; Mon, 30 Jun 2014 06:02:37 -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=UmqVIl0WXX1P5lg5xTtj6pD4jt5UoMTHhbzjY/XQ6pY=; b=k5BH8JWv+VvHJr9mwU6jvXCUXu7FgJi/XvdakmCDCVnZ1k1Hcw/M1zHQH4pGa5XbAM lH8xrDcvGaLUadMc/vo/1owSQJMjCxoie360YEHHM3CVSCcZfrvUgHc3yLgDJWOzd9GD QhUxFYs2vuaP+MGGSTBOGIFg8FrKOd23AZSSLu5ZV3YuumzRHSf/ZNYv2yv2oYi0zJuY zT27x0568M0FVyEFkmQA2yEWtQkqOvf+ZUjw5p7bmBzX+JXL7wcsAhv0s/sKXpbQ23xy T0BIVLnoC/4nK5FDvTbpvi+VJNnM3W4M1++8xa4S+v0CPjeouHrjwMfku524SeFr8HU0 9tQw== X-Gm-Message-State: ALoCoQnUNQbFICJNvqjF1y51eb4UrU3b521rZNY7VThR6yi00sxGarl/Skn/X0+ssgbu8vlFx1Lu X-Received: by 10.236.47.163 with SMTP id t23mr425561yhb.41.1404133357148; Mon, 30 Jun 2014 06:02:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.83.50 with SMTP id i47ls1479281qgd.38.gmail; Mon, 30 Jun 2014 06:02:37 -0700 (PDT) X-Received: by 10.220.174.137 with SMTP id t9mr38364431vcz.12.1404133357054; Mon, 30 Jun 2014 06:02:37 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id s19si10005046vcp.1.2014.06.30.06.02.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Jun 2014 06:02:37 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id hy10so7524613vcb.1 for ; Mon, 30 Jun 2014 06:02:37 -0700 (PDT) X-Received: by 10.52.248.146 with SMTP id ym18mr31886469vdc.8.1404133356956; Mon, 30 Jun 2014 06:02:36 -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.221.37.5 with SMTP id tc5csp136844vcb; Mon, 30 Jun 2014 06:02:36 -0700 (PDT) X-Received: by 10.66.224.38 with SMTP id qz6mr51759492pac.153.1404133356195; Mon, 30 Jun 2014 06:02:36 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yh3si23050129pab.170.2014.06.30.06.02.35; Mon, 30 Jun 2014 06:02:35 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755669AbaF3NCa (ORCPT + 27 others); Mon, 30 Jun 2014 09:02:30 -0400 Received: from mail-ie0-f173.google.com ([209.85.223.173]:44848 "EHLO mail-ie0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755111AbaF3NC1 (ORCPT ); Mon, 30 Jun 2014 09:02:27 -0400 Received: by mail-ie0-f173.google.com with SMTP id y20so6851776ier.32 for ; Mon, 30 Jun 2014 06:02:26 -0700 (PDT) X-Received: by 10.43.69.202 with SMTP id yd10mr36632050icb.36.1404133346353; Mon, 30 Jun 2014 06:02:26 -0700 (PDT) Received: from localhost.localdomain (host109-148-235-194.range109-148.btcentralplus.com. [109.148.235.194]) by mx.google.com with ESMTPSA id d10sm14313253igz.11.2014.06.30.06.02.24 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Jun 2014 06:02:25 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kishon@ti.com Cc: lee.jones@linaro.org, kernel@stlinux.com Subject: [PATCH 5/5] ARM: DT: STi: Add DT node for MiPHY365x Date: Mon, 30 Jun 2014 14:01:57 +0100 Message-Id: <1404133317-25953-6-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1404133317-25953-1-git-send-email-lee.jones@linaro.org> References: <1404133317-25953-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=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) 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. Acked-by: Mark Rutland Acked-by: Alexandre Torgue Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih416-b2020-revE.dts | 5 +++++ arch/arm/boot/dts/stih416-b2020.dts | 7 +++++++ arch/arm/boot/dts/stih416.dtsi | 21 +++++++++++++++++++++ 3 files changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/stih416-b2020-revE.dts b/arch/arm/boot/dts/stih416-b2020-revE.dts index ba0fa2c..0e2c870 100644 --- a/arch/arm/boot/dts/stih416-b2020-revE.dts +++ b/arch/arm/boot/dts/stih416-b2020-revE.dts @@ -31,5 +31,10 @@ ethernet1: dwmac@fef08000 { snps,reset-gpio = <&PIO0 7>; }; + + miphy365x_phy: miphy365x@fe382000 { + st,pcie-tx-pol-inv; + st,sata-gen = <3>; + }; }; }; diff --git a/arch/arm/boot/dts/stih416-b2020.dts b/arch/arm/boot/dts/stih416-b2020.dts index 4e2df66..6f1145c 100644 --- a/arch/arm/boot/dts/stih416-b2020.dts +++ b/arch/arm/boot/dts/stih416-b2020.dts @@ -12,4 +12,11 @@ / { model = "STiH416 B2020"; compatible = "st,stih416-b2020", "st,stih416"; + + soc { + miphy365x_phy: miphy365x@fe382000 { + st,pcie-tx-pol-inv; + st,sata-gen = <3>; + }; + }; }; diff --git a/arch/arm/boot/dts/stih416.dtsi b/arch/arm/boot/dts/stih416.dtsi index 06473c5..6d7aee3 100644 --- a/arch/arm/boot/dts/stih416.dtsi +++ b/arch/arm/boot/dts/stih416.dtsi @@ -9,6 +9,8 @@ #include "stih41x.dtsi" #include "stih416-clock.dtsi" #include "stih416-pinctrl.dtsi" + +#include #include #include / { @@ -236,5 +238,24 @@ resets = <&powerdown STIH416_KEYSCAN_POWERDOWN>, <&softreset STIH416_KEYSCAN_SOFTRESET>; }; + + miphy365x_phy: miphy365x@fe382000 { + compatible = "st,miphy365x-phy"; + st,syscfg = <&syscfg_rear>; + #phy-cells = <2>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + phy_port0: port@fe382000 { + reg = <0xfe382000 0x100>, <0xfe394000 0x100>; + reg-names = "sata", "pcie"; + }; + + phy_port1: port@fe38a000 { + reg = <0xfe38a000 0x100>, <0xfe804000 0x100>; + reg-names = "sata", "pcie"; + }; + }; }; };