From patchwork Wed Jun 26 17:56:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 2787611 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 245AF9F968 for ; Wed, 26 Jun 2013 17:58:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 22EAF204F6 for ; Wed, 26 Jun 2013 17:58:03 +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 0B4F720117 for ; Wed, 26 Jun 2013 17:58:02 +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 1Urty3-000545-7j; Wed, 26 Jun 2013 17:57:19 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Urtxq-00036z-G2; Wed, 26 Jun 2013 17:57:06 +0000 Received: from exprod5og101.obsmtp.com ([64.18.0.141]) by merlin.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Urtxg-00035H-4I for linux-arm-kernel@lists.infradead.org; Wed, 26 Jun 2013 17:56:57 +0000 Received: from mail-pa0-f53.google.com ([209.85.220.53]) (using TLSv1) by exprod5ob101.postini.com ([64.18.4.12]) with SMTP ID DSNKUcsrUnRk49Z1oXuDvQiErCpiNfV1d8nX@postini.com; Wed, 26 Jun 2013 10:56:56 PDT Received: by mail-pa0-f53.google.com with SMTP id tj12so14425740pac.26 for ; Wed, 26 Jun 2013 10:56:34 -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=3jrqLC7Q4mMN+CZQ1bND2c6uqkb0wR54JZRJSnf+gec=; b=MHnxI3UurbD7PvOEgaWOZpqngiJzTlaKzlyWic83+ZpBayMQG4f/htv7ehixmzAzkj 5yHu5SHX8rFAbqeMAbBMxJw9YdcYdq+bDsnGO0RmxLd0Cyw/hgULCHlaVTQ/r4MlPkwT dTEfY8pqLNZtg5NyAQztWzspIMmaL9OwBft4QucQ2qAxyHdSgzDqtZEdevFcZmNonwJH xdbhMpAvS2Gxg2xtmTkdfuFGvjfXD+1FLDRznGGqkJMf/fD47RrHAKwWWslz1C2t8sR6 yrxAbvFxzexVz7DeKUrtQkN+lOSgykzZWHPH/lCuYTyoXQuJymUwcn85nOQqyX6JkyfA hfVw== X-Received: by 10.68.211.228 with SMTP id nf4mr1906992pbc.26.1372269394438; Wed, 26 Jun 2013 10:56:34 -0700 (PDT) X-Received: by 10.68.211.228 with SMTP id nf4mr1906981pbc.26.1372269394357; Wed, 26 Jun 2013 10:56:34 -0700 (PDT) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id pe9sm29291236pbc.35.2013.06.26.10.56.32 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 26 Jun 2013 10:56:33 -0700 (PDT) From: Loc Ho To: mark.rutland@arm.com Subject: [PATCH v5 2/3] clk: arm64: Add DTS clock entry for APM X-Gene Storm SoC Date: Wed, 26 Jun 2013 11:56:10 -0600 Message-Id: <1372269371-22992-3-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1372269371-22992-2-git-send-email-lho@apm.com> References: <1372269371-22992-1-git-send-email-lho@apm.com> <1372269371-22992-2-git-send-email-lho@apm.com> X-Gm-Message-State: ALoCoQm599MBZCSv/ao2N++Gffxb833viMWTUv9bOHN9rPs/Uo+7cjI4A++75CNzSwxxcn1LRyqfwJG7eza9ICLAqSXXlJliNVi5P9h0IlQqCqC298PLbad0XSVZy4FEtWQOxt7eeKuKuqxhh02pQydAgb0nAJpMcEPZZzxHXBwoANTqQLHuc7U5ZjWrHuefmxh51e9d4U3I X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130626_135656_343375_EA63D12C X-CRM114-Status: UNSURE ( 8.14 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.2 (----) Cc: fkan@apm.com, mturquette@linaro.org, Catalin.Marinas@arm.com, devicetree-discuss@lists.ozlabs.org, Loc Ho , ksankaran@apm.com, vkale@apm.com, 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.5 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..d37d736 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-pcppll-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-socpll-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>; + reg-names = "csr-reg"; + clock-output-names = "qmlclk"; + }; + + ethclk: ethclk { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <&socplldiv2 0>; + clock-names = "ethclk"; + reg = <0x0 0x17000000 0x0 0x1000>; + reg-names = "div-reg"; + 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>; + reg-names = "csr-reg"; + clock-output-names = "eth8clk"; + }; + }; + serial0: serial@1c020000 { device_type = "serial"; compatible = "ns16550";