From patchwork Mon Apr 22 09:56:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 16300 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 17E8025DEE for ; Mon, 22 Apr 2013 09:57:34 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id m1sf6938698yhg.3 for ; Mon, 22 Apr 2013 02:56:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-beenthere:x-received:received-spf:x-received :x-forwarded-to:x-forwarded-for:delivered-to:x-received:received-spf :from:to:cc:subject:date:message-id:x-mailer:mime-version :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe :content-type; bh=4CUSCz2MQP4jcJDdz6zsnJUEAmX+Rpx3P/FBN6PvHg0=; b=HkJpedbRR/KvNVL3H5Iqn8ixOq1GIcu88YTnMgPmaNLsepFkAJu4Vxs68EKZsd9jke X6zJQEMZy8mOHtWDQcScPICK4OCtfhBIPeyvZT3GL71jxRE9GLEzoA1cMYd1sNlXWJT4 syi7EyKdJHvHvXQusBmoG2NYwRUHzkVczvrnUgxRzAUCKgeljXRXXifFXeoknUWXKqlQ wd6iXi6UzJemDASsruTqWWXI43EvSdE6695l3MO6vJ1P/Hs4aG/gMtQatdxb91uO+0+l 3irAS432iiMnW0SUIAwQOaMheW/e3EETozZMISOlQL8obN0YQJKcXCgHAlmXXFS8utLZ sAAg== X-Received: by 10.236.47.136 with SMTP id t8mr12912391yhb.13.1366624608004; Mon, 22 Apr 2013 02:56:48 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.18.42 with SMTP id t10ls2799425qed.35.gmail; Mon, 22 Apr 2013 02:56:47 -0700 (PDT) X-Received: by 10.220.146.82 with SMTP id g18mr10514651vcv.54.1366624607896; Mon, 22 Apr 2013 02:56:47 -0700 (PDT) Received: from mail-vb0-x22f.google.com (mail-vb0-x22f.google.com [2607:f8b0:400c:c02::22f]) by mx.google.com with ESMTPS id sx2si15560482vdc.45.2013.04.22.02.56.47 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Apr 2013 02:56:47 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22f is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::22f; Received: by mail-vb0-f47.google.com with SMTP id x13so5669298vbb.34 for ; Mon, 22 Apr 2013 02:56:47 -0700 (PDT) X-Received: by 10.220.189.9 with SMTP id dc9mr5119887vcb.8.1366624607793; Mon, 22 Apr 2013 02:56:47 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp68830veb; Mon, 22 Apr 2013 02:56:47 -0700 (PDT) X-Received: by 10.180.92.41 with SMTP id cj9mr18264237wib.7.1366624606719; Mon, 22 Apr 2013 02:56:46 -0700 (PDT) Received: from eu1sys200aog125.obsmtp.com (eu1sys200aog125.obsmtp.com [207.126.144.159]) by mx.google.com with SMTP id x5si38589181eeo.152.2013.04.22.02.56.31 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 22 Apr 2013 02:56:46 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.159 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.159; Received: from beta.dmz-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob125.postini.com ([207.126.147.11]) with SMTP ID DSNKUXUJTehp2XLqFVsGLNvGzsTi02bMat3u@postini.com; Mon, 22 Apr 2013 09:56:46 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id BA168C3; Mon, 22 Apr 2013 09:48:15 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 210E9B1; Mon, 22 Apr 2013 09:56:22 +0000 (GMT) Received: from exdcvycastm003.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm003", Issuer "exdcvycastm003" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id A77F724C2FB; Mon, 22 Apr 2013 11:56:15 +0200 (CEST) Received: from steludxu4075.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.3.279.5; Mon, 22 Apr 2013 11:56:20 +0200 From: Linus Walleij To: , Alessandro Zummo , Cc: Arnd Bergmann , , Linus Walleij Subject: [PATCH 12/23] ARM: u300: add RTC to device tree Date: Mon, 22 Apr 2013 11:56:16 +0200 Message-ID: <1366624576-6544-1-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.11.3 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQksTWLohprjA8EswTj7ALKJJIaITyABC4gfDoTm2G5oiGqmkcimd24M5RJUGwzvQryy9VOL X-Original-Sender: linus.walleij@stericsson.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22f is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Linus Walleij This adds the COH 901 331 RTC to the U300 device tree. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/ste-u300.dts | 7 +++++++ arch/arm/mach-u300/core.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/ste-u300.dts b/arch/arm/boot/dts/ste-u300.dts index b1b63bb..784e17a 100644 --- a/arch/arm/boot/dts/ste-u300.dts +++ b/arch/arm/boot/dts/ste-u300.dts @@ -56,6 +56,13 @@ interrupts = <3>; }; + rtc: rtc@c0017000 { + compatible = "stericsson,coh901331"; + reg = <0xc0017000 0x1000>; + interrupt-parent = <&vicb>; + interrupts = <10>; + }; + i2c0: i2c@c0004000 { compatible = "st,ddci2c"; reg = <0xc0004000 0x1000>; diff --git a/arch/arm/mach-u300/core.c b/arch/arm/mach-u300/core.c index f97b65c..20d6c46 100644 --- a/arch/arm/mach-u300/core.c +++ b/arch/arm/mach-u300/core.c @@ -711,6 +711,8 @@ static struct of_dev_auxdata u300_auxdata_lookup[] __initdata = { "u300-gpio", &u300_gpio_plat), OF_DEV_AUXDATA("stericsson,coh901327", U300_WDOG_BASE, "coh901327_wdog", NULL), + OF_DEV_AUXDATA("stericsson,coh901331", U300_RTC_BASE, + "rtc-coh901331", NULL), OF_DEV_AUXDATA("arm,primecell", U300_UART0_BASE, "uart0", &uart0_plat_data), OF_DEV_AUXDATA("arm,primecell", U300_UART1_BASE,