From patchwork Fri May 16 03:11:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 349422 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3DA26140094; Fri, 16 May 2014 13:12:52 +1000 (EST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1Wl8Zk-0006Ve-IA; Fri, 16 May 2014 03:12:48 +0000 Received: from mail-pa0-f41.google.com ([209.85.220.41]) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1Wl8Ze-0006Tv-Ur for kernel-team@lists.ubuntu.com; Fri, 16 May 2014 03:12:43 +0000 Received: by mail-pa0-f41.google.com with SMTP id lj1so1933655pab.28 for ; Thu, 15 May 2014 20:12:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:subject:date:message-id:in-reply-to:references; bh=bLDpXe/ShI99xT7rZsvS9Qe8ZrW6s5PYtdtcEliKUaw=; b=JzM9IDcIo+AJj5AAT98rT+kpqzDhtbL/kjGSB1NsRNVneHsSu4BTD1f6aiXex84/8n feel7aMdNSgoyz7xNyxsS5452OhSgzEOU2LvSC+ff4cPbEQ/i+0fk0ok8YVGw7/OinnT 64rZeiJjN6j+C2CAq05+XTadu3jO2EeNPshpuhrljq938JsnEWpsBEvqrKCLuzLNJR4c Fg4c/OX2DJQzPbGL3XbUxXtJCrpmO85ywbOQD1hwIu4vL0zX0jqR5fkPPlFM+KCI5JXS 8j9CSLeQQ7/tlnaLwHONhBgpHQjpPNeUT1m84ibwMuumpZWr0IoODneMjCw/0kpd6iDg 7zwQ== X-Received: by 10.66.221.4 with SMTP id qa4mr17439226pac.138.1400209961930; Thu, 15 May 2014 20:12:41 -0700 (PDT) Received: from localhost ([113.88.81.74]) by mx.google.com with ESMTPSA id di3sm11727190pbc.11.2014.05.15.20.12.39 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 15 May 2014 20:12:41 -0700 (PDT) From: Ming Lei To: kernel-team@lists.ubuntu.com Subject: [PATCH 4/4] arm64: add APM X-Gene SoC RTC DTS entry Date: Fri, 16 May 2014 11:11:55 +0800 Message-Id: <1400209915-10393-5-git-send-email-ming.lei@canonical.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1400209915-10393-1-git-send-email-ming.lei@canonical.com> References: <1400209915-10393-1-git-send-email-ming.lei@canonical.com> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: kernel-team-bounces@lists.ubuntu.com From: Loc Ho This patch adds APM X-Gene SoC RTC DTS entry Signed-off-by: Rameshwar Prasad Sahu Signed-off-by: Loc Ho Cc: Jon Masters Cc: Alessandro Zummo Cc: Catalin Marinas Cc: Will Deacon Signed-off-by: Andrew Morton --- arch/arm64/boot/dts/apm-storm.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/apm-storm.dtsi b/arch/arm64/boot/dts/apm-storm.dtsi index a26333e..77ad615 100644 --- a/arch/arm64/boot/dts/apm-storm.dtsi +++ b/arch/arm64/boot/dts/apm-storm.dtsi @@ -317,6 +317,19 @@ reg-names = "csr-reg"; clock-output-names = "pcie4clk"; }; + + 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"; + }; }; pcie0: pcie@1f2b0000 { @@ -552,5 +565,13 @@ phyid = <3>; phy-mode = "rgmii"; }; + + rtc: rtc@10510000 { + compatible = "apm,xgene-rtc"; + reg = <0x0 0x10510000 0x0 0x400>; + interrupts = <0x0 0x46 0x4>; + #clock-cells = <1>; + clocks = <&rtcclk 0>; + }; }; };