From patchwork Thu May 22 13:53:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 30627 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f69.google.com (mail-pa0-f69.google.com [209.85.220.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C603320671 for ; Thu, 22 May 2014 13:53:59 +0000 (UTC) Received: by mail-pa0-f69.google.com with SMTP id ey11sf10838086pad.8 for ; Thu, 22 May 2014 06:53:59 -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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=01QUpYwjHFtYqOoi9sUTVr0RrOOUWxBtlPvSsh44lOw=; b=ZKkw17fug7WR4GsE8Dwp6AJWKd/uXRlGbvpeV/6XfaUJdZf3Jub5ZUgU7Jv3HgibzT Y0ud4PVqndCop5Gv4za7bm04foyV7lpUnc0HKOtzrMgrKs5NtCJZHishlTw58ipolC6m F190pRzL80FQWD6S+wyQwogRnKaW2pkZ70hO5hGej4YADvImM7O/SYCePSun6Wz9PrZm Ir0NEDtTBDdqM1YHnl5uDlP8S0IppJcT/HZRLWvfoWm9JIQy9MYzLCo5A6NQdfFh/CZE GKZrFMnhQd+h3ZykhSPi5Kq3yiYSs7MaosHG2LJMYQYpREMRsuJNaQFUHZP3KbYqRPo4 GJmg== X-Gm-Message-State: ALoCoQkvLFa1edTNQ3hbY1ZmO1/qzPmfdZv6SwshMcC3E/x7TVCHaWPGaiIGTeHp9e3mzmc/CPOv X-Received: by 10.68.230.193 with SMTP id ta1mr26054453pbc.6.1400766839111; Thu, 22 May 2014 06:53:59 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.94.145 with SMTP id g17ls1235471qge.76.gmail; Thu, 22 May 2014 06:53:59 -0700 (PDT) X-Received: by 10.221.26.10 with SMTP id rk10mr9423369vcb.0.1400766838928; Thu, 22 May 2014 06:53:58 -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 bu8si3168260vdb.79.2014.05.22.06.53.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 May 2014 06:53:58 -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 lf12so4439802vcb.15 for ; Thu, 22 May 2014 06:53:58 -0700 (PDT) X-Received: by 10.53.13.133 with SMTP id ey5mr13480384vdd.8.1400766838857; Thu, 22 May 2014 06:53:58 -0700 (PDT) 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.221.72 with SMTP id ib8csp200877vcb; Thu, 22 May 2014 06:53:58 -0700 (PDT) X-Received: by 10.50.82.105 with SMTP id h9mr21947593igy.6.1400766838263; Thu, 22 May 2014 06:53:58 -0700 (PDT) Received: from mail-ig0-f170.google.com (mail-ig0-f170.google.com [209.85.213.170]) by mx.google.com with ESMTPS id f14si17383250ick.91.2014.05.22.06.53.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 May 2014 06:53:58 -0700 (PDT) Received-SPF: pass (google.com: domain of lee.jones@linaro.org designates 209.85.213.170 as permitted sender) client-ip=209.85.213.170; Received: by mail-ig0-f170.google.com with SMTP id uy17so6242331igb.5 for ; Thu, 22 May 2014 06:53:58 -0700 (PDT) X-Received: by 10.50.153.11 with SMTP id vc11mr21868160igb.24.1400766838019; Thu, 22 May 2014 06:53:58 -0700 (PDT) Received: from localhost.localdomain (host109-148-113-200.range109-148.btcentralplus.com. [109.148.113.200]) by mx.google.com with ESMTPSA id qo12sm13436327igb.21.2014.05.22.06.53.56 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 May 2014 06:53:57 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kishon@ti.com Cc: Lee Jones , Srinivas Kandagatla Subject: [PATCH 3/4] ARM: DT: STi: Add DT node for MiPHY365x Date: Thu, 22 May 2014 14:53:38 +0100 Message-Id: <1400766819-22286-4-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1400766819-22286-1-git-send-email-lee.jones@linaro.org> References: <1400766819-22286-1-git-send-email-lee.jones@linaro.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 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: Srinivas Kandagatla 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 | 6 ++++++ arch/arm/boot/dts/stih416.dtsi | 14 ++++++++++++++ 3 files changed, 25 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 276f28d..172f222 100644 --- a/arch/arm/boot/dts/stih416-b2020.dts +++ b/arch/arm/boot/dts/stih416-b2020.dts @@ -13,4 +13,10 @@ model = "STiH416 B2020"; compatible = "st,stih416", "st,stih416-b2020"; + 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 78746d2..00b217a 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 / { @@ -224,5 +226,17 @@ status = "disabled"; }; + + miphy365x_phy: miphy365x@fe382000 { + compatible = "st,miphy365x-phy"; + reg = <0xfe382000 0x100>, + <0xfe38a000 0x100>, + <0xfe394000 0x100>, + <0xfe804000 0x100>; + reg-names = "sata0", "sata1", "pcie0", "pcie1"; + + #phy-cells = <2>; + st,syscfg = <&syscfg_rear>; + }; }; };