From patchwork Fri Jun 21 15:30:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 2763351 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 73128C0AB1 for ; Fri, 21 Jun 2013 15:33:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5280F202AE for ; Fri, 21 Jun 2013 15:33:57 +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 BBD2B20292 for ; Fri, 21 Jun 2013 15:33:55 +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 1Uq3Jf-0007hW-QJ; Fri, 21 Jun 2013 15:32:00 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uq3J2-0006ad-B4; Fri, 21 Jun 2013 15:31:20 +0000 Received: from exprod5og115.obsmtp.com ([64.18.0.246]) by merlin.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uq3IV-0006WB-8v for linux-arm-kernel@lists.infradead.org; Fri, 21 Jun 2013 15:30:48 +0000 Received: from mail-pb0-f53.google.com ([209.85.160.53]) (using TLSv1) by exprod5ob115.postini.com ([64.18.4.12]) with SMTP ID DSNKUcRxlVWko+f9iRmbmDyHlGLZLsyVsNm9@postini.com; Fri, 21 Jun 2013 08:30:47 PDT Received: by mail-pb0-f53.google.com with SMTP id xb12so7883090pbc.40 for ; Fri, 21 Jun 2013 08:30:29 -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=XCRHJKamRcpN+Twj8CWqmBj1No2OkdBVpKjSgFFVf11N3uzinHMG9svNCezUwbKUXU LQuLDrL6+vKO/5hWdPDytBnXnd2OkdWve37KcoZDAgzCdbOryv9FeZxqRJN8g2QGkv/d 8SUShyNrWJxUdGPwRp79dzJEOhC/OExsh8F0sK2o+RmWjvHW+33CRdgnpndo5J3x39Ne Cm2vJQH9MbZ7L/zfe4f5GI0vvmFKF2tEeFnz36lziY/dbeQugXEshMdtbSoV83vsTtRZ 86AJDoH0doAFddLd3ql92mI3bRvLoRckOTyenjPuHwnPf7+aBd8nOxhDWFA34+QvHkgi XlkQ== X-Received: by 10.66.67.5 with SMTP id j5mr16752314pat.176.1371828629298; Fri, 21 Jun 2013 08:30:29 -0700 (PDT) X-Received: by 10.66.67.5 with SMTP id j5mr16752306pat.176.1371828629219; Fri, 21 Jun 2013 08:30:29 -0700 (PDT) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id xz1sm6150016pab.5.2013.06.21.08.30.26 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 21 Jun 2013 08:30:28 -0700 (PDT) From: Loc Ho To: Catalin.Marinas@arm.com Subject: [PATCH 2/3] clk: arm64: Add DTS clock entry for APM X-Gene Storm SoC. Date: Fri, 21 Jun 2013 09:30:04 -0600 Message-Id: <1371828605-18053-3-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1371828605-18053-2-git-send-email-lho@apm.com> References: <1371828605-18053-1-git-send-email-lho@apm.com> <1371828605-18053-2-git-send-email-lho@apm.com> X-Gm-Message-State: ALoCoQnD99kmRhHjZ719putlbSU2/zE4LTG1d3uoGAKy5O/NR8C32q5STvzQV+dyxTMfYIavB7py1Ql2Lpoe5esKvS2iMk5tJETamb+yUWaGNspTDpSs1gTUqM1QqpsWwWBz36pe6Rn4nLOYWyjFpFGqluNacQt4kNpzeABb5u+Et0QCzpp+Rrkc0YyAdg19ySn1A9w0z4AI X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130621_113047_511654_AC54CD3C X-CRM114-Status: UNSURE ( 9.26 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.2 (----) Cc: Feng Kan , Kumar Sankaran , Vinayak Kale , 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";