From patchwork Fri May 31 09:18:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 17323 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f71.google.com (mail-vb0-f71.google.com [209.85.212.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5EDA825CAB for ; Fri, 31 May 2013 09:20:36 +0000 (UTC) Received: by mail-vb0-f71.google.com with SMTP id x16sf1518729vbf.2 for ; Fri, 31 May 2013 02:20:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-beenthere:x-forwarded-to:x-forwarded-for:delivered-to:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :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=U80DBwRvQFNTj/miPfnocX20EgiopxBNEijLoOzVhUg=; b=d1CpG+dju+b9rol3IvAbEWh9FES1vjbaFN34JJ/g5KFKfF/a4gGiGwcPj77rWyz7eR SaaQO6OsfWPB/n8uYRJ/44Jt/qgQyxoQC0fNj0uF1CZDdScK01ceGNv4eIJqzbGbfvQM cHo5QFBlQBUY3mhnCOs+XdPBfVYU8HOCTiyTGcW126K3s8jVE4FcR45LC5DfR8dYumFW 8VF9sSIPXLbZw/d82m49GUuHGVO2u75TJFVl9AuDlDWXXhN49u/I0Y75maKMW+TMqesZ e8kQSFGObwdqEZWExEz/f3m1d5Ddq/SSha1Qt5+A1Vhj2qI5xFf8AQqGvXsnm/b2IzUp 8k6w== X-Received: by 10.236.171.65 with SMTP id q41mr5744296yhl.53.1369992036093; Fri, 31 May 2013 02:20:36 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.24.133 with SMTP id u5ls858675qef.3.gmail; Fri, 31 May 2013 02:20:35 -0700 (PDT) X-Received: by 10.52.240.238 with SMTP id wd14mr8097127vdc.81.1369992035953; Fri, 31 May 2013 02:20:35 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id 18si27797893vcj.73.2013.05.31.02.20.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 May 2013 02:20:35 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id ht10so897095vcb.32 for ; Fri, 31 May 2013 02:20:35 -0700 (PDT) X-Received: by 10.58.90.5 with SMTP id bs5mr9133779veb.60.1369992035828; Fri, 31 May 2013 02:20:35 -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.220.229.199 with SMTP id jj7csp42394vcb; Fri, 31 May 2013 02:20:35 -0700 (PDT) X-Received: by 10.14.99.8 with SMTP id w8mr13025555eef.30.1369992034758; Fri, 31 May 2013 02:20:34 -0700 (PDT) Received: from eu1sys200aog108.obsmtp.com (eu1sys200aog108.obsmtp.com [207.126.144.125]) by mx.google.com with SMTP id j45si28790678eey.81.2013.05.31.02.20.11 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 31 May 2013 02:20:34 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.125 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.125; Received: from beta.dmz-us.st.com ([167.4.1.35]) (using TLSv1) by eu1sys200aob108.postini.com ([207.126.147.11]) with SMTP ID DSNKUahrSvUEEikCkF9WezmLcZLr4boWiULI@postini.com; Fri, 31 May 2013 09:20:34 UTC Received: from zeta.dmz-us.st.com (ns4.st.com [167.4.16.71]) by beta.dmz-us.st.com (STMicroelectronics) with ESMTP id 8891357; Fri, 31 May 2013 09:19:05 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id C7EB157; Fri, 31 May 2013 09:20:05 +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 41E9724C07D; Fri, 31 May 2013 11:20:00 +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; Fri, 31 May 2013 11:20:05 +0200 From: Linus Walleij To: Cc: Arnd Bergmann , Linus Walleij Subject: [PATCH 11/39] ARM: u300: add RTC to device tree Date: Fri, 31 May 2013 11:18:46 +0200 Message-ID: <1369991954-17406-12-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.11.3 In-Reply-To: <1369991954-17406-1-git-send-email-linus.walleij@stericsson.com> References: <1369991954-17406-1-git-send-email-linus.walleij@stericsson.com> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQnMeRkK2+Gi3OZ0jGvdqaXQOoMXIMZVWADaVRF/y1zFfESyQcF9i5HQyQSIRv2hAOXZaeJo X-Original-Sender: linus.walleij@stericsson.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.173 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 f0eb5f4..711a2d9 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 190e788..637034b 100644 --- a/arch/arm/mach-u300/core.c +++ b/arch/arm/mach-u300/core.c @@ -712,6 +712,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,