From patchwork Wed Mar 5 22:43:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 3779991 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 797F19F383 for ; Wed, 5 Mar 2014 22:45:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8B436201F2 for ; Wed, 5 Mar 2014 22:45:23 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 8AF36201F4 for ; Wed, 5 Mar 2014 22:45:22 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WLKYA-0000aY-5u; Wed, 05 Mar 2014 22:44:30 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WLKXx-0003Nv-4h; Wed, 05 Mar 2014 22:44:17 +0000 Received: from exprod5og116.obsmtp.com ([64.18.0.147]) by merlin.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WLKXq-0003L9-0v for linux-arm-kernel@lists.infradead.org; Wed, 05 Mar 2014 22:44:12 +0000 Received: from mail-pa0-f43.google.com ([209.85.220.43]) (using TLSv1) by exprod5ob116.postini.com ([64.18.4.12]) with SMTP ID DSNKUxeopL7Wsa4o9ubtr3xxfNdLS28G/eyG@postini.com; Wed, 05 Mar 2014 14:44:09 PST Received: by mail-pa0-f43.google.com with SMTP id bj1so1728500pad.30 for ; Wed, 05 Mar 2014 14:43:48 -0800 (PST) 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=XqZ3Rt/qmajVCPQuSfZeAvwbNQ0WxXzjRslj0I6ql1w=; b=a1l3v4yvMs4RgvUs2zKy3SvKdVNF6Kt6yGhwM0yyHPXaUpsPBrsq/pVZQ34b0ik47X bX+VEsqalek2Vw1LEokC/m8Q0WwJRfd0J6YZGxKdsl1JHEfGmGZRxhFiBJfb9Uuv2Bn6 HHp2+4gTCBym99CcmU5C8BZaTQ86X6vpnoRQPEhfcb874Gbawgfxt0hpIWBycWvvLtn7 TL4Ai7AdWYHsyhngBAPuR/b0CZBV/OJYajg77aQjdDAapFUFMxmNo5CUCZJNvbKelhR5 rQ59LYRD3nlNc/ub2csJbpoiTzjduXKE5J50OkLwd9ztqQqp3ElsE+VxVeHCmf9y8Bho UAlQ== X-Gm-Message-State: ALoCoQntRKar6fyWHMmUL7HfGGMdF3ZEHZvgUhw8nnXWba1lSSCXX22bMrf5EgSkGKaOnkRqs/ryrkiWXeYn3+3wbbv2ZJ7Yrp2o3V9ltx43tefdKNvoElA5FMM7mq7vPtR3eEvCbM4evXZqYwbb5hpi5ZCFlFOd7P2uTliwF1/VrznKK/xSsWvo2uJ3W0UMmMYPep7e61O6 X-Received: by 10.66.26.81 with SMTP id j17mr10192901pag.87.1394059428296; Wed, 05 Mar 2014 14:43:48 -0800 (PST) X-Received: by 10.66.26.81 with SMTP id j17mr10192893pag.87.1394059428214; Wed, 05 Mar 2014 14:43:48 -0800 (PST) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id yk4sm8083669pbc.16.2014.03.05.14.43.46 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 05 Mar 2014 14:43:47 -0800 (PST) From: Loc Ho To: kishon@ti.com, tj@kernel.org Subject: [PATCH v13 3/3] arm64: Add APM X-Gene SoC 15Gbps Multi-purpose PHY DTS entries Date: Wed, 5 Mar 2014 15:43:19 -0700 Message-Id: <1394059399-30671-4-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1394059399-30671-3-git-send-email-lho@apm.com> References: <1394059399-30671-1-git-send-email-lho@apm.com> <1394059399-30671-2-git-send-email-lho@apm.com> <1394059399-30671-3-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140305_174410_299801_E8C797BD X-CRM114-Status: GOOD ( 10.49 ) X-Spam-Score: -1.2 (-) Cc: devicetree@vger.kernel.org, Suman Tripathi , linux-scsi@vger.kernel.org, arnd@arndb.de, jcm@redhat.com, patches@apm.com, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, ddutile@redhat.com, Loc Ho , olof@lixom.net, Tuan Phan , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 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.2 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=no 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 This patch adds the DTS entries for the APM X-Gene SoC 15Gbps Multi-purpose PHY driver. The PHY for SATA controller 2 and 3 are enabled by default. Signed-off-by: Loc Ho Signed-off-by: Tuan Phan Signed-off-by: Suman Tripathi --- arch/arm64/boot/dts/apm-storm.dtsi | 75 ++++++++++++++++++++++++++++++++++++ 1 files changed, 75 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/apm-storm.dtsi b/arch/arm64/boot/dts/apm-storm.dtsi index d37d736..c78ddcf 100644 --- a/arch/arm64/boot/dts/apm-storm.dtsi +++ b/arch/arm64/boot/dts/apm-storm.dtsi @@ -176,6 +176,51 @@ reg-names = "csr-reg"; clock-output-names = "eth8clk"; }; + + sataphy1clk: sataphy1clk@1f21c000 { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <&socplldiv2 0>; + clock-names = "socplldiv2"; + reg = <0x0 0x1f21c000 0x0 0x1000>; + reg-names = "csr-reg"; + clock-output-names = "sataphy1clk"; + status = "disabled"; + csr-offset = <0x4>; + csr-mask = <0x00>; + enable-offset = <0x0>; + enable-mask = <0x06>; + }; + + sataphy2clk: sataphy1clk@1f22c000 { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <&socplldiv2 0>; + clock-names = "socplldiv2"; + reg = <0x0 0x1f22c000 0x0 0x1000>; + reg-names = "csr-reg"; + clock-output-names = "sataphy2clk"; + status = "ok"; + csr-offset = <0x4>; + csr-mask = <0x3a>; + enable-offset = <0x0>; + enable-mask = <0x06>; + }; + + sataphy3clk: sataphy1clk@1f23c000 { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <&socplldiv2 0>; + clock-names = "socplldiv2"; + reg = <0x0 0x1f23c000 0x0 0x1000>; + reg-names = "csr-reg"; + clock-output-names = "sataphy3clk"; + status = "ok"; + csr-offset = <0x4>; + csr-mask = <0x3a>; + enable-offset = <0x0>; + enable-mask = <0x06>; + }; }; serial0: serial@1c020000 { @@ -187,5 +232,35 @@ interrupt-parent = <&gic>; interrupts = <0x0 0x4c 0x4>; }; + + phy1: phy@1f21a000 { + compatible = "apm,xgene-phy"; + reg = <0x0 0x1f21a000 0x0 0x100>; + #phy-cells = <1>; + clocks = <&sataphy1clk 0>; + status = "disabled"; + apm,tx-boost-gain = <30 30 30 30 30 30>; + apm,tx-eye-tuning = <2 10 10 2 10 10>; + }; + + phy2: phy@1f22a000 { + compatible = "apm,xgene-phy"; + reg = <0x0 0x1f22a000 0x0 0x100>; + #phy-cells = <1>; + clocks = <&sataphy2clk 0>; + status = "ok"; + apm,tx-boost-gain = <30 30 30 30 30 30>; + apm,tx-eye-tuning = <1 10 10 2 10 10>; + }; + + phy3: phy@1f23a000 { + compatible = "apm,xgene-phy"; + reg = <0x0 0x1f23a000 0x0 0x100>; + #phy-cells = <1>; + clocks = <&sataphy3clk 0>; + status = "ok"; + apm,tx-boost-gain = <31 31 31 31 31 31>; + apm,tx-eye-tuning = <2 10 10 2 10 10>; + }; }; };