From patchwork Fri May 31 09:18:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 17321 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f198.google.com (mail-we0-f198.google.com [74.125.82.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 108EA25CAB for ; Fri, 31 May 2013 09:20:25 +0000 (UTC) Received: by mail-we0-f198.google.com with SMTP id q56sf1286473wes.1 for ; Fri, 31 May 2013 02:20:25 -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=aQe0G6nYM/0snk/IvTe6yIQzNlYPuCBAy3i7pRj5/7g=; b=QVYb3+C9Uq7ODrlA84J8X8Bq7nur/6qyy04iFqNPWdSGS9aQMCM3+TR3ED/VyicAIX MY0AwCMUpllz9Urbj0HLeQb8kd7e0PI6AzgjAV6BfwK31S3zSp/8Ag9xYF+12BEDA5JC CuUK6g/suT6MiAiuka/yyzhxOyeDBAWCmL9YJ0/1vYdHsy3yf73uSeO6RUK8GMMtAsuy zPoOrXGiVl1TrTpeLjBIEgYOQ63ANdVnxCup27IwKyvrQN46VX7gwq19NRz4KToqQRuU /L/Khk4xmmCuu5kusrbs307z+5Y7OEkfy3jzRNdJk4euoekZmLmxaCvPY5NTvMQM4s99 D23Q== X-Received: by 10.180.76.174 with SMTP id l14mr1135410wiw.5.1369992025187; Fri, 31 May 2013 02:20:25 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.180.14.193 with SMTP id r1ls158561wic.54.canary; Fri, 31 May 2013 02:20:25 -0700 (PDT) X-Received: by 10.180.74.207 with SMTP id w15mr2349118wiv.19.1369992025109; Fri, 31 May 2013 02:20:25 -0700 (PDT) Received: from mail-ve0-x229.google.com (mail-ve0-x229.google.com [2607:f8b0:400c:c01::229]) by mx.google.com with ESMTPS id h7si10651123wjy.214.2013.05.31.02.20.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 May 2013 02:20:25 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::229 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:c01::229; Received: by mail-ve0-f169.google.com with SMTP id m1so964227ves.28 for ; Fri, 31 May 2013 02:20:24 -0700 (PDT) X-Received: by 10.52.34.114 with SMTP id y18mr7927901vdi.56.1369992024026; Fri, 31 May 2013 02:20:24 -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 jj7csp42386vcb; Fri, 31 May 2013 02:20:23 -0700 (PDT) X-Received: by 10.14.88.130 with SMTP id a2mr12896300eef.53.1369992022960; Fri, 31 May 2013 02:20:22 -0700 (PDT) Received: from eu1sys200aog113.obsmtp.com (eu1sys200aog113.obsmtp.com [207.126.144.135]) by mx.google.com with SMTP id h48si30048004eey.124.2013.05.31.02.19.59 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 31 May 2013 02:20:22 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.135 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.135; Received: from beta.dmz-us.st.com ([167.4.1.35]) (using TLSv1) by eu1sys200aob113.postini.com ([207.126.147.11]) with SMTP ID DSNKUahrPsMiG0A/W3tSyCpsaSvCkuSDe9lY@postini.com; Fri, 31 May 2013 09:20:22 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 E5FA959; Fri, 31 May 2013 09:18:56 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id 304F057; Fri, 31 May 2013 09:19:57 +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 9D58324C07C; Fri, 31 May 2013 11:19:46 +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:19:51 +0200 From: Linus Walleij To: Cc: Arnd Bergmann , Linus Walleij Subject: [PATCH 07/39] ARM: u300: register I2C bus drivers from device tree Date: Fri, 31 May 2013 11:18:42 +0200 Message-ID: <1369991954-17406-8-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: ALoCoQlm6XDI1WqRyfj3fO8l4KRFSrK3qkZlh+51YMkRykMgB8j310EgP7kneRsjNO79OY+8b8mO X-Original-Sender: linus.walleij@stericsson.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::229 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 two I2C busses to the device tree so these probe properly. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/ste-u300.dts | 18 ++++++++++++++++++ arch/arm/mach-u300/core.c | 4 ++++ 2 files changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/ste-u300.dts b/arch/arm/boot/dts/ste-u300.dts index 9e423eb..67a1b52 100644 --- a/arch/arm/boot/dts/ste-u300.dts +++ b/arch/arm/boot/dts/ste-u300.dts @@ -49,6 +49,24 @@ reg = <0xc0011000 0x1000>; }; + i2c0: i2c@c0004000 { + compatible = "st,ddci2c"; + reg = <0xc0004000 0x1000>; + interrupt-parent = <&vicb>; + interrupts = <8>; + #address-cells = <1>; + #size-cells = <0>; + }; + + i2c1: i2c@c0005000 { + compatible = "st,ddci2c"; + reg = <0xc0005000 0x1000>; + interrupt-parent = <&vicb>; + interrupts = <9>; + #address-cells = <1>; + #size-cells = <0>; + }; + amba { compatible = "arm,amba-bus"; #address-cells = <1>; diff --git a/arch/arm/mach-u300/core.c b/arch/arm/mach-u300/core.c index a210b1c..abe9704 100644 --- a/arch/arm/mach-u300/core.c +++ b/arch/arm/mach-u300/core.c @@ -714,6 +714,10 @@ static struct of_dev_auxdata u300_auxdata_lookup[] __initdata = { "uart0", &uart0_plat_data), OF_DEV_AUXDATA("arm,primecell", U300_UART1_BASE, "uart1", &uart1_plat_data), + OF_DEV_AUXDATA("st,ddci2c", U300_I2C0_BASE, + "stu300.0", NULL), + OF_DEV_AUXDATA("st,ddci2c", U300_I2C1_BASE, + "stu300.1", NULL), OF_DEV_AUXDATA("arm,primecell", U300_MMCSD_BASE, "mmci", &mmcsd_platform_data), { /* sentinel */ },