Message ID | 20170523133448.4794-19-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 [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wXGsW56kyz9sNL for <patchwork-incoming@ozlabs.org>; Tue, 23 May 2017 23:41:51 +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="NKeyP6bf"; 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 3wXGsW3pBSzDqc2 for <patchwork-incoming@ozlabs.org>; Tue, 23 May 2017 23:41:51 +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="NKeyP6bf"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) (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 3wXGkB3LLpzDqLb for <linuxppc-dev@lists.ozlabs.org>; Tue, 23 May 2017 23:35:30 +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="NKeyP6bf"; dkim-atps=neutral Received: by mail-wm0-x242.google.com with SMTP id d127so39430933wmf.1 for <linuxppc-dev@lists.ozlabs.org>; Tue, 23 May 2017 06:35:30 -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=x2ril755moMsWGf+jlvDBiI2TbEqOL4iTCWvffCSFI4=; b=NKeyP6bfMRYSpNNCJatD5ynpXgeC5A9waRcoRL+Cj2ngQZvwyVHDC7sjiYV+h+mgb1 NJzhYBdeEMWiF17dtMLeAZ1Zbb/Wawv4pu2GOkItw0aM1uRA36MUWmKYTA8OqaxwwqRt jSg5K3tHZvGBpuA1JB0k20Uh763j9FV7iVAC+/WBJ1Z3eHh/+ow1Kdq/6pEL3uV0Hv+7 /MjHuGjLsdmbkGMJGErUdQy+wSYQk3CfcHRman+BqQFc+YDhCwkwfBynl7huhIZn5aYp Sd/AiXo5J1+GmEBCEyzeValiJLubMFsGEydmdmGDPiuAF0XV07XW5Z5+l3zYIJsBP+bg 1pdg== 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=x2ril755moMsWGf+jlvDBiI2TbEqOL4iTCWvffCSFI4=; b=sTmSpSO3WfTYxRgQAq4spZKz2Pr4gxnvl6ZuMAyBzPZlqp3+01Kv4Js6OnORY3ijyq GFIxoDikD9HBHJNkmaIUn6bZYO1MdDzoRwW6lTmSPMgqTVF9boRXvXhFKm4nFP3n65uN FW/HdJht4DqeMf65TOsctigx9mWfuMQ4eVGG6ugSPKoRGJq1ot6QbFnTUhNfFN6IeQWI eqCZrELYu3gwwRFytFr9oXTVln9fUkSONxLEnYS8Aiq0iLWrIQsmePqgV8+zino+hCIa Ei1RGrJsJYLf28eB1qoqYb4zNbH8Ysf60MPVofEJAZun9nWgwND7hsR4E0rtyz1ESRTP y4fw== X-Gm-Message-State: AODbwcC/XAUHyjgZRuqGE3Cfipaj4apPbpk5c452orP6psj2qSmYr2rP 8eut1a1YgkWPNHhgt0Wsdg== X-Received: by 10.28.88.3 with SMTP id m3mr2419476wmb.28.1495546527120; Tue, 23 May 2017 06:35:27 -0700 (PDT) Received: from localhost.localdomain ([90.68.25.6]) by smtp.gmail.com with ESMTPSA id a136sm960657wme.26.2017.05.23.06.35.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 May 2017 06:35:26 -0700 (PDT) From: Javier Martinez Canillas <javier@dowhile0.org> To: linux-kernel@vger.kernel.org Subject: [PATCH v5 18/20] powerpc/512x: Add generic compatible string for I2C EEPROM Date: Tue, 23 May 2017 15:34:46 +0200 Message-Id: <20170523133448.4794-19-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/mpc5121ads.dts b/arch/powerpc/boot/dts/mpc5121ads.dts index 75888ce2c792..fcaa9bad4bda 100644 --- a/arch/powerpc/boot/dts/mpc5121ads.dts +++ b/arch/powerpc/boot/dts/mpc5121ads.dts @@ -94,7 +94,7 @@ }; eeprom@50 { - compatible = "at,24c32"; + compatible = "atmel,24c32"; reg = <0x50>; };
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/mpc5121ads.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)