From patchwork Tue May 23 13:34:34 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: 9742633 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 6B40A60380 for ; Tue, 23 May 2017 13:36:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A5CE287D8 for ; Tue, 23 May 2017 13:36:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4F2E0287DC; Tue, 23 May 2017 13:36:52 +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 E11B4287D8 for ; Tue, 23 May 2017 13:36:51 +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=7WCf516oUuU2NJSySKs+95VciZE9jxJn1T+fvyhFkMw=; b=L56wB+jaSRSeUApEboydfydBZU m5WQYOiyFnWS4ubvwYOcsUKzTdva6T3RB/o5VfpyuIJzqD6Uk2xngFTaQyvQhCbzGyv5vbOaLSw7u P6mQYdpaWYcKZ8BoSbx/p3VufRN2tHWk+9RBNYK2QS8IAoVHbonWGZVfFiTE8WO7iUO37JuZiOULX vhHIgwSRwrczD8GaGupozSaAFG48CHINGEpuJ6q3lB0tBHuPJ7HtXWA6EsL4bB9UXnMlMEK4r2M9X pImqW6j6sqY3ix71DQWrf2nnGnNEYMkE4C0b7Ih6gENybWvUNXgoDH0AaWELJ9dFFSC2BY3KGgNfs iShojibg==; 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 1dD9zV-0002G1-KA; Tue, 23 May 2017 13:36:49 +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 1dD9yD-0000Rf-Hv for linux-arm-kernel@lists.infradead.org; Tue, 23 May 2017 13:35:36 +0000 Received: by mail-wm0-x242.google.com with SMTP id d127so39428227wmf.1 for ; Tue, 23 May 2017 06:35:09 -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=ajROS4fGcSjcLbD7dVxmxc0UMBQWIs2+yiM9ZfcHgvg=; b=jDpohig8EiXrnP7cvz3yrFgKEQkiXFSkfR4a7VBLs6NNuCYSDUFk27JmAoeuAInL0o B3mlrKATBpZNWsZBC2S8SCjmtmBt3Zv+QKBa5WQvOhwcwxSBkWvoTpfZq9TnqdvMIBmw cSIN06k285DoPm5ZPccRyxYkWTiAUKvSM9kKFNMp4kJtyFuaitWU0+eoE1dkFSKt+g5q G8++aNrGhRPS5ranfCIloZRSyNgyyo6ZJJLBoPuf7XyPdQCmU8Qzyg7dZV5WCPLVrLlu a5lJcdKc8kaZ1No+6mHapj7lWj2lOq3Svt1EIfxpV6tVQ341PEnoScvix9t1GeQ6ardY garg== 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=ajROS4fGcSjcLbD7dVxmxc0UMBQWIs2+yiM9ZfcHgvg=; b=qLzzhjQWZ/QUsikka6KVrU7vtb0MobqDU4vJdFrhWgYmb/HnqS08B8PA1fClxEUcZc elsklUqma9ff5mkR4JjhachGMLbYd6GCG/sbNPWff2Qa9E9Mo/eVBnIPFNEhYNWXo3NQ pm5e1T038+GFNu+VA5e8VTvyvHJB7LvP/XpnYZGCmtGC0XQt+0JQdfIKMMSp4AxvssZP /muOSYs6ZifXd2kR7ZOcdyLd1zH9pFPokuVNankbWOxn3jiKfQU5z+FTQQBgyQb/Uj7x 9rbFxyQfa/Ztzmixph5eXmC0WMPp0lSdD4Ub9AtacVoIE7kzs49cbBJIm/XTT8f5PRSx mH5Q== X-Gm-Message-State: AODbwcCOlUfGGzDpuHxuaAylFgc6EPVYD6Hx7uxd/R0NjSN0XX3XheIN 5SOy2yW0jEC23diH X-Received: by 10.28.29.6 with SMTP id d6mr2496082wmd.71.1495546508268; Tue, 23 May 2017 06:35:08 -0700 (PDT) Received: from localhost.localdomain ([90.68.25.6]) by smtp.gmail.com with ESMTPSA id a136sm960657wme.26.2017.05.23.06.35.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 May 2017 06:35:07 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [PATCH v5 06/20] ARM: dts: imx: Add generic compatible string for I2C EEPROM Date: Tue, 23 May 2017 15:34:34 +0200 Message-Id: <20170523133448.4794-7-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_063530_392715_15FAD065 X-CRM114-Status: GOOD ( 16.16 ) 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 , Sascha Hauer , Fabio Estevam , Javier Martinez Canillas , Shawn Guo , 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 --- Changes in v5: None 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/imx27-phytec-phycard-s-som.dtsi | 2 +- arch/arm/boot/dts/imx27-phytec-phycore-som.dtsi | 2 +- arch/arm/boot/dts/imx28-evk.dts | 2 +- arch/arm/boot/dts/imx53-tqma53.dtsi | 2 +- arch/arm/boot/dts/imx6q-cm-fx6.dts | 2 +- arch/arm/boot/dts/imx6q-utilite-pro.dts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/imx27-phytec-phycard-s-som.dtsi b/arch/arm/boot/dts/imx27-phytec-phycard-s-som.dtsi index 4f3e0f473581..0b8490b21a38 100644 --- a/arch/arm/boot/dts/imx27-phytec-phycard-s-som.dtsi +++ b/arch/arm/boot/dts/imx27-phytec-phycard-s-som.dtsi @@ -40,7 +40,7 @@ status = "okay"; at24@52 { - compatible = "at,24c32"; + compatible = "atmel,24c32"; pagesize = <32>; reg = <0x52>; }; diff --git a/arch/arm/boot/dts/imx27-phytec-phycore-som.dtsi b/arch/arm/boot/dts/imx27-phytec-phycore-som.dtsi index 82fec935ce83..c973c5d91875 100644 --- a/arch/arm/boot/dts/imx27-phytec-phycore-som.dtsi +++ b/arch/arm/boot/dts/imx27-phytec-phycore-som.dtsi @@ -193,7 +193,7 @@ status = "okay"; at24@52 { - compatible = "at,24c32"; + compatible = "atmel,24c32"; pagesize = <32>; reg = <0x52>; }; diff --git a/arch/arm/boot/dts/imx28-evk.dts b/arch/arm/boot/dts/imx28-evk.dts index a5ba669b4eaa..b88c087f1fea 100644 --- a/arch/arm/boot/dts/imx28-evk.dts +++ b/arch/arm/boot/dts/imx28-evk.dts @@ -203,7 +203,7 @@ }; at24@51 { - compatible = "at24,24c32"; + compatible = "atmel,24c32"; pagesize = <32>; reg = <0x51>; }; diff --git a/arch/arm/boot/dts/imx53-tqma53.dtsi b/arch/arm/boot/dts/imx53-tqma53.dtsi index 85972f2201c2..eecdc1c55eef 100644 --- a/arch/arm/boot/dts/imx53-tqma53.dtsi +++ b/arch/arm/boot/dts/imx53-tqma53.dtsi @@ -272,7 +272,7 @@ }; eeprom: 24c64@50 { - compatible = "at,24c64"; + compatible = "atmel,24c64"; pagesize = <32>; reg = <0x50>; }; diff --git a/arch/arm/boot/dts/imx6q-cm-fx6.dts b/arch/arm/boot/dts/imx6q-cm-fx6.dts index 66cac5328b86..a8af3822d9df 100644 --- a/arch/arm/boot/dts/imx6q-cm-fx6.dts +++ b/arch/arm/boot/dts/imx6q-cm-fx6.dts @@ -215,7 +215,7 @@ clock-frequency = <100000>; eeprom@50 { - compatible = "at24,24c02"; + compatible = "atmel,24c02"; reg = <0x50>; pagesize = <16>; }; diff --git a/arch/arm/boot/dts/imx6q-utilite-pro.dts b/arch/arm/boot/dts/imx6q-utilite-pro.dts index d900ad6ec5f8..16d5be1aeb3c 100644 --- a/arch/arm/boot/dts/imx6q-utilite-pro.dts +++ b/arch/arm/boot/dts/imx6q-utilite-pro.dts @@ -130,7 +130,7 @@ #size-cells = <0>; eeprom@50 { - compatible = "at24,24c02"; + compatible = "atmel,24c02"; reg = <0x50>; pagesize = <16>; };