From patchwork Fri Nov 24 16:27:47 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: 10074293 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 BE1CE6037F for ; Fri, 24 Nov 2017 16:28:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE62F2A2C4 for ; Fri, 24 Nov 2017 16:28:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A1B9B2A2CC; Fri, 24 Nov 2017 16:28: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=-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 381712A2C4 for ; Fri, 24 Nov 2017 16:28: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: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:In-Reply-To: References:List-Owner; bh=M6C3G/EsumVlE2UPjtWtv+2wESiC66sIv2FORqKbxgg=; b=gfL Bga9av6gyb6aU9Jb13lEBvq74wG1tdDbVIWQIWrHJG6PYLTYmqcPLVWqz+zFUGFW0hKEJI710co+H PrNmSEfa9mntmK6vMIY3EAl4mRm+IbQHE1tK93FLZlx3ERDmQCAA8ooiokxEwc6JmA6pFzq0MV9Gc GYVMxbv1UoPp5z0MY5Mtk7z5Vmx4B0/SvyJ843zR0/CfGnYLTmbevrRJmqnY4UITKXeq49sAWP3OE p8xzLjXmos5jYJNlCR796Z0C9cD1HP6etGCCPjz8twT5E2Lq5PJyUC8UQIlpvMH8rDR5NUIFzZCGj LRHe5poPQv9bjPwJA1eqer1ekYeDApw==; 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 1eIGpy-0003KP-OB; Fri, 24 Nov 2017 16:28:22 +0000 Received: from mail-wm0-f67.google.com ([74.125.82.67]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eIGpt-0003Gm-Jt for linux-arm-kernel@lists.infradead.org; Fri, 24 Nov 2017 16:28:20 +0000 Received: by mail-wm0-f67.google.com with SMTP id b189so23590492wmd.5 for ; Fri, 24 Nov 2017 08:27:56 -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; bh=nk7vxHNS/Q5N/lEIgy2K1iu0sbsRA3S3ldTU9ep1HXw=; b=ju0uyUCOKusfhdgEaqtqX3ItJLvbOpm0Xu5ASOFPG+8OYKtvWbqRpiFgemWmWjB9jJ VqXz8Oy+DYn/j2dRJ62XeE/9tziu+Y9icnK43zWuQDZ54jMM0II7n/6iRVWm56p8tZkq GBWl2rJ6gGPjrLQU7UvSBtYNsc0u4C0O6h0g/2nTJXt3wsmSKeEoL2UgEmPINtPxaS9C OpE5NBpGgzNR0ZyDcsf86Iw2kO4rz/h0BfXMJx4g2JgMaxYYgZN72bTsVe/zUKfJOtHI JExDCg/DsEI2DsiXZ9V45JRDUdsMJ0aDIgmluOIIQ5Yqcgr7ViKdmi9bRdyEzQLQYoHV znYw== X-Gm-Message-State: AJaThX4Sixy/yKPUbjA+Ykji9ZUBJeWws8/87h4TTTpeSVYV5LT8K7Xc DT0wqamcb6iUCOvo6z18AMsRKSxSjBk= X-Google-Smtp-Source: AGs4zMZgaJ7f78LOemygbui8JTgNDhguUE0GTkXwqnWsLIJihanahBhcGFDgwhW61oe2aFC4s3q7fw== X-Received: by 10.28.235.18 with SMTP id j18mr10487701wmh.50.1511540875307; Fri, 24 Nov 2017 08:27:55 -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.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 Nov 2017 08:27:54 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [RESEND PATCH 1/4] ARM: dts: efm32: Add generic compatible string for I2C EEPROM Date: Fri, 24 Nov 2017 17:27:47 +0100 Message-Id: <20171124162750.18756-1-javierm@redhat.com> X-Mailer: git-send-email 2.14.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171124_082817_810119_F4FD4F86 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, 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/efm32gg-dk3750.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/efm32gg-dk3750.dts b/arch/arm/boot/dts/efm32gg-dk3750.dts index c9f3ea29cf9e..adfa559a488b 100644 --- a/arch/arm/boot/dts/efm32gg-dk3750.dts +++ b/arch/arm/boot/dts/efm32gg-dk3750.dts @@ -37,7 +37,7 @@ }; eeprom@50 { - compatible = "microchip,24c02"; + compatible = "microchip,24c02", "atmel,24c02"; reg = <0x50>; pagesize = <16>; };