From patchwork Mon Apr 22 09:53:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 16296 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 2219625DEE for ; Mon, 22 Apr 2013 09:54:26 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id m1sf6935486yhg.3 for ; Mon, 22 Apr 2013 02:53:40 -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=VCdV8e4aToxQY3AUqSGwmTIduJZSENCcKrUL4zDlMXs=; b=AnCRr2LDf46rNk3YVCQeA/aw9GyCqMvdFESzbmiMUrYJQUcPPquCWsnxVww/FmapjH ghlzgsmntHn6VtfmapBLfSqzdd85tzavxym8huHidq6Y9esDR071/luYK1d1soqq1dfU tzK1FO5nIaSooHebkzFXLlwtjNFFgXAyRcMYIm/xNIjtCPSNaf75rD6mkllEe/e195Ax C/53tdCRz+f/tedWIDus6Z7cgVdqKTit7puKncN0krCmhJ0dG4Iyhg3hXESGCVMcJ7xz Hfa6oAXxteE5F1PEknSI25VDJ6okXrIW7PrGsHDHeIy79QOZf582CFqDpmhun10DFvTo aKDw== X-Received: by 10.224.58.77 with SMTP id f13mr19502828qah.7.1366624420025; Mon, 22 Apr 2013 02:53:40 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.49.229 with SMTP id x5ls675414qen.96.gmail; Mon, 22 Apr 2013 02:53:39 -0700 (PDT) X-Received: by 10.52.231.231 with SMTP id tj7mr15735370vdc.111.1366624419885; Mon, 22 Apr 2013 02:53:39 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id ir6si1113271vdb.91.2013.04.22.02.53.39 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Apr 2013 02:53:39 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.180 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.180; Received: by mail-vc0-f180.google.com with SMTP id m16so5819040vca.25 for ; Mon, 22 Apr 2013 02:53:39 -0700 (PDT) X-Received: by 10.220.242.73 with SMTP id lh9mr18241203vcb.49.1366624419767; Mon, 22 Apr 2013 02:53:39 -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 nf2csp68706veb; Mon, 22 Apr 2013 02:53:38 -0700 (PDT) X-Received: by 10.205.41.132 with SMTP id tu4mr10319419bkb.4.1366624415843; Mon, 22 Apr 2013 02:53:35 -0700 (PDT) Received: from eu1sys200aog118.obsmtp.com (eu1sys200aog118.obsmtp.com [207.126.144.145]) by mx.google.com with SMTP id e45si38573375eep.162.2013.04.22.02.53.27 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 22 Apr 2013 02:53:35 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.145 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.145; Received: from beta.dmz-us.st.com ([167.4.1.35]) (using TLSv1) by eu1sys200aob118.postini.com ([207.126.147.11]) with SMTP ID DSNKUXUIlk6lfsdvJQM8iOPiv6yfWlgd2kcT@postini.com; Mon, 22 Apr 2013 09:53:35 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 9978658; Mon, 22 Apr 2013 09:52:29 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id 9E7F03F; Mon, 22 Apr 2013 03:01:56 +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 42DEB24C07C; Mon, 22 Apr 2013 11:53:19 +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:53:24 +0200 From: Linus Walleij To: , Wolfram Sang Cc: Arnd Bergmann , , Linus Walleij Subject: [PATCH 08/23] ARM: u300: register I2C bus drivers from device tree Date: Mon, 22 Apr 2013 11:53:20 +0200 Message-ID: <1366624400-6364-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: ALoCoQkZhJT1b4xxhGWp/Sfeng6AxhntTqpaB9xS4mVDmSw20IQg70RMx0sSrdvech8GbAPhO3mq X-Original-Sender: linus.walleij@stericsson.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.180 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 80f963c..9c08d5e 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 5b42983..fedad38 100644 --- a/arch/arm/mach-u300/core.c +++ b/arch/arm/mach-u300/core.c @@ -713,6 +713,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 */ },