From patchwork Fri Nov 24 16:27:49 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: 10074303 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 527C86056E for ; Fri, 24 Nov 2017 16:29:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 43F1C2A2A6 for ; Fri, 24 Nov 2017 16:29:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3838A2A2C8; Fri, 24 Nov 2017 16:29:32 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED 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 CAF7F2A2C4 for ; Fri, 24 Nov 2017 16:29:31 +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=+MJT6x2hiiNS0x0z517OoN8fvb+SeS6LOxw5jO4wTCk=; b=Tp9/bi8RmXt+lz9JCHEN7ceQ34 trg3QIKkZXYld5xgiUIGcPzEnfpR7ZxepiGVrimSjh1VNuAduP5WNo3TyymXkancXyd7D5D1xR21Z CI5fCxP9zs5+nfoUuALsWyN8NfggyG4RhNn+hcWc2fdICEBfU6jIlpy47+d4aZBtlXw2A3NXZPh/O F/pVSZ+nHCQrNHHXriO+SO/uAPSmFmfbo12fv5qlJs3kK/t55KPyUeAiLRv22aMo/RwyqX9JY4kan kiA9mKF9eArECW5dBI/fB3oH5eqc+7eAsSx5b3t2V6sTSaDqxnJgvfL0Y+zsdExCtOtCRV6E0HItH iBRKwNkA==; 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 1eIGr3-0004Kb-2t; Fri, 24 Nov 2017 16:29:29 +0000 Received: from mail-wr0-f194.google.com ([209.85.128.194]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eIGpu-0003Gy-IE for linux-arm-kernel@lists.infradead.org; Fri, 24 Nov 2017 16:28:21 +0000 Received: by mail-wr0-f194.google.com with SMTP id 11so17470656wrb.6 for ; Fri, 24 Nov 2017 08:27:59 -0800 (PST) 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=I3sBwFrrau9WI5+q5nc5yH0OZFE9OIBhw9dijPSP16Y=; b=WQ+ljYvTfXigHDKfwxINuy+CoKwg2p2Kav27XAF2qyuWYUWeFhwJho/q3L0a7VE4zd QGPWmiwTBWtZbcr1Iq9LaIU6o0NIo1mKW0XelI3G5X3sBe8seV/mjkl30drKNKCk9vvC dhF+7gYH2OP5nDX+V4Z7gDP4VTm8vtb7AJ6mzQ1JmgOymQdpX0G0YQA/RyKXdy3QuQmT TZ6xB2yRadL1BiNi0PLKMWAHm/Axtb0WDuH8xzLyTrguVdjz9BqZl3Dh2lxdqu6uYXpq RizA+LvId0jlZWQ88zNjf3Lh4nX59MvqeHax4yJalwtZy0D2s0gkHdRrxc/CJakH9c7p 0kow== X-Gm-Message-State: AJaThX7eLVLyfzhJzQsNFEduBZ2xlK0LSp6zngl7zpKKTWZf6GBOsf3V dwTCoekW5qQ717iOkaXSVv6h9Q== X-Google-Smtp-Source: AGs4zMYgkeX6kxAPA+v4gu8P67P81osjNYOfDsBAuc6JLFQjjnnzsPemMlQmMlL2h48Vi6v/5qRQEQ== X-Received: by 10.223.135.3 with SMTP id a3mr24116379wra.109.1511540877973; Fri, 24 Nov 2017 08:27:57 -0800 (PST) Received: from minerva.redhat.com ([90.77.100.34]) by smtp.gmail.com with ESMTPSA id o88sm26963360wrc.10.2017.11.24.08.27.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 Nov 2017 08:27:57 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [RESEND PATCH 3/4] ARM: dts: lpc18xx: Add generic compatible string for I2C EEPROM Date: Fri, 24 Nov 2017 17:27:49 +0100 Message-Id: <20171124162750.18756-3-javierm@redhat.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171124162750.18756-1-javierm@redhat.com> References: <20171124162750.18756-1-javierm@redhat.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171124_082818_782087_39E88C5F X-CRM114-Status: GOOD ( 12.34 ) 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, arnd@arndb.de, Joachim Eastwood , Javier Martinez Canillas , Rob Herring , Russell King , arm@kernel.org, olof@lixom.net, 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 --- 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..beddaba85393 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..8b973f537d3a 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..02b23fa29d75 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>; }; };