From patchwork Fri Feb 14 11:23:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 24628 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 800F2202B2 for ; Fri, 14 Feb 2014 11:24:33 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id h16sf48984101oag.4 for ; Fri, 14 Feb 2014 03:24:32 -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: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=A6K63zW/rOSaVFVuPXlwQcBXwShf1PkeHr9WEDvnLOY=; b=bsxO6Vf5zD5g3ZG93iHgW+mkxThjpWvWtgUJqimXWPB2RW8wIqXT/wy1MFvNz8tnZe F35Ez33AwZkPjT7r4D5G29bZJ497+88aDkRswVEOi+ILSvs8115jfvBKfml2LnP952I9 u/N9QdLMdlgigfRTaGa8d0HrhpM8LID0/Ow34Z7cJD0bhA43J8Ll1edyft7c5sALAw5G Fk4r3YACENHaIoWR8GPLBee2264M+KAVM+bC0GBgMCcEtcX53xAS0owykXKg51BlTj8W teXfz1kCkrln7X2Qg6WazaZJhLQdVDk4uihB06RqC9a7CcS+KSCmabl90Oh15m5fXwa4 bLJg== X-Gm-Message-State: ALoCoQldstJQmpb+NR+abyRTPn1YMVmnWimDYaTHOElyGtGvRzXoDmynqdLLC7yIaKcZsdKjLIas X-Received: by 10.182.60.37 with SMTP id e5mr2829799obr.30.1392377072527; Fri, 14 Feb 2014 03:24:32 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.42.14 with SMTP id b14ls43410qga.47.gmail; Fri, 14 Feb 2014 03:24:32 -0800 (PST) X-Received: by 10.53.13.44 with SMTP id ev12mr4231324vdd.17.1392377072414; Fri, 14 Feb 2014 03:24:32 -0800 (PST) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id y3si1814291vdo.19.2014.02.14.03.24.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 03:24:29 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.175 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.175; Received: by mail-ve0-f175.google.com with SMTP id c14so9656274vea.34 for ; Fri, 14 Feb 2014 03:24:29 -0800 (PST) X-Received: by 10.52.166.9 with SMTP id zc9mr4251029vdb.16.1392377069695; Fri, 14 Feb 2014 03:24:29 -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 u4csp101105vcz; Fri, 14 Feb 2014 03:24:28 -0800 (PST) X-Received: by 10.194.219.132 with SMTP id po4mr5518920wjc.7.1392377054572; Fri, 14 Feb 2014 03:24:14 -0800 (PST) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx.google.com with ESMTPS id v4si3466365wjz.106.2014.02.14.03.24.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 03:24:14 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.50; Received: by mail-wg0-f50.google.com with SMTP id z12so284598wgg.17 for ; Fri, 14 Feb 2014 03:24:14 -0800 (PST) X-Received: by 10.180.37.162 with SMTP id z2mr1715018wij.51.1392377054127; Fri, 14 Feb 2014 03:24:14 -0800 (PST) Received: from localhost.localdomain ([80.76.198.141]) by mx.google.com with ESMTPSA id gt6sm3601775wib.8.2014.02.14.03.24.11 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 03:24:13 -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 3/4] ARM: DT: STi: Add DT node for MiPHY365x Date: Fri, 14 Feb 2014 11:23:55 +0000 Message-Id: <1392377036-12816-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1392377036-12816-1-git-send-email-lee.jones@linaro.org> References: <1392377036-12816-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=neutral (google.com: 209.85.128.175 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 --- arch/arm/boot/dts/stih416-b2020-revE.dts | 6 +++++- arch/arm/boot/dts/stih416-b2020.dts | 6 ++++++ arch/arm/boot/dts/stih416.dtsi | 13 +++++++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stih416-b2020-revE.dts b/arch/arm/boot/dts/stih416-b2020-revE.dts index a874570..dbe67fa 100644 --- a/arch/arm/boot/dts/stih416-b2020-revE.dts +++ b/arch/arm/boot/dts/stih416-b2020-revE.dts @@ -32,6 +32,10 @@ ethernet1: ethernet@fef08000 { snps,reset-gpio = <&PIO0 7>; }; - }; + miphy365x_phy: miphy365x@0 { + st,pcie_tx_pol_inv = <1>; + st,sata_gen = "gen3"; + }; + }; }; diff --git a/arch/arm/boot/dts/stih416-b2020.dts b/arch/arm/boot/dts/stih416-b2020.dts index 276f28d..fd9cbad 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@0 { + st,pcie_tx_pol_inv = <1>; + st,sata_gen = "gen3"; + }; + }; }; diff --git a/arch/arm/boot/dts/stih416.dtsi b/arch/arm/boot/dts/stih416.dtsi index 85b8063..9fd8efb 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 / { @@ -140,5 +142,16 @@ clocks = <&CLK_S_ICN_REG_0>; }; + miphy365x_phy: miphy365x@0 { + 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>; + }; }; };