From patchwork Tue May 23 13:34:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 9742619 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 B7E3660380 for ; Tue, 23 May 2017 13:35:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A783F287A7 for ; Tue, 23 May 2017 13:35:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C4FD287DA; Tue, 23 May 2017 13:35:54 +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=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 39BC8287A7 for ; Tue, 23 May 2017 13:35:54 +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=ERph5WAhClFiBdrlg9TSiyqcCMwfzSGIC/gmZHKT+MU=; b=Ummh9depFxUTltpX1JN8CVNXMj 3ldi82eSZSdr9l44rDLtW7R3AykGH6vyWsvKXlIMPkUIKIz8xCBjtbqhGEhc911fWI0AxEJDAwrfQ VimxVZN8htjKV9xUKBHHBnX/zwGRO+GA38IeVy8Q2k1ODq7WhKbgWiv0/G5SEvcfuh/Jjy+kiH468 DbhXkk+8pEfvhlDkY+vmzqho5+RNSb9xqZcYYMqp0CFYhSHNxtF4ZQcPU+Fj0Fh+x5/mwUtPgMz2b wI/nsHSinS9ay6uSFeDtVq+J3kF7N2InF7fGwonkaMdl9lTRt4mQs5wtJ1+Pr+rCbBEfIoBMvjUUj CXLviITA==; 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 1dD9yb-00014H-Fj; Tue, 23 May 2017 13:35:53 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dD9y8-0000RP-Hm for linux-arm-kernel@lists.infradead.org; Tue, 23 May 2017 13:35:26 +0000 Received: by mail-wm0-x242.google.com with SMTP id k15so38240040wmh.3 for ; Tue, 23 May 2017 06:35:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dowhile0-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ddpc9FXml6iOrwIavRVsg3lMKKQ+4hBMpM9JeLT+ias=; b=HJxIFyCNpZhqX7uEULP8BBe1U3no3Nt+5sPW1cY9yr3vVSc0RpmLRnbK16sWP6LfLz TcFuo/s2ETv8ba4z0VZxq1/izs01B69nl+dIY0S0HrU62aHUF3053ehVc+c2dV03rYTj +z0LvHSCpBpLhZ8GnDLEvNwD8+SvaLAqElBNxhtyax3SFxufUdvi8MjpIbNxKi0qEMtT ijdoBNzOSbiJ1LQPdRQWkS4wVAqtCfHeb341YySUrFgp0iMoRQfJqDpRqNfxBnC7AU4E mtbZhcrWUXLOCtm9BM4SGOIDCh/11DM2tml3OP4o5DYa4ax92FOjM5pQFWy8JOqixSz1 +9JQ== 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=ddpc9FXml6iOrwIavRVsg3lMKKQ+4hBMpM9JeLT+ias=; b=l2XIhUCeJKwSJw/+XpdoLHCzimhEPy90Ok+94B6Zt27yU7tOKIPxfnMQu3LhzsRw3T mJkCFgtu1TpYqap/Y2i6fqqo3uQKgwNMN2vqRWmmNayqPF7wAc0d3e9sP3O6Del0mUsI znFKjTR1MwzaB/CZNgS4wY5Y0rODjyr1D7/X12C2sjgDdBhbvBF4QtY20WsxSJ+HoOvX I7zyoYl2JoSTvnuXaWF6CgeIKKqa6mLqLPoCUVxDdwaACdzejnDV8RLUSzGh7ReJ1drf qbuYTzhPH/QUk2+dZnj9RFmCJuBjmEfHk1ljFcHfG3LKYGuh4yIX9cf7SKcw6YpDwCri Rx7Q== X-Gm-Message-State: AODbwcB4e4H97b5kbA/1YPpShwOs2+OIMjLdPLj+QSxp2aJgUIeQrtCq GLrmUoNUggWCdMIy X-Received: by 10.223.151.146 with SMTP id s18mr15710832wrb.40.1495546506590; Tue, 23 May 2017 06:35:06 -0700 (PDT) Received: from localhost.localdomain ([90.68.25.6]) by smtp.gmail.com with ESMTPSA id a136sm960657wme.26.2017.05.23.06.35.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 May 2017 06:35:05 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [PATCH v5 05/20] ARM: dts: efm32: Add generic compatible string for I2C EEPROM Date: Tue, 23 May 2017 15:34:33 +0200 Message-Id: <20170523133448.4794-6-javier@dowhile0.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170523133448.4794-1-javier@dowhile0.org> References: <20170523133448.4794-1-javier@dowhile0.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170523_063524_776185_9A5E38AF X-CRM114-Status: GOOD ( 15.33 ) 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 , Rob Herring , devicetree@vger.kernel.org, Wolfram Sang , Russell King , Rob Herring , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Javier Martinez Canillas , 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 Acked-by: Uwe Kleine-König --- Changes in v5: - Only replace atmel variant but keep other EEPROM vendors (Geert Uytterhoeven). Changes in v4: - Only use the atmel manufacturer in the compatible string instead of keeping the deprecated ones (Rob Herring). Changes in v3: None Changes in v2: None 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 98fc667d22c7..84f0a9abc290 100644 --- a/arch/arm/boot/dts/efm32gg-dk3750.dts +++ b/arch/arm/boot/dts/efm32gg-dk3750.dts @@ -36,7 +36,7 @@ }; eeprom@50 { - compatible = "microchip,24c02"; + compatible = "microchip,24c02", "atmel,24c02"; reg = <0x50>; pagesize = <16>; };