From patchwork Thu Apr 13 18:28:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 9679915 Return-Path: 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 9AB6F60326 for ; Thu, 13 Apr 2017 19:08:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 88AC027F90 for ; Thu, 13 Apr 2017 19:08:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7D7EF286A1; Thu, 13 Apr 2017 19:08:25 +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=unavailable 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 1455E27F90 for ; Thu, 13 Apr 2017 19:08:25 +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=f5DLra30zy1aRiRKRcx6TVWbB7H2dE1QsphG1hVRkow=; b=cKBW1Lxu3Mh5DC6ZOcEbbLAbPG uMn0dQ5R92flD5VcWebkTliY7qcMjhjEABOqRd/bUwXjZsIq+s56ohGsOqMDYWqseXMJzmKVV4XqO oLkTslfqk+L0Dv3IMQ81KzbXTmHqn1FfjravvDuECP1yXZeGm5uptIyd2LccrT8b13+gdmdJmMI9w eH/ean2O3qlNcZ2xW3xNYicVMSo7furcfRsSiGEhLSvRN4iL7dC4/A3IZJnjLWvKLCFhPMbYA3BDt vJVjONALerHRJlXIPK7b/+4kemvsr78f593CraNnZRUqb3wrLwjQ00BhHz5y5Hl0qtsW0mnCWrW+j S0XjJM0A==; 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 1cyk6S-00075e-2W; Thu, 13 Apr 2017 19:08:24 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cyk64-0006bW-DG for linux-arm-kernel@bombadil.infradead.org; Thu, 13 Apr 2017 19:08:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=OKJ+GktAyjWIfXpvPtO1QccF7zFSQzoA4MkfxQk1+7c=; b=brI/ModsjKcir7yCG/Z29Nsic 1DTzFwR0oQWtku36en2feMXWhbIGIq5UALOlrAawhwn9mYjMWlW6jb+/cOw76sMiQAC+HAU1YsWjL TwInwyM0iWpy6q8Hrv3BBNDzBIrqanl+K7VaG9sgcDvelbr3FvG7E2JNzovhOjwwwx1aKgCsEWpmv 3kh71Iv8MoZl67eeuBRW2QY5t82k71aUzfMb3W4LZCsZm754MlWTZE2XjWhEPQMbxhOiIXjZ29fNp QQFhx5bqG3Avwd9R8UK7s6gbl6ILNu+rYKZWyQl6nwdHjQ0bL4FTFNmlyUkMeK6RGBzeHT3FHes4L XbxM5MgqA==; Received: from ec2-52-27-115-49.us-west-2.compute.amazonaws.com ([52.27.115.49] helo=osg.samsung.com) by merlin.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cyjXf-0008J0-If for linux-arm-kernel@lists.infradead.org; Thu, 13 Apr 2017 18:32:28 +0000 Received: from localhost (localhost [127.0.0.1]) by osg.samsung.com (Postfix) with ESMTP id D1BE8A05F2; Thu, 13 Apr 2017 18:32:31 +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 VoDybkFaHdl2; Thu, 13 Apr 2017 18:32:31 +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 A535FA05ED; Thu, 13 Apr 2017 18:32:15 +0000 (UTC) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [PATCH v2 09/22] ARM: dts: lpc18xx: Add generic compatible string for I2C EEPROM Date: Thu, 13 Apr 2017 15:28:26 -0300 Message-Id: <20170413182839.25381-10-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_143227_737609_8FF6F6EA X-CRM114-Status: GOOD ( 12.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Wolfram Sang , Joachim Eastwood , Russell King , Javier Martinez Canillas , Rob Herring , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- Changes in v2: None arch/arm/boot/dts/lpc4337-ciaa.dts | 6 +++--- arch/arm/boot/dts/lpc4350-hitex-eval.dts | 2 +- arch/arm/boot/dts/lpc4357-ea4357-devkit.dts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/lpc4337-ciaa.dts b/arch/arm/boot/dts/lpc4337-ciaa.dts index 7c16d639a1b4..8b584b39db7d 100644 --- a/arch/arm/boot/dts/lpc4337-ciaa.dts +++ b/arch/arm/boot/dts/lpc4337-ciaa.dts @@ -174,17 +174,17 @@ clock-frequency = <400000>; eeprom@50 { - compatible = "microchip,24c512"; + compatible = "microchip,24c512","atmel,24c512"; reg = <0x50>; }; eeprom@51 { - compatible = "microchip,24c02"; + compatible = "microchip,24c02","atmel,24c02"; reg = <0x51>; }; eeprom@54 { - compatible = "microchip,24c512"; + compatible = "microchip,24c512","atmel,24c512"; reg = <0x54>; }; }; diff --git a/arch/arm/boot/dts/lpc4350-hitex-eval.dts b/arch/arm/boot/dts/lpc4350-hitex-eval.dts index 874c75d44013..32a512926a8f 100644 --- a/arch/arm/boot/dts/lpc4350-hitex-eval.dts +++ b/arch/arm/boot/dts/lpc4350-hitex-eval.dts @@ -429,7 +429,7 @@ }; eeprom@50 { - compatible = "nxp,24c02"; + compatible = "nxp,24c02","atmel,24c02"; reg = <0x50>; }; diff --git a/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts b/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts index 9b5fad622522..7000a565f50b 100644 --- a/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts +++ b/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts @@ -490,7 +490,7 @@ }; eeprom@57 { - compatible = "microchip,24c64"; + compatible = "microchip,24c64","atmel,24c64"; reg = <0x57>; }; };