Message ID | 20170523133448.4794-21-javier@dowhile0.org (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org> X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wXGxc2j9Lz9sNj for <patchwork-incoming@ozlabs.org>; Tue, 23 May 2017 23:45:24 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=dowhile0-org.20150623.gappssmtp.com header.i=@dowhile0-org.20150623.gappssmtp.com header.b="UfQ3R1vp"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3wXGxc1QSHzDqKP for <patchwork-incoming@ozlabs.org>; Tue, 23 May 2017 23:45:24 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=dowhile0-org.20150623.gappssmtp.com header.i=@dowhile0-org.20150623.gappssmtp.com header.b="UfQ3R1vp"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3wXGkD6CYQzDqQP for <linuxppc-dev@lists.ozlabs.org>; Tue, 23 May 2017 23:35:32 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=dowhile0-org.20150623.gappssmtp.com header.i=@dowhile0-org.20150623.gappssmtp.com header.b="UfQ3R1vp"; dkim-atps=neutral Received: by mail-wm0-x241.google.com with SMTP id b84so23630572wmh.0 for <linuxppc-dev@lists.ozlabs.org>; Tue, 23 May 2017 06:35:32 -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=xW59nqUYF8FnmY0EGqCG3RuN4Wlf48KA/7n6t1Y2ac0=; b=UfQ3R1vp7MWiVdC34MoGMU1uuzkwPcm+A+R4nZQ8VmmF1Iyte20pqq+2ld2VfBjeb7 WD3oJYlbrHRihof7o3TbMyAMczFQkcQPHXhXcaQm3wtU8KnOKuwOSQTySRaxplAIaVMg piTQsTxG9obYc1OSYe5Qhx6Xi7mUj+TZUqJJQvgOdmTClO0bj9fj7aDWVpkC0UgDbCZP GHhJAOquH6j5O1g1AwpKS8gWcmwy6wzt8kvIvi4J9D7SfYGZG3o5B70ZlbF3vMYzdJ2S 1y2sO1Zv/Zu50TouSAcJQYS43evVNrYG24g/fy+J/m+si8getI0RAhu5LMPJGxVI4s+b qIhg== 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=xW59nqUYF8FnmY0EGqCG3RuN4Wlf48KA/7n6t1Y2ac0=; b=tLaYXY78F0IfFpnAMq5Ujg9/gFeFLNY9xxuVnemG1GG7Tr5mvG0hbrZ20nfkDgqnnb UxszWrJdxQzX19F2OC3NYRLlV/fZLcOzCxtGGVkerBoNawmKBgg5mVeC5PRkIIpCOo18 QpfVYTvORj6nH9X2KpyJuiUohldPTSxDy+hjcelsBr+pO2+hs8+GNp0OYt4Q5SYCQq5I 66vSnuRIQvrTtpAXZc8PDV9Okzju+Uw7vcoeeEUm4jh5CeI2VTad+sfU0rZ61RCBOsur GlhcHOu/V4WvVlaEhe5dH/+McL6KakWm2LGNWRzyw7/tMF/xAR5u+YICP15LpmW1on3u XVpQ== X-Gm-Message-State: AODbwcBkQ6FF3yoI40+g0Gcsl4JSA6XAWocNAzJPPK2fgrd0r3cYjkRl kq5xXqcJGC+r0umS X-Received: by 10.223.161.141 with SMTP id u13mr15209579wru.203.1495546530258; Tue, 23 May 2017 06:35:30 -0700 (PDT) Received: from localhost.localdomain ([90.68.25.6]) by smtp.gmail.com with ESMTPSA id a136sm960657wme.26.2017.05.23.06.35.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 May 2017 06:35:29 -0700 (PDT) From: Javier Martinez Canillas <javier@dowhile0.org> To: linux-kernel@vger.kernel.org Subject: [PATCH v5 20/20] powerpc/44x: Add generic compatible string for I2C EEPROM Date: Tue, 23 May 2017 15:34:48 +0200 Message-Id: <20170523133448.4794-21-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-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Linux on PowerPC Developers Mail List <linuxppc-dev.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/linuxppc-dev>, <mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/linuxppc-dev/> List-Post: <mailto:linuxppc-dev@lists.ozlabs.org> List-Help: <mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/linuxppc-dev>, <mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe> Cc: Mark Rutland <mark.rutland@arm.com>, Rob Herring <robh@kernel.org>, devicetree@vger.kernel.org, Wolfram Sang <wsa@the-dreams.de>, Rob Herring <robh+dt@kernel.org>, Paul Mackerras <paulus@samba.org>, Javier Martinez Canillas <javier@dowhile0.org>, linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" <linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org> |
diff --git a/arch/powerpc/boot/dts/warp.dts b/arch/powerpc/boot/dts/warp.dts index e576ee85c42f..ea9053ef4819 100644 --- a/arch/powerpc/boot/dts/warp.dts +++ b/arch/powerpc/boot/dts/warp.dts @@ -238,7 +238,7 @@ /* This will create 52 and 53 */ at24@52 { - compatible = "at,24c04"; + compatible = "atmel,24c04"; reg = <0x52>; }; };
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 <javier@dowhile0.org> --- 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/powerpc/boot/dts/warp.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)