From patchwork Mon Jul 31 15:19:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 9872367 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 41D4B603B4 for ; Mon, 31 Jul 2017 15:53:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3130527813 for ; Mon, 31 Jul 2017 15:53:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2FED8285D8; Mon, 31 Jul 2017 15:53:24 +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,RCVD_IN_DNSWL_NONE 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 02D082851A for ; Mon, 31 Jul 2017 15:53:22 +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=5Q5t/SNMY8a7kUh41km7RkkL01jeiZaXvTPlbKGVuUw=; b=qQD3enoiFzL7biSTXBBwA/520b fvT8jYjczrRpTZ4/fNItKXtByVscXkkierIbrcZI64ITWpjmI1RdVWgNRD34XJRWwhovYm7mblH4d qap7nkW+B5/I7MgyjC0SUlr5WZw6H5xy5pUEm2XpxXTVEs/aHaP4QAoIiyz4Ln2llFxZAsgmX1jOU UsIuKAH7il9GLzqdGFyJW7VIbDv5sRrt0KjQwbgGr7YRI14KQnv4AYXKPREldSj5DRJ6H744RMeMd yXhh1k3OOQ2YnD/N0EqLdTOFQyXZ1l3ZhSI1m2fSj80ybha6KaZavmp2w7Z/w/1ZvcOTeEhFC5DoI XOSfjumA==; 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 1dcD04-0000Fh-Mz; Mon, 31 Jul 2017 15:52:56 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dcCig-0004sr-Qk for linux-arm-kernel@bombadil.infradead.org; Mon, 31 Jul 2017 15:34:59 +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=yPyxfnFD2fQ1dxrXOHaJgURKlnxiCRbf+kgTfnMOc8o=; b=dUSLkPVR1ATCTRMTL+DBKFemt 0o+4WHc4DzyrLmTu3CQAFbtUMsYP0Q+z8MawWDyaZVA24Qpox7XyhHSP3IAKNHMx1pBQ4DrHQWgJU +Ro5ShaybEqD62qvz1wn3vCfWxFTnWbWcW4XJgK1AU6nRIwfCng6dbtm2aBm5q2QkCuDKre6TUt48 ZJKBNnWawQypuL+JViorX7cn5X9+Dfh9vYUd/YFPkFuTvtpk6pkvYnkLh4EwJIe0BOi4e7OL73t9F VTblbwv7zSbv4wKU2Cz20pbKfZIl9njUpanu54iwYPV2asmFGyCZ7C6SCIigz6CDHiQyrX/3f9gyc 1rMv7vUyQ==; Received: from kirsty.vergenet.net ([202.4.237.240]) by casper.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dcCUy-0000Pj-ST for linux-arm-kernel@lists.infradead.org; Mon, 31 Jul 2017 15:20:53 +0000 Received: from penelope.horms.nl (unknown [217.111.208.18]) by kirsty.vergenet.net (Postfix) with ESMTPA id 7D64025BE0A; Tue, 1 Aug 2017 01:20:14 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1501514415; bh=Ke2ZmSTcRACfKhdXveoXyOblNITR710Vd9nC/R40qow=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MXFnZu6K0V1epw7Wob437CdZ0hevfQAFuvpfZaKz3Je7yQppoO8aiZRHnnwwvVa7g w0dksPl0iLjS1n11CeJlAXM6z5DH5aE+WVvSRJHR3ybTk+r8ox8c9FJYmo3ZiH0Kzg yYBQn7Slao1xT3qytDOXOoEii6O4HztKoesdGez0= Received: by penelope.horms.nl (Postfix, from userid 7100) id 10FDBE20408; Mon, 31 Jul 2017 17:20:11 +0200 (CEST) From: Simon Horman To: linux-renesas-soc@vger.kernel.org Subject: [PATCH 01/38] ARM: dts: r7s72100: Add generic compatible string for I2C EEPROM Date: Mon, 31 Jul 2017 17:19:13 +0200 Message-Id: <61e137ce2cfe2c7bba9e24686dfe495cd6ce6ed8.1501514100.git.horms+renesas@verge.net.au> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170731_162049_293497_34EAABF8 X-CRM114-Status: GOOD ( 15.68 ) 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: Simon Horman , Javier Martinez Canillas , Magnus Damm , 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 From: Javier Martinez Canillas 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 Reviewed-by: Geert Uytterhoeven Signed-off-by: Simon Horman --- arch/arm/boot/dts/r7s72100-genmai.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r7s72100-genmai.dts b/arch/arm/boot/dts/r7s72100-genmai.dts index 52a7b586bac7..b0db621ff176 100644 --- a/arch/arm/boot/dts/r7s72100-genmai.dts +++ b/arch/arm/boot/dts/r7s72100-genmai.dts @@ -57,7 +57,7 @@ clock-frequency = <400000>; eeprom@50 { - compatible = "renesas,24c128"; + compatible = "renesas,24c128", "atmel,24c128"; reg = <0x50>; pagesize = <64>; };