From patchwork Wed Dec 5 21:42:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joachim Eastwood X-Patchwork-Id: 1843261 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id C8FE93FC71 for ; Wed, 5 Dec 2012 21:45:56 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TgMjx-0007Il-Km; Wed, 05 Dec 2012 21:42:49 +0000 Received: from mail-lb0-f177.google.com ([209.85.217.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TgMjt-0007IS-G3 for linux-arm-kernel@lists.infradead.org; Wed, 05 Dec 2012 21:42:46 +0000 Received: by mail-lb0-f177.google.com with SMTP id n10so4397651lbo.36 for ; Wed, 05 Dec 2012 13:42:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=V47pi2ZKnrl3LuOMWz65djb7vSyrcLiGFxjtrf4zDv0=; b=XFpofFgvxIj/vMQFdCe5Gpzj8y/JOIZ/VdiwjwBLyK2eEDt9lWNTkNmHBJ8Dgm6EZE 6Wq2nMAdxuROKDLRdlpX6DJ08xsF6WFG+6jJ/iBMpc9Nl9Lxf7de6PCjI6oNnS4K82rA TY373EIj8LrgGFrwUVqG6BLFpvMlvudVW8GYFqHqv3tFfZ9dwn3LC6UYU6GipUQo0vBJ TSD+zGPSmlSA0L8rMt4BMx77p1jolcNCBDvDWdGMNsF0y7TsvVDwOlYjSleY+ltIWoj5 kDTYQ7SVLVmJXoENElAcVompNLCdlLYkDj7vPuECWvGjBeK4pT3arQcWX82gUSDrbuDQ RnIw== Received: by 10.152.106.79 with SMTP id gs15mr18263331lab.31.1354743761420; Wed, 05 Dec 2012 13:42:41 -0800 (PST) Received: from localhost.localdomain (57.90-149-223.nextgentel.com. [90.149.223.57]) by mx.google.com with ESMTPS id ly18sm2618383lab.15.2012.12.05.13.42.39 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 05 Dec 2012 13:42:40 -0800 (PST) From: Joachim Eastwood To: ludovic.desroches@atmel.com, plagnioj@jcrosoft.com, nicolas.ferre@atmel.com Subject: [PATCH] i2c: at91: add of_device_id entry for at91rm9200 Date: Wed, 5 Dec 2012 22:42:12 +0100 Message-Id: <1354743732-11581-1-git-send-email-manabian@gmail.com> X-Mailer: git-send-email 1.8.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121205_164245_705020_0634A47D X-CRM114-Status: GOOD ( 11.05 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (manabian[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.217.177 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Joachim Eastwood , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Signed-off-by: Joachim Eastwood --- Hi, AT91RM9200 is gaining DT support now so let's add an id to the i2c driver. Tested on custom RM9200 board. Since the driver doesn't support pinctrl muxing yet I had to add pinctrl hogs for the i2c pins in my dts for it to work. regards Joachim Eastwood drivers/i2c/busses/i2c-at91.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c index b4575ee..c504aa8 100644 --- a/drivers/i2c/busses/i2c-at91.c +++ b/drivers/i2c/busses/i2c-at91.c @@ -584,6 +584,9 @@ static const struct platform_device_id at91_twi_devtypes[] = { #if defined(CONFIG_OF) static const struct of_device_id atmel_twi_dt_ids[] = { { + .compatible = "atmel,at91rm9200-i2c", + .data = &at91rm9200_config, + } , { .compatible = "atmel,at91sam9260-i2c", .data = &at91sam9260_config, } , {