Message ID | 20170413182839.25381-16-javier@osg.samsung.com (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 2248E601C3 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 13 Apr 2017 18:46:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1532228677 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 13 Apr 2017 18:46:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0973328694; Thu, 13 Apr 2017 18:46:54 +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 84D4F28677 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 13 Apr 2017 18:46:53 +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=n4JSG8UzAY3H6Q7S0dwmcAgWnQ1DQQWBO1ud+Vz5XYU=; b=cUxct/jJ8TuIm5/lv8q+zMXfOl OM/bqLJNTUq6WdSMIGFHTMtm5pspg9mkg+c+XcVZkMsKmg0WMrU9sLza6tviIGcRtYOfSammQPiMl dHSKuZm5cGjifK6ZqzIzMhC5oc4un2WhOkg3qQ7TDmiGA1lRQxeu9y9gUTRf9CdOFMC0foLm/KzbR 7SGDzxHuqU8mSOVUsgFiH7jtutELycAyJevajcXqpxciOtZre+M6ygUIXnEHdJzAjrcIUlXPYO8Fc uc5FWZgRqpmfGCw3NPaa04Svhx6ln7bI5kFtutaHZIId+BzAz33LjpPiW1sCvTkJvYGxXdZP4miaJ 1KO1dUBg==; 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 1cyjlU-0006d3-5P; Thu, 13 Apr 2017 18:46:44 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cyjlR-0006TQ-Ph for linux-arm-kernel@bombadil.infradead.org; Thu, 13 Apr 2017 18:46:42 +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=jqpPFbe19LVUeBilTgXHo0A+bvF6hqKhlEKAAKJBfVo=; b=GfO+XyGKt0uPMIw8YMcN4ZDg/ pJFXmcreC9OjGQNwkGCvWjGxTRFxs6Kw/2A1Dri6zlPqqrXX/9lT53mtF5jC41J8Pcf5mF59UD5Su Ly3+P1pYEcGazxu38jqy712T7zfYIrK6kFcwyHyoHcDifBBU7TbyNcDmRPbB9RC3zPr/7g0pggmKp muPGU6N8f8v6tJDK0d3dAnKYpgpDWu2hLjgx6y1mG+Im+JC1dEqSv+/M3RNHkAoFmPmP2KkD8BzmU IYA+Fupm/wYWGakvsrdTf8Tbb+8L/8wId7qNl7Tyhtgyo17bMb4MKq+ywknULv3kOIGaCmkiP4uA8 ssj0FtJTQ==; Received: from ec2-52-27-115-49.us-west-2.compute.amazonaws.com ([52.27.115.49] helo=osg.samsung.com) by casper.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cyjYd-00061x-HK for linux-arm-kernel@lists.infradead.org; Thu, 13 Apr 2017 18:33:29 +0000 Received: from localhost (localhost [127.0.0.1]) by osg.samsung.com (Postfix) with ESMTP id C5843A05F2; Thu, 13 Apr 2017 18:33:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osg.samsung.com Received: from osg.samsung.com ([127.0.0.1]) by localhost (s-opensource.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Pc40puxIXgDn; Thu, 13 Apr 2017 18:33:28 +0000 (UTC) Received: from minerva.sisa.samsung.com (r167-61-29-222.dialup.adsl.anteldata.net.uy [167.61.29.222]) by osg.samsung.com (Postfix) with ESMTPSA id CE1ADA05ED; Thu, 13 Apr 2017 18:33:15 +0000 (UTC) From: Javier Martinez Canillas <javier@osg.samsung.com> To: linux-kernel@vger.kernel.org Subject: [PATCH v2 15/22] arm64: dts: ls1043a: Add generic compatible string for I2C EEPROM Date: Thu, 13 Apr 2017 15:28:32 -0300 Message-Id: <20170413182839.25381-16-javier@osg.samsung.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170413182839.25381-1-javier@osg.samsung.com> References: <20170413182839.25381-1-javier@osg.samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170413_193327_740889_F4583A5E X-CRM114-Status: GOOD ( 14.46 ) 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>, devicetree@vger.kernel.org, Herbert Xu <herbert@gondor.apana.org.au>, =?UTF-8?q?Horia=20Geant=C4=83?= <horia.geanta@nxp.com>, Wolfram Sang <wsa@the-dreams.de>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will.deacon@arm.com>, Stuart Yoder <stuart.yoder@nxp.com>, Javier Martinez Canillas <javier@osg.samsung.com>, Rob Herring <robh+dt@kernel.org>, Hongtao Jia <hongtao.jia@nxp.com>, Shawn Guo <shawnguo@kernel.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/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts index c37110bc1506..d6551b95b662 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts @@ -75,11 +75,11 @@ reg = <0x4c>; }; eeprom@52 { - compatible = "at24,24c512"; + compatible = "at24,24c512","atmel,24c512"; reg = <0x52>; }; eeprom@53 { - compatible = "at24,24c512"; + compatible = "at24,24c512","atmel,24c512"; reg = <0x53>; }; rtc@68 {
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@osg.samsung.com> --- Changes in v2: None arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)