From patchwork Tue May 23 13:34:41 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: 9742657 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 8A4A960380 for ; Tue, 23 May 2017 13:38:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 79D35287D0 for ; Tue, 23 May 2017 13:38:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D5D5287DA; Tue, 23 May 2017 13:38:43 +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 EFC9E287D0 for ; Tue, 23 May 2017 13:38:42 +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=AQoh7QoSqPtl1d6qHKohnYuPFl 9rM0hDAJosq7KnVxZ3bKcedSumm//S2+P/7ixC1YeXataoR+OY0bC9SM8MAdQcPkN2hPaUG04jwQd SiZN7lhWXouBVzvYD/yMNjkRPzN1vwSES6iTjuwHUVNbUtwUJhNmTV6iosTEO7c9OuBsrjESO0gbI /O+zbgEhszBgsDEdRbfQJY2RoQmOG4DwhPvmaP25YEVUxLo+MJ35DKSCf7GyvkHZAkKjjiwqq+jZV rfWKwUd2bEHb9GZwP0VwQu/l7huyC3gHMjCEzSF6Zsj3uylynZHmomYfqFHGVBI7fc7Qcgv95r/jB bHXBBYZg==; 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 1dDA1I-000404-Vb; Tue, 23 May 2017 13:38:41 +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 1dD9yP-0000TG-32 for linux-arm-kernel@lists.infradead.org; Tue, 23 May 2017 13:35:43 +0000 Received: by mail-wm0-x241.google.com with SMTP id g15so19847163wmc.2 for ; Tue, 23 May 2017 06:35:21 -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=FSYwa3PNF1tu6So0EODKJATuglaHgFmb/znJhZHibtdEQtqIYfUebJIaU4NGNU1AC6 pcSDgZaagLokzi8tiFE3MtouzBSKtFGhMnvZiQc5WdVTMjy9XZY5HrfPoSijRfsxQzhi ipYAbqLvaL7eDWT1GdgplMTzaBV7uZS7iwYaWrW5YFzLAEAVKFTarZX5HUMRk3/frWDD RNi8XGT8SyV9lASeu4hcqqpRIrn2q25pL1CIhakunLlSBOFKcYOqZqqydSBoxZx1O1YE SrO+E1u3Ttm2cQn0//WbCFMZPQjW8LF5tXyPA2ZqPCu+4ciD7C5S9UAUhZ4okTi8Cfll UOGA== 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=NwDOhAHZTR1z/9r6mPKRWv1jTPfITCpRYCecqqJ1XHci2Mms4JOei+QNlZw1O+7dXq tQBVs0oombcWFs1iXgwpOY445OSqN33tmhAhncettE2dMiLC12shTxUL7c4A+RrUZSlN O3n8TGYgEOq7gjvserNqnvlXr/82aIG7B3+LyAtZpyydDyNulTZDdU9hnFqNPGjkEgir T4EABOTzcH4w83Nqj2aic5JU9ov5HXVc3SAi8YuMVZ5tgzEGbXfhhwWkgCOwaMWviwEG AFvnTDJZL1ioL49dsjsZ5uoI8Pt2uFMht6SP+zbfF5rhFUS6e4M9Vl1c7itWjC0QDMw5 5jIQ== X-Gm-Message-State: AODbwcCCm3zsNQAnT0PuTrcquVvv4OCUMTXd1//4tuYDDp9WV/OOiTCs RHvpHkJeCC6lihRM X-Received: by 10.223.176.36 with SMTP id f33mr16244771wra.124.1495546519909; Tue, 23 May 2017 06:35:19 -0700 (PDT) Received: from localhost.localdomain ([90.68.25.6]) by smtp.gmail.com with ESMTPSA id a136sm960657wme.26.2017.05.23.06.35.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 May 2017 06:35:19 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [PATCH v5 13/20] ARM: dts: zynq: Add generic compatible string for I2C EEPROM Date: Tue, 23 May 2017 15:34:41 +0200 Message-Id: <20170523133448.4794-14-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_063541_387755_A43246F2 X-CRM114-Status: GOOD ( 15.67 ) 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 --- 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>; }; };