From patchwork Fri Jun 21 18:17:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 2763861 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 857F09F756 for ; Fri, 21 Jun 2013 18:19:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A098A201D8 for ; Fri, 21 Jun 2013 18:19:46 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 06AFB201CA for ; Fri, 21 Jun 2013 18:19:45 +0000 (UTC) Received: from merlin.infradead.org ([205.233.59.134]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uq5vG-0001Tg-Gp; Fri, 21 Jun 2013 18:18:58 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uq5uw-0002Ps-NZ; Fri, 21 Jun 2013 18:18:38 +0000 Received: from exprod5og105.obsmtp.com ([64.18.0.180]) by merlin.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uq5ue-0002N8-1h for linux-arm-kernel@lists.infradead.org; Fri, 21 Jun 2013 18:18:21 +0000 Received: from mail-pa0-f46.google.com ([209.85.220.46]) (using TLSv1) by exprod5ob105.postini.com ([64.18.4.12]) with SMTP ID DSNKUcSY1iB/667qmcw5jz9JT7xNE4IOD7XD@postini.com; Fri, 21 Jun 2013 11:18:19 PDT Received: by mail-pa0-f46.google.com with SMTP id fa11so8177431pad.33 for ; Fri, 21 Jun 2013 11:17:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=ZfCCemuWCUxwfLtbOJH0EOZuvbqhKHvnX1rEKmS3nU0=; b=K9R6ru/huMoE2PRxiUj0RdKdpHcjQyMtC9qcT3PY8oIG3fG47oGfTmgwK8SgePTWqQ DUjhFW/QIzQzpdlGrOWPI9y89nFxSJDYWQ8IuGk5daROiSpIu674BD9Qm3BpWAXPAun6 RoYJv3u5+Y3U3fS+QSQ5poksp2tRvyzuJfnf1JIhaiObj6QdfZdFnF+gF8lpq09abDR2 9JDG4nsTehYBipPl8PTY7Lpovk1iCLAeAtrRNZAlsUZrAPInjcbuJDR4I4fq2AB6x+zI TWSx0awUkz1SX0Meik2CW90lbAEqH+H/K4J8T4skJCqYJAgIy3rykSwWL+w9ou7tK3Cg rQSA== X-Received: by 10.68.19.72 with SMTP id c8mr13442659pbe.219.1371838677710; Fri, 21 Jun 2013 11:17:57 -0700 (PDT) X-Received: by 10.68.19.72 with SMTP id c8mr13442649pbe.219.1371838677638; Fri, 21 Jun 2013 11:17:57 -0700 (PDT) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id re16sm6655209pac.16.2013.06.21.11.17.55 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 21 Jun 2013 11:17:56 -0700 (PDT) From: Loc Ho To: mturquette@linaro.org Subject: [PATCH v2 2/3] clk: arm64: Add DTS clock entry for APM X-Gene Storm SoC. Date: Fri, 21 Jun 2013 12:17:36 -0600 Message-Id: <1371838657-6018-3-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1371838657-6018-2-git-send-email-lho@apm.com> References: <1371838657-6018-1-git-send-email-lho@apm.com> <1371838657-6018-2-git-send-email-lho@apm.com> X-Gm-Message-State: ALoCoQktpF8NQQHorO/0MdKKrQmgHHDrs4NR2KCbofbJMbAZubokTtKDGCZs82hKMk/b5VVsRmRet3lku66KF73mTTWlPCVDkGgt0TNwJyQX2BNZiRco6lyUGWlvWlN6WxJo8TSKeHCrDtIb8tBWnJOviAsqDD5hnQyE+FoTmxVGE5OJOqidspBlCsqdWqWvK7Z7geQzZYoA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130621_141820_257953_E5E3C44E X-CRM114-Status: GOOD ( 10.08 ) X-Spam-Score: -4.2 (----) Cc: fkan@apm.com, ksankaran@apm.com, vkale@apm.com, Loc Ho , 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=-5.7 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 clk: arm64: Add DTS clock entry for APM X-Gene Storm SoC with reference to reference, PCP PLL, SoC PLL, and Ethernet clocks. Signed-off-by: Loc Ho Signed-off-by: Kumar Sankaran Signed-off-by: Vinayak Kale Signed-off-by: Feng Kan --- 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 bfdc578..d994806 100644 --- a/arch/arm64/boot/dts/apm-storm.dtsi +++ b/arch/arm64/boot/dts/apm-storm.dtsi @@ -103,6 +103,81 @@ #size-cells = <2>; ranges; + clocks { + #address-cells = <2>; + #size-cells = <2>; + ranges; + refclk: refclk { + compatible = "fixed-clock"; + #clock-cells = <1>; + clock-frequency = <100000000>; + clock-output-names = "refclk"; + }; + + pcppll: pcppll@17000100 { + compatible = "apm,xgene-pll-clock"; + #clock-cells = <1>; + clocks = <&refclk 0>; + clock-names = "pcppll"; + reg = <0x0 0x17000100 0x0 0x1000>; + clock-output-names = "pcppll"; + type = <0>; + }; + + socpll: socpll@17000120 { + compatible = "apm,xgene-pll-clock"; + #clock-cells = <1>; + clocks = <&refclk 0>; + clock-names = "socpll"; + reg = <0x0 0x17000120 0x0 0x1000>; + clock-output-names = "socpll"; + type = <1>; + }; + + socplldiv2: socplldiv2 { + compatible = "fixed-factor-clock"; + #clock-cells = <1>; + clocks = <&socpll 0>; + clock-names = "socplldiv2"; + clock-mult = <1>; + clock-div = <2>; + clock-output-names = "socplldiv2"; + }; + + qmlclk: qmlclk { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <&socplldiv2 0>; + clock-names = "qmlclk"; + reg = <0x0 0x1703C000 0x0 0x1000 + 0x0 0x00000000 0x0 0x0000>; + clock-output-names = "qmlclk"; + }; + + ethclk: ethclk { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <&socplldiv2 0>; + clock-names = "ethclk"; + reg = <0x0 0x00000000 0x0 0x0000 + 0x0 0x17000000 0x0 0x1000>; + divider-offset = <0x238>; + divider-width = <0x9>; + divider-shift = <0x0>; + clock-output-names = "ethclk"; + }; + + eth8clk: eth8clk { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <ðclk 0>; + clock-names = "eth8clk"; + reg = <0x0 0x1702C000 0x0 0x1000 + 0x0 0x00000000 0x0 0x0000>; + clock-output-names = "eth8clk"; + }; + }; + serial0: serial@1c020000 { device_type = "serial"; compatible = "ns16550";