From patchwork Thu Aug 28 05:34:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 4792641 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CC18CC0338 for ; Thu, 28 Aug 2014 05:40:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 070DA20142 for ; Thu, 28 Aug 2014 05:40:27 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 074A62015E for ; Thu, 28 Aug 2014 05:40:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XMsNM-0007Zb-Fb; Thu, 28 Aug 2014 05:36:00 +0000 Received: from mail-pa0-f44.google.com ([209.85.220.44]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XMsNE-0007KW-5f for linux-arm-kernel@lists.infradead.org; Thu, 28 Aug 2014 05:35:52 +0000 Received: by mail-pa0-f44.google.com with SMTP id rd3so1067902pab.17 for ; Wed, 27 Aug 2014 22:35:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vObgNAatJIcdil2tKF26PCFRMIgstFmUiU7ZtbIwvrQ=; b=EWgqDnMtq7+DpdXyOfSG5OBsNgYmTGeXB62ErnCSWAefamCRREK1PMrG/YuFES7pYo MvisZtINpYiPjTjpprtsItXi83IYa8yn1nHKkMCn3Ld357FV2BF1EYszYBtxdPPOkekp PJQvUtZzLzL0KTvYwj+LXgaN6sNmT8j2tHcx0EiEhUbT/DFf2TVcyIZJrN/zM8MHp+qR E4StoBDpud1Wv2+BbnIXEJfWKoUHKaVPMEuK/5tmTkai84GtE1BuzWmhNMPt8AWVrGmR sPJX28tuiRWd9h0/II0xJKUC8jXyuOaxnqzoiqnfZUkaKjotTR6frvpoPXw+PCJlrf/M zfgg== X-Gm-Message-State: ALoCoQkTAysZJdqYQEBFAmoXpW29jp05UUBWIvUVXHObv6DkIOWQWhkKYR7kaml37r69aCPQ+Bju X-Received: by 10.70.51.103 with SMTP id j7mr2384663pdo.84.1409204130761; Wed, 27 Aug 2014 22:35:30 -0700 (PDT) Received: from localhost.localdomain ([60.168.113.194]) by mx.google.com with ESMTPSA id m1sm3651003pdh.18.2014.08.27.22.35.24 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 Aug 2014 22:35:29 -0700 (PDT) From: Zhangfei Gao To: mark.rutland@arm.com, haojian.zhuang@linaro.org, haifeng.yan@linaro.org, jchxue@gmail.com, xuwei5@hisilicon.com Subject: [PATCH v2 4/6] ARM: dts: hix5hd2: add sata node Date: Thu, 28 Aug 2014 13:34:18 +0800 Message-Id: <1409204060-9223-5-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1409204060-9223-1-git-send-email-zhangfei.gao@linaro.org> References: <1409204060-9223-1-git-send-email-zhangfei.gao@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140827_223552_244666_FC969516 X-CRM114-Status: UNSURE ( 8.22 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Jiancheng Xue , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Zhangfei Gao X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Jiancheng Xue Signed-off-by: Zhangfei Gao --- arch/arm/boot/dts/hisi-x5hd2-dkb.dts | 5 +++++ arch/arm/boot/dts/hisi-x5hd2.dtsi | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/hisi-x5hd2-dkb.dts b/arch/arm/boot/dts/hisi-x5hd2-dkb.dts index 0da3f3b..375a10c 100644 --- a/arch/arm/boot/dts/hisi-x5hd2-dkb.dts +++ b/arch/arm/boot/dts/hisi-x5hd2-dkb.dts @@ -79,3 +79,8 @@ reg = <1>; }; }; + +&ahci { + phys = <&sata_phy>; + phy-names = "sata-phy"; +}; diff --git a/arch/arm/boot/dts/hisi-x5hd2.dtsi b/arch/arm/boot/dts/hisi-x5hd2.dtsi index 9252264..18f52f0 100644 --- a/arch/arm/boot/dts/hisi-x5hd2.dtsi +++ b/arch/arm/boot/dts/hisi-x5hd2.dtsi @@ -213,5 +213,25 @@ interrupts = <0 67 4>; clocks = <&clock HIX5HD2_USB_CLK>; }; + + peripheral_ctrl: syscon@a20000 { + compatible = "syscon"; + reg = <0xa20000 0x1000>; + }; + + sata_phy: phy@1900000 { + compatible = "hisilicon,hix5hd2-sata-phy"; + reg = <0x1900000 0x10000>; + #phy-cells = <0>; + hisilicon,peripheral-syscon = <&peripheral_ctrl>; + hisilicon,power-reg = <0x8 10>; + }; + + ahci: sata@1900000 { + compatible = "hisilicon,hisi-ahci"; + reg = <0x1900000 0x10000>; + interrupts = <0 70 4>; + clocks = <&clock HIX5HD2_SATA_CLK>; + }; }; };