From patchwork Wed Feb 12 16:03:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 24552 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f199.google.com (mail-ob0-f199.google.com [209.85.214.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 20A0F203F3 for ; Wed, 12 Feb 2014 16:04:03 +0000 (UTC) Received: by mail-ob0-f199.google.com with SMTP id vb8sf36069227obc.6 for ; Wed, 12 Feb 2014 08:04:01 -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=Rt6GrAenb89t/XusK0/AiaLUxF+b5GXW7iF9vKQMlWrBG1Yb0ysJZTzmGhscBnLn8E ittLwHUf1UUedo7c3cWzSrr1FVh9lZ2PC7LHXgG1m7ODykwaew4xRa7OZc+Vp7oTDBq8 ex7BbPh51ny8PSK8kIjwQbtI/7/w3dpgXliXiUxWWL1VwIez1Oizi4c8xex7noauwMK6 6EL9DxS9xPzPGAknTtt+xQC9p3EJSer4C8Bo1jKzD2ceryMvCMGgAb13OWX04/DJs6G/ pbQX3nlNPEw5vZ9AjDhWRKRRKXYp+fbAKHhW4DVzmBANV9sLKLCvgyvmfIPMgeAbLlZ8 5Z9w== X-Gm-Message-State: ALoCoQkNGAqmAplkdbOwvNSYJzieZsk4uoTXI+XBr7Uc4X/K406stbLg4+X3ZEKjqpRC0n9Aq9/s X-Received: by 10.42.82.137 with SMTP id d9mr1776726icl.25.1392221041724; Wed, 12 Feb 2014 08:04:01 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.80 with SMTP id 74ls2929099qgo.61.gmail; Wed, 12 Feb 2014 08:04:01 -0800 (PST) X-Received: by 10.52.104.68 with SMTP id gc4mr27807384vdb.2.1392221041282; Wed, 12 Feb 2014 08:04:01 -0800 (PST) Received: from mail-vb0-f42.google.com (mail-vb0-f42.google.com [209.85.212.42]) by mx.google.com with ESMTPS id vd4si7465837vdc.0.2014.02.12.08.04.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Feb 2014 08:04:01 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.42 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.42; Received: by mail-vb0-f42.google.com with SMTP id i11so4100932vbh.1 for ; Wed, 12 Feb 2014 08:04:01 -0800 (PST) X-Received: by 10.221.29.137 with SMTP id ry9mr33599747vcb.6.1392221041195; Wed, 12 Feb 2014 08:04:01 -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 u4csp10974vcz; Wed, 12 Feb 2014 08:04:00 -0800 (PST) X-Received: by 10.194.58.132 with SMTP id r4mr1830997wjq.45.1392221039978; Wed, 12 Feb 2014 08:03:59 -0800 (PST) Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by mx.google.com with ESMTPS id wa6si11751736wjc.50.2014.02.12.08.03.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Feb 2014 08:03:59 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.174 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.174; Received: by mail-wi0-f174.google.com with SMTP id f8so7181055wiw.13 for ; Wed, 12 Feb 2014 08:03:59 -0800 (PST) X-Received: by 10.180.165.238 with SMTP id zb14mr2603284wib.51.1392221039421; Wed, 12 Feb 2014 08:03:59 -0800 (PST) Received: from localhost.localdomain ([80.76.198.141]) by mx.google.com with ESMTPSA id gc5sm6798365wib.0.2014.02.12.08.03.48 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Feb 2014 08:03:58 -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: Wed, 12 Feb 2014 16:03:04 +0000 Message-Id: <1392220985-28189-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1392220985-28189-1-git-send-email-lee.jones@linaro.org> References: <1392220985-28189-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.212.42 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>; + }; }; };