From patchwork Sat Aug 30 04:15:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 36321 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 74AF62054D for ; Sat, 30 Aug 2014 04:16:15 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id rl12sf18685049iec.1 for ; Fri, 29 Aug 2014 21:16:15 -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:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=Vm/hKU33YN37lu0406Qu/nsLXkN6qPV8dwamciQZI/o=; b=SnOyvTSLUOJ7J0zDNSnBRovsEUKkpDwfRST/fKq8ndYQm/U0rnX+MHTgZiz0B6z3ez LKiSe5+Z1s08oknJJ10Q+Ry/Bj/DyE9ygQMzQNFZj7vLsltY2/HaCcg8uSsYYLfwNmCC 7VtklvHTuKKUMY10Xwq/ry8Tr7M7MqPbHetHbhqJq04MbRbq86gmzkEOAgkfwunc3yjK ExGfNNSFobS1cRz+lZ2XDhv+PjjmrgRzDMEKn+mtz5eu0HSJM40NzDbnAkIRXVZuh2az kS4roG164DTrYolZ7qp9iLdzM+OeDpCrsTLC6IURZbX1I/v/1+7UJhk8m1IGRTuIHpoB B/gQ== X-Gm-Message-State: ALoCoQllVlZIgJ+ESnLRiDRbYFW8jYSJOhRWi6BUqTnFvlHBLrGF1BhSC5bzmGjaMBLrhaOZUDNv X-Received: by 10.42.152.201 with SMTP id j9mr9054121icw.5.1409372174962; Fri, 29 Aug 2014 21:16:14 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.80.210 with SMTP id c76ls1283599qgd.56.gmail; Fri, 29 Aug 2014 21:16:14 -0700 (PDT) X-Received: by 10.52.255.232 with SMTP id at8mr8484893vdd.4.1409372174889; Fri, 29 Aug 2014 21:16:14 -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 sv19si1598694vdb.40.2014.08.29.21.16.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Aug 2014 21:16:14 -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 lf12so3367130vcb.20 for ; Fri, 29 Aug 2014 21:16:14 -0700 (PDT) X-Received: by 10.52.160.10 with SMTP id xg10mr11439525vdb.1.1409372174782; Fri, 29 Aug 2014 21:16:14 -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.45.67 with SMTP id uj3csp106427vcb; Fri, 29 Aug 2014 21:16:14 -0700 (PDT) X-Received: by 10.68.232.163 with SMTP id tp3mr20840242pbc.97.1409372173786; Fri, 29 Aug 2014 21:16:13 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id mr4si3121270pdb.160.2014.08.29.21.16.13 for ; Fri, 29 Aug 2014 21:16:13 -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 S1751088AbaH3EQM (ORCPT + 5 others); Sat, 30 Aug 2014 00:16:12 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:57086 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751061AbaH3EQM (ORCPT ); Sat, 30 Aug 2014 00:16:12 -0400 Received: by mail-pa0-f50.google.com with SMTP id kq14so7761473pab.23 for ; Fri, 29 Aug 2014 21:16:11 -0700 (PDT) X-Received: by 10.68.186.33 with SMTP id fh1mr20731819pbc.105.1409372171499; Fri, 29 Aug 2014 21:16:11 -0700 (PDT) Received: from localhost.localdomain ([180.150.157.4]) by mx.google.com with ESMTPSA id y4sm2335601pdm.1.2014.08.29.21.16.06 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Aug 2014 21:16:10 -0700 (PDT) From: Zhangfei Gao To: mark.rutland@arm.com, dinh.linux@gmail.com, haojian.zhuang@linaro.org, haifeng.yan@linaro.org, jchxue@gmail.com, xuwei5@hisilicon.com Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Zhangfei Gao , Jiancheng Xue Subject: [PATCH v3 4/6] ARM: dts: hix5hd2: add sata node Date: Sat, 30 Aug 2014 12:15:40 +0800 Message-Id: <1409372142-5960-5-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1409372142-5960-1-git-send-email-zhangfei.gao@linaro.org> References: <1409372142-5960-1-git-send-email-zhangfei.gao@linaro.org> 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: zhangfei.gao@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: , 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>; + }; }; };