From patchwork Mon May 22 14:01:54 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: 9740551 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 DD3DC601C2 for ; Mon, 22 May 2017 14:07:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CA2D7284F3 for ; Mon, 22 May 2017 14:07:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BCE2628697; Mon, 22 May 2017 14:07:44 +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=unavailable 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 5B2C0284F3 for ; Mon, 22 May 2017 14:07:44 +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=iAuG1i2itfZQA4nv2/kA9ctmNOotvU6PhrY3af+pkNI=; b=BBBw0CcUkiTQvEVCxCgfCcA0lz GKGkit7gbGnho0f48Bt2koCufhoVIkyF4JlryvJcVNeX74FUe8xa0ZbfZ0I9zUqzil1yVCz2fy200 1/I8Qfdc/rh2f7oplH79p37nwYkI02p/e+w3o6bLSgMfaOREagPuMyaSGFCRNybIeL8rmcALX6Hj2 jRkK5KQk7fJYfiCXcj1879o5u2zcvYgAfC9TlJrW+t/5abhVkB/wcF/BFdvsJ01FAQf8DYE062n7O NSmpLWOoqZplkV1XfvKWALmjfv+CAvbT/dReAXlYgK2Rj6Abi6UapSQ4TtAnMYfhMJAm70LMpDmqX AjtKtzeA==; 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 1dCnzr-0003cK-1D; Mon, 22 May 2017 14:07:43 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dCnvH-0005Ym-Gc for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2017 14:03:08 +0000 Received: by mail-wm0-x241.google.com with SMTP id k15so32222069wmh.3 for ; Mon, 22 May 2017 07:02:38 -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=oXDy9qDl2/iTnfpCgJgZd7fEjMTLsYmE/kl73uHxfjg=; b=wc4HnurmNDAC55B5cCRj5VvWGrWhERBxwrTE0YqHgVoPV0ADvBTq/WKhQ2l75o0QXg of/qXr4qzhB6mj3qg83TDApq6nS7roK1Jl5QCvcDfzslDFtbx7uZsoPCuXuaI6vrhuWD HN8OZnHu8sYzukd61/C/h0OrK8pnNV3Lfk2sCjnzlD+14BfGDvrbGITDU384kj46Y7OO BZe2H8wAfzhVqfVzSFLNI6raIqH7hXx7XvnLYuBtX5ksaLWVFswC6MCJtSpw/vccYmhp p323X9pUJ4oaiWMdwVZxMc/v85aT8x1FoV68Qa4j7qrw1zVRXeGwz+mrrOT+h75HpeU1 A+eA== 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=oXDy9qDl2/iTnfpCgJgZd7fEjMTLsYmE/kl73uHxfjg=; b=YrpcA1Abvpvwdmzc9rtlOYZEY+I4VU/UnUCOH2TmuKlpwEhc0v0HYbdAEU6GBAkBN1 sZ5qt0YD21GW0yQhSyWFk5ofeQ/rE8RHH7IZWz2fUZw4JYoacYAUpp7XM1OFjcMZYQST ZJRemjApGNrrW5Pwn4BV6X5+/yRCkKj0aJlm9mGbWRCbT3rIAVVX/LzBrdDSMk2Nof+F MjN7so7kApCO7YxrDCi1GbosKbq2f57wIoyPbSA2g67PYQ9MCEckN5DX0F40XaF111lD 7irj2rFTLVWf3miee/dJRNzTxn0B2DHKvVLQiqO0v1WFr1w0TALO7TAi0vQYIksMPaZT 3d7w== X-Gm-Message-State: AODbwcDW5MJL22X3Xdmt66L5VJbJQqMokwbPKlBVGv/xN9c/MpnGVjOk 0x+IZp6oh8ejLLWG X-Received: by 10.28.185.200 with SMTP id j191mr27381624wmf.48.1495461757019; Mon, 22 May 2017 07:02:37 -0700 (PDT) Received: from localhost.localdomain ([90.68.25.6]) by smtp.gmail.com with ESMTPSA id m191sm33821774wmg.30.2017.05.22.07.02.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 May 2017 07:02:36 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [PATCH v4 06/20] ARM: dts: imx: Add generic compatible string for I2C EEPROM Date: Mon, 22 May 2017 16:01:54 +0200 Message-Id: <20170522140208.24652-7-javier@dowhile0.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170522140208.24652-1-javier@dowhile0.org> References: <20170522140208.24652-1-javier@dowhile0.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170522_070259_787354_26D7F01B X-CRM114-Status: GOOD ( 15.65 ) 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 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>; };