From patchwork Mon Jul 21 08:32:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 33949 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 77ADD20492 for ; Mon, 21 Jul 2014 08:33:10 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id i7sf37939739oag.0 for ; Mon, 21 Jul 2014 01:33:08 -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:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=IMMfl/n1da0/2hiHmVt1cpe2tTt9WeROGE8/B2LjMNE=; b=j5YankGJqEIXKunF3V1UzZWwmDsgJvup/bNKLHh8AgBHs2wM2UugVaDysGmFigC7f3 GQC2a0WzRU50uCrUH2HFcQeZMbuUHoPtfCX3GLevlQFiI+fTcLzjD/IrJfwmGnvb/HWb wrW8ni7ypPt4itgLCUxjaOUJOfpzfiq2paIqG3UiVDQ5BO6xkdZrkce1LoWgNu17gDLW Zi9fGj3vzF2Qba1DdOeFmpVzVT2nvrArxqyEzNBzMWpKr0dF/kTu3yBVna69A0hsYqwv njOzkDbj86Ca/2FsOzftbVNITXIiDtWiLs/dhyRkqoGGs8YBLdBVy5vj4O2oCJvACEZf egNQ== X-Gm-Message-State: ALoCoQkeAMghOclO3lf7z3lqSMz9FVxYUgOM+zbvy8eRrZAukbVxhkrgWMQsme+SJLj8IPyDTCzo X-Received: by 10.182.119.129 with SMTP id ku1mr12271116obb.20.1405931588462; Mon, 21 Jul 2014 01:33:08 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.34.44 with SMTP id k41ls498614qgk.78.gmail; Mon, 21 Jul 2014 01:33:08 -0700 (PDT) X-Received: by 10.52.154.106 with SMTP id vn10mr18445751vdb.36.1405931588252; Mon, 21 Jul 2014 01:33:08 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id mx8si5855425vec.34.2014.07.21.01.33.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Jul 2014 01:33:08 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id hu12so11403710vcb.34 for ; Mon, 21 Jul 2014 01:33:08 -0700 (PDT) X-Received: by 10.52.119.196 with SMTP id kw4mr1579157vdb.75.1405931588149; Mon, 21 Jul 2014 01:33:08 -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 tc5csp93405vcb; Mon, 21 Jul 2014 01:33:07 -0700 (PDT) X-Received: by 10.66.66.14 with SMTP id b14mr23980775pat.9.1405931587364; Mon, 21 Jul 2014 01:33:07 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id kr8si13485794pbc.32.2014.07.21.01.33.06; Mon, 21 Jul 2014 01:33:06 -0700 (PDT) Received-SPF: none (google.com: devicetree-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 S1753302AbaGUIdF (ORCPT + 8 others); Mon, 21 Jul 2014 04:33:05 -0400 Received: from mail-yk0-f180.google.com ([209.85.160.180]:39372 "EHLO mail-yk0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753031AbaGUIdF (ORCPT ); Mon, 21 Jul 2014 04:33:05 -0400 Received: by mail-yk0-f180.google.com with SMTP id 200so3715912ykr.11 for ; Mon, 21 Jul 2014 01:33:03 -0700 (PDT) X-Received: by 10.236.126.244 with SMTP id b80mr18062192yhi.25.1405931583516; Mon, 21 Jul 2014 01:33:03 -0700 (PDT) Received: from localhost.localdomain (host109-148-232-149.range109-148.btcentralplus.com. [109.148.232.149]) by mx.google.com with ESMTPSA id e32sm26638753yhq.43.2014.07.21.01.33.01 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Jul 2014 01:33:03 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: lee.jones@linaro.org, kernel@stlinux.com, maxime.coquelin@st.com, devicetree@vger.kernel.org Subject: [RESEND PATCH 1/1] ARM: DT: STi: STiH416: Add DT node for ST's SATA device Date: Mon, 21 Jul 2014 09:32:53 +0100 Message-Id: <1405931573-12407-1-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@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.175 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: , Cc: devicetree@vger.kernel.org Acked-by: Alexandre Torgue Signed-off-by: Lee Jones --- Documentation/devicetree/bindings/ata/ahci-st.txt | 2 +- arch/arm/boot/dts/stih416-b2020.dts | 4 ++++ arch/arm/boot/dts/stih416-b2020e.dts | 4 ++++ arch/arm/boot/dts/stih416.dtsi | 16 ++++++++++++++++ 4 files changed, 25 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/ata/ahci-st.txt b/Documentation/devicetree/bindings/ata/ahci-st.txt index 0574a77..9883542 100644 --- a/Documentation/devicetree/bindings/ata/ahci-st.txt +++ b/Documentation/devicetree/bindings/ata/ahci-st.txt @@ -21,7 +21,7 @@ Example: reg = <0xfe380000 0x1000>; interrupts = ; interrupt-names = "hostc"; - phys = <&miphy365x_phy MIPHY_PORT_0 MIPHY_TYPE_SATA>; + phys = <&phy_port0 MIPHY_TYPE_SATA>; phy-names = "ahci_phy"; resets = <&powerdown STIH416_SATA0_POWERDOWN>, <&softreset STIH416_SATA0_SOFTRESET>; diff --git a/arch/arm/boot/dts/stih416-b2020.dts b/arch/arm/boot/dts/stih416-b2020.dts index c3c2ac6..eb2f246 100644 --- a/arch/arm/boot/dts/stih416-b2020.dts +++ b/arch/arm/boot/dts/stih416-b2020.dts @@ -23,5 +23,9 @@ st,pcie-tx-pol-inv; }; }; + + sata0: sata@fe380000{ + status = "okay"; + }; }; }; diff --git a/arch/arm/boot/dts/stih416-b2020e.dts b/arch/arm/boot/dts/stih416-b2020e.dts index 80aff0f..99a699e 100644 --- a/arch/arm/boot/dts/stih416-b2020e.dts +++ b/arch/arm/boot/dts/stih416-b2020e.dts @@ -41,5 +41,9 @@ st,pcie-tx-pol-inv; }; }; + + sata0: sata@fe380000{ + status = "okay"; + }; }; }; diff --git a/arch/arm/boot/dts/stih416.dtsi b/arch/arm/boot/dts/stih416.dtsi index 2b98a0a..060dd53 100644 --- a/arch/arm/boot/dts/stih416.dtsi +++ b/arch/arm/boot/dts/stih416.dtsi @@ -258,5 +258,21 @@ reg-names = "sata", "pcie", "syscfg"; }; }; + + sata0: sata@fe380000 { + compatible = "st,sti-ahci"; + reg = <0xfe380000 0x1000>; + interrupts = ; + interrupt-names = "hostc"; + phys = <&phy_port0 MIPHY_TYPE_SATA>; + phy-names = "sata-phy"; + resets = <&powerdown STIH416_SATA0_POWERDOWN>, + <&softreset STIH416_SATA0_SOFTRESET>; + reset-names = "pwr-dwn", "sw-rst"; + clock-names = "ahci_clk"; + clocks = <&clk_s_a0_ls CLK_ICN_REG>; + + status = "disabled"; + }; }; };