From patchwork Fri Nov 24 16:27:48 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: 10074299 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 B8AB46037F for ; Fri, 24 Nov 2017 16:29:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8C5F2A2A6 for ; Fri, 24 Nov 2017 16:29:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D9332A2C8; Fri, 24 Nov 2017 16:29:12 +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=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 375E62A2A6 for ; Fri, 24 Nov 2017 16:29:12 +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=YOWLDF5GQkdnZTngqOUObN/VIjV93jCGcgfINglU63E=; b=XFYbtMgh/2CXqQ9mBrzaXgiB7V npapazi4+D53+iQVkztG7QnZI1BksabcTZ3hVJv3pO3u8VlnBIeLmN0Z478D+mdqdfW4BJRBu+ZsZ tjuMZdBXF0HM9VOY5RObewsWXyklaZwc8RVH54Mk75QQCfcNlQEZ1G7p5hM7iUer0ETEoQQ5pKw/P kBWDaLvZpEAHzEr+KYMRVV+zbNhOnoAOpDh6AnoeDxjIoMUZQ6934xbpoDb1SRkfazEkAdBpTWgXk nkclvvOWVx/DeUMLCwfOJYeowzVwLMHOW/zQEHpSYcTXT0b3PIt+2vmjbFNfQpMv953QxTb5V4Kze aqPnfh3Q==; 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 1eIGql-000469-K8; Fri, 24 Nov 2017 16:29:11 +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-0003Gn-IG 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 s41so15398090wrc.7 for ; Fri, 24 Nov 2017 08:27:57 -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=FrjACX2VnkaJiCd60MiuPemLWXTcai+qfULJ6HnirXw=; b=E7rhEUa6WKAozSEcthPfhb2ayyMtFEAAEfYHj+dffXc68jqifIH1wEYXQXGBo64Jji jDFJfx/mhCY+fFpSHrOcBTohT8piw3Sjs3k+DUW9/7+/McuGXZgN+zfadlNE56Q/uaqh 0F8Xdtolqs114fwF9AyVEJbcJjq6Kl5dmwHrZLOUk4f9GHUBKA+HCaVwAbMZoKiV9uDK dPLFmpKYLXqqPzLNXkcwd//JZ8Z69ITQLG2nKmD6j2nzGa63TQpvEAXNZlQGB9k9f5/+ QhTHwy+q2qcDpFvMopQlNR6vkeMxv/dAAZd7RwTFOvjxUWDFSbUJp07bxsYMAptZcd5Y tx+Q== X-Gm-Message-State: AJaThX7j82AVmjDMVWhpIkGEaXsS1Zw6e+0bsQIVZ3XWtMOYdipaRBTX xZ4KgAO2DhSI1fUdqdyPkPqyow== X-Google-Smtp-Source: AGs4zMYL9VkUS8XtQK3G+AsZC1jYyub6xeix541x2jDxn5S1776b5GLa8DRbjwxgT/AH9eslXf1MjA== X-Received: by 10.223.150.68 with SMTP id c4mr27310204wra.255.1511540876390; Fri, 24 Nov 2017 08:27:56 -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.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 Nov 2017 08:27:55 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [RESEND PATCH 2/4] ARM: dts: keystone: Add generic compatible string for I2C EEPROM Date: Fri, 24 Nov 2017 17:27:48 +0100 Message-Id: <20171124162750.18756-2-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_787904_6DCAFA10 X-CRM114-Status: GOOD ( 11.66 ) 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, Javier Martinez Canillas , Rob Herring , Russell King , arm@kernel.org, Santosh Shilimkar , 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/keystone-k2e-evm.dts | 2 +- arch/arm/boot/dts/keystone-k2hk-evm.dts | 2 +- arch/arm/boot/dts/keystone-k2l-evm.dts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/keystone-k2e-evm.dts b/arch/arm/boot/dts/keystone-k2e-evm.dts index f1f32c54e72f..2c59f4cb3b44 100644 --- a/arch/arm/boot/dts/keystone-k2e-evm.dts +++ b/arch/arm/boot/dts/keystone-k2e-evm.dts @@ -82,7 +82,7 @@ &i2c0 { dtt@50 { - compatible = "at,24c1024"; + compatible = "atmel,24c1024"; reg = <0x50>; }; }; diff --git a/arch/arm/boot/dts/keystone-k2hk-evm.dts b/arch/arm/boot/dts/keystone-k2hk-evm.dts index 6dd13b98aaba..13759db99d81 100644 --- a/arch/arm/boot/dts/keystone-k2hk-evm.dts +++ b/arch/arm/boot/dts/keystone-k2hk-evm.dts @@ -158,7 +158,7 @@ &i2c0 { dtt@50 { - compatible = "at,24c1024"; + compatible = "atmel,24c1024"; reg = <0x50>; }; }; diff --git a/arch/arm/boot/dts/keystone-k2l-evm.dts b/arch/arm/boot/dts/keystone-k2l-evm.dts index 528667618db4..e6de1ae33c73 100644 --- a/arch/arm/boot/dts/keystone-k2l-evm.dts +++ b/arch/arm/boot/dts/keystone-k2l-evm.dts @@ -55,7 +55,7 @@ &i2c0 { dtt@50 { - compatible = "at,24c1024"; + compatible = "atmel,24c1024"; reg = <0x50>; }; };