From patchwork Tue May 23 13:34:37 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: 9742627 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 06EAB60380 for ; Tue, 23 May 2017 13:36:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EA606287A7 for ; Tue, 23 May 2017 13:36:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DF0E2287DA; Tue, 23 May 2017 13:36:22 +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 63C2B287A7 for ; Tue, 23 May 2017 13:36:22 +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=Tz8DwQOv2i4bYyZ7dEerShPzhGbWqMel6fMD2BukkPk=; b=F8oJi3w3lTfHUg6DS0tBLLCpr3 6J93+U87n4xv3YDAuavcFqTo+Psk6b6Tokqn+DUWOCE27VW4/m+KEjLAViogNR2or3PB6jDYueOKv 9fSn6h5dMaEJp5EbRdPZbwK7HvHBmshMiayn/5L9yOR8dLggUqifzgsvRifHzY9siZ9Bp/d/MWe4U HbdQX94pkYeChxeT9iaXINO3tOcXcMzJS8K34M49ybqKl7VB1kbP+L5X45dj89g/zt35mBybTOTt1 OgnGzUfgcq5rtmzC7AVaIyeeXLiHgRInBwuAO+10GTkZlAJ62yzucR9+5o5vGEBmxw4YBMR4+Ik8N 5ytakf0Q==; 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 1dD9z2-0001e4-HD; Tue, 23 May 2017 13:36:20 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dD9yD-0000SF-Hw for linux-arm-kernel@lists.infradead.org; Tue, 23 May 2017 13:35:34 +0000 Received: by mail-wm0-x242.google.com with SMTP id d127so39428805wmf.1 for ; Tue, 23 May 2017 06:35:13 -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=W8Klu6Z4vtXInAw80UNW437aFn6+CRZ2ufZkDIOVf08=; b=x6VqepdB+X2Fdngh5Lo4+Q1pFr5Jl8uGN5DJr5s3DONX83zLfzX+Uj1/5jlg4AYFLA xmb39UrC67s0GIRS8LafwvUpU3UCF4OzzP9inZuVfyFvu5xM/z+QccuSPyPG1bPqO7sj vVc+RFrgd3SM7/EZlO0a7BDjtlDePHaVb/lH05BvmFDDYLLx+xAmoe4+SyfYbiTckF2f wPut1cu+yDjSbR74+8KE5kAw+iqh1IGUEuwzbZftVVOtmteRAt41qtPJ6YYTusKZ84Sc 29sY5E0kgYIZ59ddxiQZxyywKjOUAbC02mv/kFyjpP45LNAFIl3zbGMPwC5gqSkmotFZ ECkA== 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=W8Klu6Z4vtXInAw80UNW437aFn6+CRZ2ufZkDIOVf08=; b=MqyHmX+5Ag6uCEBGeEzw7rpnAuHYy6EkwnzJyYhOAUKAwTk3ndhjN1fYFZyJFWYSOd Qh91/gonzJzpKl2GuFxltDHFkgLAMrdvlAeIMfzR70+3j/dQoTrcuZaRXZJp84DrHwhY L4Gb2Ou+a7P8MSPl5W51UzgxQF+dO1WWu3qg+EVRMzBiGpDmMPkPWb4fYPTc+9g/Qr5U M17d82uHDC8lsZAR2gNcuBdAMll6/HYZ4hLA2ArB8I9AI6QZEYpnqk93U59jkY/igCoX hGCZJH+E+gjQw4g89p6gIEkMucHsFpIWYIRewyxCmmaH2h9DrqXqqT1om/g4Xg/APSua CcdQ== X-Gm-Message-State: AODbwcD3/kic38sc8sNYbmyCFjHzUzSn6rWgxhIrPRcYyCrsot65ZR5P vnjVyabg4i3+sfkc X-Received: by 10.28.193.198 with SMTP id r189mr2472543wmf.82.1495546512507; Tue, 23 May 2017 06:35:12 -0700 (PDT) Received: from localhost.localdomain ([90.68.25.6]) by smtp.gmail.com with ESMTPSA id a136sm960657wme.26.2017.05.23.06.35.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 May 2017 06:35:11 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [PATCH v5 09/20] ARM: dts: r7s72100: Add generic compatible string for I2C EEPROM Date: Tue, 23 May 2017 15:34:37 +0200 Message-Id: <20170523133448.4794-10-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_063530_393740_E9512201 X-CRM114-Status: GOOD ( 15.38 ) 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 v5: - Only replace atmel variant but keep other EEPROM vendors (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..b0db621ff176 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 = "renesas,24c128", "atmel,24c128"; reg = <0x50>; pagesize = <64>; };