Message ID | 20170522140208.24652-6-javier@dowhile0.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5EA7E601C2 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 22 May 2017 14:07:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4EDC62867E for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 22 May 2017 14:07:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4386728697; Mon, 22 May 2017 14:07:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 36D812867E for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 22 May 2017 14:07:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=McFJLclLAEwU/D48NI8P9l6LApalG1Dm3ipDIlNGJ/I=; b=G7ueEsLOGm4xkEXtKdRlEq7oN9 BNYtCZsYfKsaWhyaRAr0fx8Yfv8x8tw41HdrmcEpZgz2YmyofQ/4QtLtOfzWAd4Kg3nSKnAIFCnuU m0e8QCz/SMTOHKh6kyO7FoPsiKIP1XbtEAGUHYKAnOVxjQRiiZqmgyRE3U+/mkxsRi4N9gkpLNN2Q 6XumFjq0VYoDg4+YjdE9xuzxMgdmCsnlKjIzESlX//uOKWrVKGpSVl7nwNLLY2XYgr7KCHzc1jA01 yeld8c33nn9EBNgU2cKs2GJHXWnRccvaR1r7UV5ymprv+AhnzDCI5ikPbWzNfhrKeUgWYDkOMsRgg Jo+JBEJw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dCnzK-00030I-O3; Mon, 22 May 2017 14:07:10 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dCnvJ-0005jE-Rm for linux-arm-kernel@bombadil.infradead.org; Mon, 22 May 2017 14:03:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=G96t5gh3SL1utLSiorceUORGPpGKNOPNggeR3FKxh4A=; b=W72FEtrQ521dmhsUPGk+wbPQg KnSIdyt0FVQ3AJLCQKZBUTC5dZPkhbBf4S6RonbZBss1sGRcnuuvwBLhi0Fb1XL28h0OdZVzAWnfz i4jKCWnQEhlwYatlbQhcezbJTkXZ9tqNxRuYxilIhvjzpAPpVZOkekSUD9umkglYZotHvOJVnLkFy QkFGKjTnfh+0ouTBWjMPzQUrcerKBmgsGfJS7QbIcoLtmPHw4lLQanWm6w3FvGsrPJPYgHlXI+Mx/ 0o8tYav0Qh4RlFqnr5oJVgs4mQc4X0BYTTNEfqSGGMCU9hgOxdlDlaJX0msUo1q7lPc7SvnZM6f3v Wtwt3SBvg==; Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dCnvF-0001GJ-85 for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2017 14:03:00 +0000 Received: by mail-wm0-x244.google.com with SMTP id k15so32221896wmh.3 for <linux-arm-kernel@lists.infradead.org>; Mon, 22 May 2017 07:02:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dowhile0-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=G96t5gh3SL1utLSiorceUORGPpGKNOPNggeR3FKxh4A=; b=VIB3kgpTcSFalSwMS3ziKv0qLdgAXEVNV4Cq1BSPdPhdGmEq1nBDVW/VyyWTvcr8EG 0+a11dzV27ch4yxusvOT/ByyhzElzUzoX9hjaNtoVV4oVI5K16i7kp1405wsVKo5yf1N qmZbZHTvqQlzC9hq14UWxk794NhhJ1uAw36JABgSwkJ81eZ/cIfIN+B2aL0d6d6nu6nW 9J/BRhxvyIbj9kMHu3IhD1vqZoe0YP09Mne2bJxk4WJgF1rdknvvjVEkFYWBOEvjKaW6 WWYz3wlPd6zl/TlzJqknsCH9QL6AHZfme4gR7lcdYXjcpkFCAxyFMlCeMQFfApjSLFiv GwOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=G96t5gh3SL1utLSiorceUORGPpGKNOPNggeR3FKxh4A=; b=IlaeC0MNLXWsEk+/E8jQ1UmPFmI3WjViGaYPb1lnPvZ5+47dXy3nXQzZzpxo6KeLS4 6bp9aFeMvhN8qfyN41QG5wXAe4JDKqM+YdBG+yiyix9P3+pC49MpBPQUn+w3XKOW9eeZ ETbHYj4SyDV+l7VBtJe+lhg5lqnpRtgT1tn4iHiPun6QDYyPy6ZQilSysMrl+k6RNc4z +gLbBgZ9CS2N4TsaJjPegFaWC9uK0pL6zLbz63B7CJqaZA1MOkd4pNR4f9cyjalVQMKp OLyQ8U4sAl38gfpfwVkJsb7XlPiWqaW68kD9HCkhKBDMvPN7D+JDvxX52MWPOlZWyIdw xFLQ== X-Gm-Message-State: AODbwcAqyxHtI0MdsotJ8msriHRU3OOy6/ww8luuzlSBoN7u0qtMjdIa tA+HfpF0KcQ/Q5zd X-Received: by 10.28.153.143 with SMTP id b137mr345054wme.15.1495461755271; Mon, 22 May 2017 07:02:35 -0700 (PDT) Received: from localhost.localdomain ([90.68.25.6]) by smtp.gmail.com with ESMTPSA id m191sm33821774wmg.30.2017.05.22.07.02.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 May 2017 07:02:34 -0700 (PDT) From: Javier Martinez Canillas <javier@dowhile0.org> To: linux-kernel@vger.kernel.org Subject: [PATCH v4 05/20] ARM: dts: efm32: Add generic compatible string for I2C EEPROM Date: Mon, 22 May 2017 16:01:53 +0200 Message-Id: <20170522140208.24652-6-javier@dowhile0.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170522140208.24652-1-javier@dowhile0.org> References: <20170522140208.24652-1-javier@dowhile0.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170522_150257_334228_9FA80F60 X-CRM114-Status: GOOD ( 17.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Mark Rutland <mark.rutland@arm.com>, Rob Herring <robh@kernel.org>, devicetree@vger.kernel.org, Wolfram Sang <wsa@the-dreams.de>, Russell King <linux@armlinux.org.uk>, Rob Herring <robh+dt@kernel.org>, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= <kernel@pengutronix.de>, Javier Martinez Canillas <javier@dowhile0.org>, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm/boot/dts/efm32gg-dk3750.dts b/arch/arm/boot/dts/efm32gg-dk3750.dts index 98fc667d22c7..df960b4ba312 100644 --- a/arch/arm/boot/dts/efm32gg-dk3750.dts +++ b/arch/arm/boot/dts/efm32gg-dk3750.dts @@ -36,7 +36,7 @@ }; eeprom@50 { - compatible = "microchip,24c02"; + compatible = "atmel,24c02"; reg = <0x50>; pagesize = <16>; };
The at24 driver allows to register I2C EEPROM chips using different vendor and devices, but the I2C subsystem does not take the vendor into account when matching using the I2C table since it only has device entries. But when matching using an OF table, both the vendor and device has to be taken into account so the driver defines only a set of compatible strings using the "atmel" vendor as a generic fallback for compatible I2C devices. So add this generic fallback to the device node compatible string to make the device to match the driver using the OF device ID table. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> --- Changes in v4: - Only use the atmel manufacturer in the compatible string instead of keeping the deprecated ones (Rob Herring). Changes in v3: None Changes in v2: None arch/arm/boot/dts/efm32gg-dk3750.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)