From patchwork Fri Mar 28 20:56:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 3907081 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 571579F2E8 for ; Fri, 28 Mar 2014 20:58:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8F4F42034F for ; Fri, 28 Mar 2014 20:58:46 +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 968602034E for ; Fri, 28 Mar 2014 20:58:45 +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 1WTdqd-0001CL-GC; Fri, 28 Mar 2014 20:57:55 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WTdqU-0003st-I6; Fri, 28 Mar 2014 20:57:46 +0000 Received: from exprod5og109.obsmtp.com ([64.18.0.188]) by merlin.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WTdq9-0003oO-T3 for linux-arm-kernel@lists.infradead.org; Fri, 28 Mar 2014 20:57:27 +0000 Received: from mail-pb0-f47.google.com ([209.85.160.47]) (using TLSv1) by exprod5ob109.postini.com ([64.18.4.12]) with SMTP ID DSNKUzXiJILeahdMSE1WIvNt1P0V4eVP1aeu@postini.com; Fri, 28 Mar 2014 13:57:25 PDT Received: by mail-pb0-f47.google.com with SMTP id up15so5519985pbc.34 for ; Fri, 28 Mar 2014 13:57:07 -0700 (PDT) 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=n3E8Ph8IDOgg4taVk31p6MwtSw0AA6tynG+Z7hD1H58=; b=jg6PHut1r2lpdzRBaJ3j1+Rpyx497pKtUjd2r2tAE0Ih/UfmOJZWvLPWQ7WX/H4pfI QPj5kzSmE1tnX+Q50GX4V/LlyLDE58FxTLFxvrcZ68bBjm4pvNm7E66HbY5kGGsMnpI2 7Cs08MPG0Q+URWFDeLeZ2/o4JYwrZ2h/vX77gEzcW1h5bVmX8bu/yqdkf1p5QYFzeACS T3v0H31bkb0P+CvA1HjkNSefegXns/8/iujGROXMQie00VKYTXdyvR99siJylQWLAqTf qsSMqfORTvvtkWDmaSI2HjwD6G/lQGQs5lX35RYa3/bMFWwkEo4/lh1kUHmARUlYJACa b64Q== X-Gm-Message-State: ALoCoQlCT4+RNV764teY2XTzIgNyWUd7DTvGyENBceEVp8hM7sbHZibtuiwwP60FTjRl+HpsoXMMCpf7aaeaTvmjG+k2rCaYPT3r215xlUY6G8Ko2sh/1hKAlqNyZTTDzKQqnnAT8ovJxti6iRC4QBIUrYYEHQUZc90kZR5xu9NUnT5VtNsM3s1g96RJvYzaY2+pNWOZj9b1 X-Received: by 10.68.133.229 with SMTP id pf5mr10761007pbb.115.1396040227681; Fri, 28 Mar 2014 13:57:07 -0700 (PDT) X-Received: by 10.68.133.229 with SMTP id pf5mr10761004pbb.115.1396040227592; Fri, 28 Mar 2014 13:57:07 -0700 (PDT) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id yk4sm27031693pbc.16.2014.03.28.13.57.06 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 28 Mar 2014 13:57:06 -0700 (PDT) From: Loc Ho To: a.zummo@towertech.it Subject: [PATCH 3/3] arm64: Add APM X-Gene SoC RTC DTS entry Date: Fri, 28 Mar 2014 14:56:38 -0600 Message-Id: <1396040198-13645-4-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1396040198-13645-3-git-send-email-lho@apm.com> References: <1396040198-13645-1-git-send-email-lho@apm.com> <1396040198-13645-2-git-send-email-lho@apm.com> <1396040198-13645-3-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140328_165726_146843_27451700 X-CRM114-Status: UNSURE ( 8.71 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.2 (----) Cc: devicetree@vger.kernel.org, rtc-linux@googlegroups.com, jcm@redhat.com, Rameshwar Prasad Sahu , patches@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=-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 APM X-Gene SoC RTC DTS entry. Signed-off-by: Rameshwar Prasad Sahu Signed-off-by: Loc Ho --- arch/arm64/boot/dts/apm-storm.dtsi | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/apm-storm.dtsi b/arch/arm64/boot/dts/apm-storm.dtsi index 93f4b2d..4917f3b 100644 --- a/arch/arm64/boot/dts/apm-storm.dtsi +++ b/arch/arm64/boot/dts/apm-storm.dtsi @@ -257,6 +257,19 @@ enable-offset = <0x0>; enable-mask = <0x39>; }; + + rtcclk: rtcclk@17000000 { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <&socplldiv2 0>; + reg = <0x0 0x17000000 0x0 0x2000>; + reg-names = "csr-reg"; + csr-offset = <0xc>; + csr-mask = <0x2>; + enable-offset = <0x10>; + enable-mask = <0x2>; + clock-output-names = "rtcclk"; + }; }; serial0: serial@1c020000 { @@ -339,5 +352,13 @@ phys = <&phy3 0>; phy-names = "sata-phy"; }; + + rtc: rtc@10510000 { + compatible = "apm,xgene-rtc"; + reg = <0x0 0x10510000 0x0 0x400>; + interrupts = <0x0 0x46 0x4>; + #clock-cells = <1>; + clocks = <&rtcclk 0>; + }; }; };