From patchwork Fri Apr 14 01:04:38 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: 9680569 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 DFB2F601E7 for ; Fri, 14 Apr 2017 01:12:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D162F28364 for ; Fri, 14 Apr 2017 01:12:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C43A52843F; Fri, 14 Apr 2017 01:12:09 +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 15C3A2850E for ; Fri, 14 Apr 2017 01:12:02 +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=uFaB+lveXB+l8CdidDidMC+oZYgTaHc+779HuwFFV5k=; b=q3ZvUBKlIH8jhFcSonDqw9oxVG 0S85jTvmWqDPDzLWi8z1eHoT0dfmBBZZahy15S6p/CvTPp7lwUQoHzmNSnNDcmM7fbjtuMXAFAoXR 1rRqGsMRv116sJGxtNq8tRGtzCq8DuFa6JvL+cWcqoWKvVf00aT6bPoUUHY1FXmUcJoZW7sk6gIgC SScTIjeAU789xeW4Bjo8q5ZMxhgF5IvswWT3ItkWgQLrFJOOLL6jPw8t0tmwU0oWGpb/KqkX6CEgE /tUk+Uw/GpHD4fBptStfg/JK5eRPBR0To3Ya6OUCe9CRlWSqp69gjHd/a5SVmYU0uLyq7CP40PzA5 8dcUUO6g==; 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 1cypmK-00078P-IX; Fri, 14 Apr 2017 01:12:00 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cyph7-0002JT-TX for linux-arm-kernel@bombadil.infradead.org; Fri, 14 Apr 2017 01:06:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=hEkPfoC/zezAdkLIwxhMBKgDa6XRjG6/HVJdEmj45+o=; b=irQcvoHn1j4Wabi5EHIs1sU+d V5GYXz0uDX0PlMT5OKweNjdjcQ2iwz3c42dI/UW6Y8OnEgDPpnYVFIoVYgvAZ8DPcTzsSCBW0ONsP k2ay7xM/dVeYykYShFSVaoznule8CICW14BKl2O4TSz4JJgble2eNdPepPmRqoc0MdYRCZHqkgZ1r BKEI6ldKho9rEfoynj6XtWZT9I13LenKwI2uNcXMXCg9PqTJ9J4vpmeocUXmGPL7HVb3ua13Q1DZg bYpBtuTXs9QrLgnLumrdKyuF0RY5TmVfhhJOyKsX7IzNwedBUbLnHIYRv4viDsb1n1W/XLKgleMur w38FnOjRQ==; Received: from ec2-52-27-115-49.us-west-2.compute.amazonaws.com ([52.27.115.49] helo=osg.samsung.com) by merlin.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cyph6-0002aq-FS for linux-arm-kernel@lists.infradead.org; Fri, 14 Apr 2017 01:06:37 +0000 Received: from localhost (localhost [127.0.0.1]) by osg.samsung.com (Postfix) with ESMTP id 0DD3DA05F8; Fri, 14 Apr 2017 01:06:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osg.samsung.com Received: from osg.samsung.com ([127.0.0.1]) by localhost (s-opensource.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y34pEeeZfdLI; Fri, 14 Apr 2017 01:06:42 +0000 (UTC) Received: from localhost.localdomain (r167-61-29-222.dialup.adsl.anteldata.net.uy [167.61.29.222]) by osg.samsung.com (Postfix) with ESMTPSA id 14DDAA05EC; Fri, 14 Apr 2017 01:06:38 +0000 (UTC) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [PATCH v3 14/21] ARM: dts: zynq: Add generic compatible string for I2C EEPROM Date: Thu, 13 Apr 2017 22:04:38 -0300 Message-Id: <20170414010445.21727-15-javier@osg.samsung.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170414010445.21727-1-javier@osg.samsung.com> References: <20170414010445.21727-1-javier@osg.samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170413_210636_614394_5C0DFE10 X-CRM114-Status: GOOD ( 13.39 ) 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, Wolfram Sang , Michal Simek , Russell King , Javier Martinez Canillas , Rob Herring , linux-arm-kernel@lists.infradead.org, =?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 --- 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..9aae7e061d19 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 = "at,24c08", "atmel,24c08"; reg = <0x54>; }; }; diff --git a/arch/arm/boot/dts/zynq-zc706.dts b/arch/arm/boot/dts/zynq-zc706.dts index ad4bb06dba25..ff0fca1c41c8 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 = "at,24c08", "atmel,24c08"; reg = <0x54>; }; };