From patchwork Fri Jul 11 11:54:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 33486 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f199.google.com (mail-ie0-f199.google.com [209.85.223.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0C0C920672 for ; Fri, 11 Jul 2014 11:54:24 +0000 (UTC) Received: by mail-ie0-f199.google.com with SMTP id tr6sf4798691ieb.6 for ; Fri, 11 Jul 2014 04:54:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:date:from:to:cc:subject:message-id :references:mime-version:in-reply-to:user-agent:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe :content-type:content-disposition; bh=lcnX7aeFQwmC/qK/glfMIZ9xox15FWh5vlDRUzniqIA=; b=IiTE9LNaaXyT6C9yHiuL58Pi0M79B1yQMxwoiGRUnjPuinXvBxoirn++PM9IW2/qwH Ck7UVvyLtrAknjdDui/USlpL0PnSyXPPr2ZmadesvI73mn4RHa5v2Cee7X7n+1GGnLcW 6aWjEyquRX7vZYhVNRAmxsCdLDiHFtzSNJZudj03dhbKRL11d+NsnWLEYW7XdXMFjxp0 4XE7AmO0Hl/gvOZnITEOXF+TB4tw6gCPb1GkvLAqIo+BLLu9/QKJ0C3wuVThUlJk2Ta9 R0koJHFYEuRvqvM5bgTtcqB+5G8vAW+uNHafbDDExXQVDd+pP+Hbn5RwCOWbHALdsFGK no1A== X-Gm-Message-State: ALoCoQlA/oXv7nJet0qP7bXoOf91ienNp2DF7iC4gTRg990vBYwKz+cMACELYDMRfnYieaO2bRqD X-Received: by 10.50.57.111 with SMTP id h15mr1606061igq.3.1405079664246; Fri, 11 Jul 2014 04:54:24 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.28.4 with SMTP id 4ls373724qgy.98.gmail; Fri, 11 Jul 2014 04:54:24 -0700 (PDT) X-Received: by 10.58.8.12 with SMTP id n12mr51702872vea.28.1405079664094; Fri, 11 Jul 2014 04:54:24 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id yu1si1366747vdb.6.2014.07.11.04.54.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Jul 2014 04:54:24 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id lf12so1774142vcb.4 for ; Fri, 11 Jul 2014 04:54:24 -0700 (PDT) X-Received: by 10.52.22.77 with SMTP id b13mr138202vdf.83.1405079663990; Fri, 11 Jul 2014 04:54:23 -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 tc5csp28757vcb; Fri, 11 Jul 2014 04:54:23 -0700 (PDT) X-Received: by 10.70.15.194 with SMTP id z2mr1582601pdc.158.1405079663093; Fri, 11 Jul 2014 04:54:23 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c8si1134510pdl.33.2014.07.11.04.54.22; Fri, 11 Jul 2014 04:54:22 -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 S1752507AbaGKLyN (ORCPT + 28 others); Fri, 11 Jul 2014 07:54:13 -0400 Received: from mail-ig0-f170.google.com ([209.85.213.170]:48671 "EHLO mail-ig0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751787AbaGKLyM (ORCPT ); Fri, 11 Jul 2014 07:54:12 -0400 Received: by mail-ig0-f170.google.com with SMTP id h3so425805igd.5 for ; Fri, 11 Jul 2014 04:54:11 -0700 (PDT) X-Received: by 10.42.162.71 with SMTP id w7mr3967031icx.50.1405079651267; Fri, 11 Jul 2014 04:54:11 -0700 (PDT) Received: from lee--X1 (host109-148-237-85.range109-148.btcentralplus.com. [109.148.237.85]) by mx.google.com with ESMTPSA id d4sm5369242igc.5.2014.07.11.04.54.09 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 11 Jul 2014 04:54:10 -0700 (PDT) Date: Fri, 11 Jul 2014 12:54:06 +0100 From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kishon@ti.com Cc: kernel@stlinux.com Subject: [PATCH v3+1 5/5] ARM: DT: STi: STiH416: Add DT node for MiPHY365x Message-ID: <20140711115406.GB2954@lee--X1> References: <1404906074-31992-1-git-send-email-lee.jones@linaro.org> <1404906074-31992-6-git-send-email-lee.jones@linaro.org> MIME-Version: 1.0 In-Reply-To: <1404906074-31992-6-git-send-email-lee.jones@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) 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.173 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: , Content-Disposition: inline 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 --- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/arch/arm/boot/dts/stih416-b2020.dts b/arch/arm/boot/dts/stih416-b2020.dts index 4e2df66..c3c2ac6 100644 --- a/arch/arm/boot/dts/stih416-b2020.dts +++ b/arch/arm/boot/dts/stih416-b2020.dts @@ -12,4 +12,16 @@ / { model = "STiH416 B2020"; compatible = "st,stih416-b2020", "st,stih416"; + + soc { + miphy365x_phy: miphy365x@fe382000 { + phy_port0: port@fe382000 { + st,sata-gen = <3>; + }; + + phy_port1: port@fe38a000 { + st,pcie-tx-pol-inv; + }; + }; + }; }; diff --git a/arch/arm/boot/dts/stih416-b2020e.dts b/arch/arm/boot/dts/stih416-b2020e.dts index ba0fa2c..80aff0f 100644 --- a/arch/arm/boot/dts/stih416-b2020e.dts +++ b/arch/arm/boot/dts/stih416-b2020e.dts @@ -31,5 +31,15 @@ ethernet1: dwmac@fef08000 { snps,reset-gpio = <&PIO0 7>; }; + + miphy365x_phy: miphy365x@fe382000 { + phy_port0: port@fe382000 { + st,sata-gen = <3>; + }; + + phy_port1: port@fe38a000 { + st,pcie-tx-pol-inv; + }; + }; }; }; diff --git a/arch/arm/boot/dts/stih416.dtsi b/arch/arm/boot/dts/stih416.dtsi index 84758d7..2b98a0a 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,25 @@ resets = <&powerdown STIH416_KEYSCAN_POWERDOWN>, <&softreset STIH416_KEYSCAN_SOFTRESET>; }; + + miphy365x_phy: miphy365x@fe382000 { + compatible = "st,miphy365x-phy"; + st,syscfg = <&syscfg_rear>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + phy_port0: port@fe382000 { + #phy-cells = <1>; + reg = <0xfe382000 0x100>, <0xfe394000 0x100>, <0x824 0x4>; + reg-names = "sata", "pcie", "syscfg"; + }; + + phy_port1: port@fe38a000 { + #phy-cells = <1>; + reg = <0xfe38a000 0x100>, <0xfe804000 0x100>, <0x828 0x4>; + reg-names = "sata", "pcie", "syscfg"; + }; + }; }; };