From patchwork Sat Dec 14 08:32:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 3348091 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 CE859C0D4A for ; Sat, 14 Dec 2013 08:36:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0A3762052F for ; Sat, 14 Dec 2013 08:36:19 +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 11C1A203AC for ; Sat, 14 Dec 2013 08:36:18 +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 1VrkgM-0006C2-La; Sat, 14 Dec 2013 08:34:43 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vrkfr-0008Dy-Rb; Sat, 14 Dec 2013 08:34:11 +0000 Received: from exprod5og112.obsmtp.com ([64.18.0.24]) by merlin.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VrkfV-0008Ah-4l for linux-arm-kernel@lists.infradead.org; Sat, 14 Dec 2013 08:33:51 +0000 Received: from mail-pb0-f51.google.com ([209.85.160.51]) (using TLSv1) by exprod5ob112.postini.com ([64.18.4.12]) with SMTP ID DSNKUqwX14oMlrdy2BJKfdwGIC5cwnMPD7SZ@postini.com; Sat, 14 Dec 2013 00:33:49 PST Received: by mail-pb0-f51.google.com with SMTP id up15so3516072pbc.24 for ; Sat, 14 Dec 2013 00:33:27 -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=XQPudZJJUF+DZoSx6zai9fLuLrPyZA0nlRBq1zofjOY=; b=IMy3N8p4E21/562Gpc1kvzuICYbOUGGXZlFrapeUYSJSSGCv4DBFxXL184kidHhkch RQL9HObIZrxYv0OBs7ZeJpwdwgB2GkWWbIMAqsKR5IQFXNVVuPPx+mOf3N8OPdADg8pl HY1FV/blPJmaTzKkgqmDUSP+pNc0aU5jajaZW1H8nX5GxsuWU9aNce109suXFnizCVSl PYMNDwYhbv6pPAm7Ki89wCZKobl+tK/7pF4Ze4z2M4VOzW6xqCWO2Fj3d8+k/llPnXev Q2oHTgPQBl5uFzJu96CFSylBQW1ZYPH41TypZU1PfXbEuhBqqlpCC2Lk8wgqpz/6qVIB 9dEw== X-Gm-Message-State: ALoCoQkiquLamU5rlmfnQsevRPL1medBQTzCIu2Ccr5QRkslbwAbCGtqwEXA3akdYGZU4ZoBLI5/ML62BU8Df5HOStahB+gbKlrr61AJ/+DekaunsNtNM+7Fk+u9EgRB6DRwPFhVWevWAIeQna8KvESgnIsByYBOsXpkDQ6pKjDhsbSraokkLIZ9p/tLhapr5VMq/f0Gryav X-Received: by 10.66.232.40 with SMTP id tl8mr8232082pac.137.1387010007416; Sat, 14 Dec 2013 00:33:27 -0800 (PST) X-Received: by 10.66.232.40 with SMTP id tl8mr8232066pac.137.1387010007343; Sat, 14 Dec 2013 00:33:27 -0800 (PST) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id er3sm10510539pbb.40.2013.12.14.00.33.26 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 14 Dec 2013 00:33:26 -0800 (PST) From: Loc Ho To: olof@lixom.net, tj@kernel.org, arnd@arndb.de Subject: [PATCH v5 4/4] arm64: Add APM X-Gene SoC 15Gbps Multi-purpose PHY DTS entries Date: Sat, 14 Dec 2013 01:32:50 -0700 Message-Id: <1387009970-737-5-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1387009970-737-4-git-send-email-lho@apm.com> References: <1387009970-737-1-git-send-email-lho@apm.com> <1387009970-737-2-git-send-email-lho@apm.com> <1387009970-737-3-git-send-email-lho@apm.com> <1387009970-737-4-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131214_033349_378166_47EFC39E X-CRM114-Status: UNSURE ( 9.77 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.2 (----) Cc: devicetree@vger.kernel.org, Suman Tripathi , linux-scsi@vger.kernel.org, jcm@redhat.com, patches@apm.com, linux-ide@vger.kernel.org, Loc Ho , 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=-4.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 This patch adds the DTS entries for the APM X-Gene SoC 15Gbps Multi-purpose PHY driver. The PHY for SATA controller 0 and 1 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 | 76 ++++++++++++++++++++++++++++++++++++ 1 files changed, 76 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/apm-storm.dtsi b/arch/arm64/boot/dts/apm-storm.dtsi index 359d7b6..4741c66 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 = "sataphy1clk"; + 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 = "sataphy2clk"; + 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 = "sataphy3clk"; + 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 { @@ -193,5 +238,36 @@ reg = <0x0 0x17000014 0x0 0x100>; mask = <0x1>; }; + + phy1: phy@1f21a000 { + compatible = "apm,xgene-phy"; + reg = <0x0 0x1f21a000 0x0 0x100>; + #phy-cells = <1>; + clocks = <&sataphy1clk 0>; + status = "disabled"; + apm,tx-boost-gain = <2 3 3 2 3 3>; + 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 = <2 3 2 2 3 2>; + apm,tx-eye-tuning = <1 10 10 2 10 5>; + }; + + phy3: phy@1f23a000 { + compatible = "apm,xgene-phy-ext"; + reg = <0x0 0x1f23a000 0x0 0x100>, + <0x0 0x1f2d0000 0x0 0x100>; + #phy-cells = <1>; + clocks = <&sataphy3clk 0>; + status = "ok"; + apm,tx-boost-gain = <2 3 3 2 3 3>; + apm,tx-eye-tuning = <2 10 10 2 10 12>; + }; }; };