From patchwork Thu Jun 15 18:54:12 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: 9789957 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 90C7F60384 for ; Thu, 15 Jun 2017 18:55:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82A1526490 for ; Thu, 15 Jun 2017 18:55:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 768F4283FD; Thu, 15 Jun 2017 18:55:35 +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 0A6A726490 for ; Thu, 15 Jun 2017 18:55:34 +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=7vXZIs1U2RtlNC5oc7MOYIVycR1ILKsNwGndm8WH0TQ=; b=N8tnmBlZNuBNjTtzSmyoL5gfzr 5F2oXCnCww73faQOcsTmFgWztdEtSmKFxEEBP11kOAR92BVwbGo90BZTLQEwAyrkuD0iVd5sDj3uw 5cbK11tJ0zf/M96s4Pr9CxG69paPfZRukKPYBEd/QMnkNMevMTCQhtiUEM0/8pWHu/ZvVO7gfWPjO NkUjXlr2bt2DnOu1VZW+bL6RTsds1Yo4vk6ACBtK4KaszjQ0K9D0Vj90PP6MaZABzSEfE5llbkjSI U9dvcr2caPE9D0iKnZ2UxbW7hGS0i97N3Zo5ysUxAJkHeYr+UkqPW9v4seqX1xaCiMr5jucwd2tXe hF2ux1AQ==; 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 1dLZvZ-0007zW-45; Thu, 15 Jun 2017 18:55:33 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dLZvA-0005zo-3q for linux-arm-kernel@lists.infradead.org; Thu, 15 Jun 2017 18:55:12 +0000 Received: by mail-wr0-x243.google.com with SMTP id 77so4527087wrb.3 for ; Thu, 15 Jun 2017 11:54:47 -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=S9AUmeNtzQ+EZQ5SP1hB/jXnMx7X1bqdsAlpi3IJhuU=; b=MzgeDxW4yzO00lolc9vbdmroPtNYfCavKvSAhtPsEQWobVJDCier0a6E9ABVdGEsoX 0jYWi6RQz2MmPeloRu53cEStoh6w4s0QqpoUVQwbLGzg63LP57nAMnXLt78CchJ9te3N KS7OvPRVnRAFKwqVFPAk2pg084nLEXXYEKOk9hJ8oAaSyA/8j/MebdTs+W9j9zLZu8Hn 4T1zQ/n6wXfusM0fUPsNr0etL0DvyO6K81HW4PkEyQKXl0LcH/7+sYLGfZNBmYpK1IOQ BRLKVFpOc+SkwrNHPOEaMR9/czDyKBYlyJU64t3fzr8ejlqKUvwhrDvzZAT99B5XWiCq bfZA== 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=S9AUmeNtzQ+EZQ5SP1hB/jXnMx7X1bqdsAlpi3IJhuU=; b=WTTRmXRGO/AiHnhznABKDrjMUdRbWr3Vb1zrM4Qliku8RTbldi60d5Oy/8tWAdwMb2 6tNhrWVJgeCC012G4vnRO/e+AxuKl/dxwSk0eqg2VUCAmMAiPg8MtAUHOBfRM4BMSyjV gWFHCTjdrTUbWpsiEp0VI9X9qzj8LCwQowxW3xj8hmsACylljSLP0exXf0cDevaTxGEg uyHHkMYa55Mc7EZuZbRNm3QlCLsnNS76OutVKn+7ZlDMx7uTFbWSFs1xKvNSP59jthlm Lrs7UfaVTZC5mAQHv8pbFMwcDFx8NQIaVx+SkLJNt8xu5do2J/bu75MYe+MvcYmmne3M 31Lg== X-Gm-Message-State: AKS2vOxH+QvsUz7q2VI2tKl4FZobvJo46XOeOeuQFlM8oSvi5Zwuu9ZD bx9X1+DRPuN1tGeA X-Received: by 10.223.157.10 with SMTP id k10mr4835682wre.171.1497552885707; Thu, 15 Jun 2017 11:54:45 -0700 (PDT) Received: from localhost.localdomain ([90.68.25.6]) by smtp.gmail.com with ESMTPSA id 3sm39252wru.50.2017.06.15.11.54.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Jun 2017 11:54:44 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [RESEND PATCH v5 10/16] ARM: dts: zynq: Add generic compatible string for I2C EEPROM Date: Thu, 15 Jun 2017 20:54:12 +0200 Message-Id: <20170615185418.13980-11-javier@dowhile0.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170615185418.13980-1-javier@dowhile0.org> References: <20170615185418.13980-1-javier@dowhile0.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170615_115509_132726_BF33F8BA X-CRM114-Status: GOOD ( 15.13 ) 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, Rob Herring , Wolfram Sang , Michal Simek , Russell King , Rob Herring , linux-arm-kernel@lists.infradead.org, Javier Martinez Canillas , =?UTF-8?q?S=C3=B6ren=20Brinkmann?= 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: Michal Simek --- 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/zynq-zc702.dts | 2 +- arch/arm/boot/dts/zynq-zc706.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/zynq-zc702.dts b/arch/arm/boot/dts/zynq-zc702.dts index 0cdad2cc8b78..f8c840f7118f 100644 --- a/arch/arm/boot/dts/zynq-zc702.dts +++ b/arch/arm/boot/dts/zynq-zc702.dts @@ -136,7 +136,7 @@ #size-cells = <0>; reg = <2>; eeprom@54 { - compatible = "at,24c08"; + compatible = "atmel,24c08"; reg = <0x54>; }; }; diff --git a/arch/arm/boot/dts/zynq-zc706.dts b/arch/arm/boot/dts/zynq-zc706.dts index ad4bb06dba25..76492be4a912 100644 --- a/arch/arm/boot/dts/zynq-zc706.dts +++ b/arch/arm/boot/dts/zynq-zc706.dts @@ -92,7 +92,7 @@ #size-cells = <0>; reg = <2>; eeprom@54 { - compatible = "at,24c08"; + compatible = "atmel,24c08"; reg = <0x54>; }; };