From patchwork Thu Apr 10 18:47:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 3964281 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 77AB19F336 for ; Thu, 10 Apr 2014 18:50:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B2E592081D for ; Thu, 10 Apr 2014 18:50:56 +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 B5CAC2080B for ; Thu, 10 Apr 2014 18:50: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 1WYK2N-0002pn-Nr; Thu, 10 Apr 2014 18:49:24 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WYK1z-0003Jh-AQ; Thu, 10 Apr 2014 18:48:59 +0000 Received: from bombadil.infradead.org ([2001:1868:205::9]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WYK1m-0003I6-DY for linux-arm-kernel@merlin.infradead.org; Thu, 10 Apr 2014 18:48:46 +0000 Received: from exprod5og111.obsmtp.com ([64.18.0.22]) by bombadil.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WYK1l-0005CD-Gc for linux-arm-kernel@lists.infradead.org; Thu, 10 Apr 2014 18:48:45 +0000 Received: from mail-pd0-f178.google.com ([209.85.192.178]) (using TLSv1) by exprod5ob111.postini.com ([64.18.4.12]) with SMTP ID DSNKU0bnd+Ndv2h8CEu1zffGAHPYvsWtcvF6@postini.com; Thu, 10 Apr 2014 11:48:45 PDT Received: by mail-pd0-f178.google.com with SMTP id x10so4213122pdj.23 for ; Thu, 10 Apr 2014 11:48:23 -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=R5vLL1Ddk8qPlmnwZRk2bEt722/4+bSPhIPThHLlopw=; b=K9g/j/Nc1/O964v6DYqkY+vy3Ym9whi03rqbuVmXN3928WbMI8Mi71KJ+3ZoJIzcy8 zD13XhPSSJEWM1LGNBUC0o8DyL+Zo/Qi60yMLgfdZt2D8Voj+6fctwp/MPlA6Y8o4biD TLGzPtWu4WwS2E7+hYAWb5067Ko1PTRaft2R4GpgRatLWFClygD3FYUe2lN+Wyg3uGFc 3w00pA2ck9RJz+j8vBph7gmoSd1TGKPVyT8qKMdv1PcL+O6QBrVav/S2HSX0TgdhAGxt 1x8mOKrQ0CsAoodHfu5VyeRuYVmtXn55llWrCRLVLCoF1YtFHFPkTvmZER0eoWjV25V1 VKEQ== X-Gm-Message-State: ALoCoQmRBe0xeriCwJDbkhrV9qK4AGopq8jDK51wqgiwb4zL3Ysd7ti9P9EoF5ryVg7JSgn5udcs/m6h/fUnnUNeFTYJFL93Sn36+4doFMw2Wq1KExegCVu2DRU5Teh/Bbylavii4JJ+APIFtqwUIIHg+4Zd8m9Ttw== X-Received: by 10.68.139.137 with SMTP id qy9mr21613709pbb.11.1397155703415; Thu, 10 Apr 2014 11:48:23 -0700 (PDT) X-Received: by 10.68.139.137 with SMTP id qy9mr21613697pbb.11.1397155703348; Thu, 10 Apr 2014 11:48:23 -0700 (PDT) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id yo9sm24222445pab.16.2014.04.10.11.48.22 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 10 Apr 2014 11:48:22 -0700 (PDT) From: Loc Ho To: a.zummo@towertech.it Subject: [PATCH v4 3/3] arm64: Add APM X-Gene SoC RTC DTS entry Date: Thu, 10 Apr 2014 12:47:58 -0600 Message-Id: <1397155678-26607-4-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1397155678-26607-3-git-send-email-lho@apm.com> References: <1397155678-26607-1-git-send-email-lho@apm.com> <1397155678-26607-2-git-send-email-lho@apm.com> <1397155678-26607-3-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140410_114845_574141_0E392471 X-CRM114-Status: UNSURE ( 8.99 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) 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.8 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>; + }; }; };