From patchwork Mon Mar 31 17:36:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 3917081 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 02334BF540 for ; Mon, 31 Mar 2014 17:39:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3D50A20364 for ; Mon, 31 Mar 2014 17:39:58 +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 387E2202D1 for ; Mon, 31 Mar 2014 17:39:57 +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 1WUgAD-0001LE-M2; Mon, 31 Mar 2014 17:38:26 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WUg9Z-0001fa-Ju; Mon, 31 Mar 2014 17:37:45 +0000 Received: from exprod5og104.obsmtp.com ([64.18.0.178]) by merlin.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WUg8p-0001ZP-3x for linux-arm-kernel@lists.infradead.org; Mon, 31 Mar 2014 17:37:00 +0000 Received: from mail-pa0-f43.google.com ([209.85.220.43]) (using TLSv1) by exprod5ob104.postini.com ([64.18.4.12]) with SMTP ID DSNKUzmnpjq3p4wJoCgwIbhF/OYecOAg8X/U@postini.com; Mon, 31 Mar 2014 10:36:59 PDT Received: by mail-pa0-f43.google.com with SMTP id bj1so8541419pad.30 for ; Mon, 31 Mar 2014 10:36:37 -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=Vk7EHZ0/Xg+lV5nJLa1PdV4UvfOpvnOb2NCl95/U8TToCDUAkPl3cCnwyZBRfYTiyS ZxVgqZ5/lAnNZfUTOA8oO5j5twypflOoFnUmwL+SFKSis/NUnOJyd+LmGYfu/NQQ8Wai PQc3W1ymD5yWSWj3eF5Uq3bCNPB/3QMDpSm6jGUWoSQLKUH5M6YNohnq4y1mKvgAMx2E 0dRzctgL8LtpQ3dmF069ZXJrafvPNO56jChgZAf3fouL+YVjwlDpv3huw4R/B3n44+uk hHX7Gt+I5as9UB6crH7zrzIkBtZfx7Hq4iBxexhA5ug5rL1wICQUKOMke8idxN6Kk7Wj g4Rg== X-Gm-Message-State: ALoCoQmmNSK0wghZcvuHlkpOFKO1Wm/Z/TDWIs9KOLixwXCyZoHu0nIgqo6cyRhd3fhFWpGtvnp4u/XlwP7RPFJsdiX8h6+IuKdPuymM+Jj9xhb7gJ0Nw59RfPUXzMHyoFMj41ExzvdR1I1IV2C+a0Vw8G1SgbA5VN58PiJ92J4368qn/1R9zc8u9ijmyGXoc29XVOmL3a1C X-Received: by 10.66.231.40 with SMTP id td8mr26417141pac.103.1396287397652; Mon, 31 Mar 2014 10:36:37 -0700 (PDT) X-Received: by 10.66.231.40 with SMTP id td8mr26417127pac.103.1396287397585; Mon, 31 Mar 2014 10:36:37 -0700 (PDT) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id i10sm43479828pat.36.2014.03.31.10.36.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 31 Mar 2014 10:36:36 -0700 (PDT) From: Loc Ho To: a.zummo@towertech.it Subject: [PATCH v2 3/3] arm64: Add APM X-Gene SoC RTC DTS entry Date: Mon, 31 Mar 2014 11:36:10 -0600 Message-Id: <1396287370-1011-4-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1396287370-1011-3-git-send-email-lho@apm.com> References: <1396287370-1011-1-git-send-email-lho@apm.com> <1396287370-1011-2-git-send-email-lho@apm.com> <1396287370-1011-3-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140331_133659_369023_6479E295 X-CRM114-Status: UNSURE ( 8.48 ) 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.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>; + }; }; };