From patchwork Mon May 22 14:01:57 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: 9740549 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 02FA06034C for ; Mon, 22 May 2017 14:07:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E72DF2867E for ; Mon, 22 May 2017 14:07:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC1CD28697; Mon, 22 May 2017 14:07:28 +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 64CCC28691 for ; Mon, 22 May 2017 14:07:28 +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=waKv39ObE8j7ytdr7kzh71/JlqPVAZr62Ij7jAexZcc=; b=KnHr7iXkH0hWu/wN6fBuihsnYP bKabYGO4qx1eMpmkspmEW4cDUkJW8pee4GCn2WA36KQgdotLIaqgMQCtYSYvWV4K+Crny/BM0N1ZM I2NxoUSwOsrJqdO7haaGme5cWZpnKwpQkgaunCS9vvB7i4BCWggFNLGzkn0AjNxNENgiz0AgZfncY YfK9k8/EdXW/J7j1U+sP5F7d+At/FigQhXy9bDl7TjNQj89EXytVTAvOiaUtkXvNKFJsHoheDhZX1 HW5BluXVpwi2f5Nxxcw4bWJ5O5BlD8opXDY7x57ha8ILFxrAVzass9J0mH1kgOvKHmbCgG79vzj5V uDD/okqw==; 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 1dCnza-0003KH-Tm; Mon, 22 May 2017 14:07:26 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dCnvL-0005d7-3H for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2017 14:03:05 +0000 Received: by mail-wm0-x243.google.com with SMTP id d127so33434597wmf.1 for ; Mon, 22 May 2017 07:02:42 -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=O18bhXF65M++Tl15+P/0MdJ6LidEekr3LKwsJfq9l0Y=; b=CSnripuUZEeOvrWY43WMJ5B6yykGMp2C9+lxSP/UaWWhxkH+3asdXXelmi4vRtSi3C vSlw0GmKs5ljAUGVYNb86zoS0wUbQykiVtB8XrBHgsN/KJ9Q1FaxfCr6KipORqju96cy lYPrVBUG/X68bD+QJZTeblZUkp/hsrC7lPIFLNmovj3A33PD5/316WacAjkrjFQeSIMs 3osTsSI0n/B9FDlgoKT7MDqiwZgPC5YamT/8CQRwtz7FobNMi5Khw4k62hyB3gqQWosq OS1ebqTlUXDH9iEVEDWI+TfoLqZLwjGOFiR4cUVjSJh/FmGzJ0bYiDfM2Ha1swgGY8U0 xsyA== 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=O18bhXF65M++Tl15+P/0MdJ6LidEekr3LKwsJfq9l0Y=; b=nPEhY4D9kq36/vfYygiQqYm9SmFK11YduQdzImygkHZ5UoTdVlcKr7Bjw/Rd2ZX03D YMOYQso1td5zV2pFZcwqk8UEE28i09IE3cIVmS0EFgZQ4dTwhJZ2V26uAZBMIwy2GNab tR7gO7Q58kutRgp0FkmCovGXDjrx9FY3Nrph/9dxgYwqBQti8aMjdhjHPiWdSmlaC+OE 4jDBmR7HO1J4Qtq0lxsqAetbjba3NnY0oMlRF5lFCC0tMOdeLMvPV4V+Zxqw39OpugO7 okGO1FGgxcQ0pd6Ga468QU+RwAPN49CudD5JfErjs8GpCJs2Qu/gLlv7bhWDv4mTk0KY hkqA== X-Gm-Message-State: AODbwcDmbQco+4WIaI5hVpjH4jWinSq80Z9s2UxfeAZN8+Pe2BMZgOyO PNAr5/wQ5oUZT2Fn X-Received: by 10.28.144.10 with SMTP id s10mr27329780wmd.62.1495461761395; Mon, 22 May 2017 07:02:41 -0700 (PDT) Received: from localhost.localdomain ([90.68.25.6]) by smtp.gmail.com with ESMTPSA id m191sm33821774wmg.30.2017.05.22.07.02.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 May 2017 07:02:40 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [PATCH v4 09/20] ARM: dts: r7s72100: Add generic compatible string for I2C EEPROM Date: Mon, 22 May 2017 16:01:57 +0200 Message-Id: <20170522140208.24652-10-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_070303_426154_609000BB X-CRM114-Status: GOOD ( 14.87 ) 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 , Magnus Damm , Russell King , Rob Herring , linux-renesas-soc@vger.kernel.org, Simon Horman , Javier Martinez Canillas , 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 Reviewed-by: Geert Uytterhoeven --- Changes in v4: - Only use the atmel manufacturer in the compatible string instead of keeping the deprecated ones (Rob Herring). Changes in v3: - Add Geert Uytterhoeven reviewed-by tag. Changes in v2: None arch/arm/boot/dts/r7s72100-genmai.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r7s72100-genmai.dts b/arch/arm/boot/dts/r7s72100-genmai.dts index 52a7b586bac7..0184490ce0ad 100644 --- a/arch/arm/boot/dts/r7s72100-genmai.dts +++ b/arch/arm/boot/dts/r7s72100-genmai.dts @@ -57,7 +57,7 @@ clock-frequency = <400000>; eeprom@50 { - compatible = "renesas,24c128"; + compatible = "atmel,24c128"; reg = <0x50>; pagesize = <64>; };