Message ID | 20170523133448.4794-16-javier@dowhile0.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 2EA3660380 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 23 May 2017 13:39:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1AA6A287D0 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 23 May 2017 13:39:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D7A4287DC; Tue, 23 May 2017 13:39:12 +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 67768287D0 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 23 May 2017 13:39:11 +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=Du35+c7Mb+0VChRS3zIq07t5Y2QPbbCYpTGHiYQk4BY=; b=guYouV6gbETGKfBWeR0RKHATvE kcm1DQ7m+YfqVu6BmcFNqjE6qP0CyJhprQba9/87sMysvcWN06gFmm+nWQze+RjskCAabgUPWrEw+ RKgDJ17ztRxsNto4QQIWxodh/M9CUkvEmTYQZH2YAyxOHxD72tYzCr752FZoM9G43bElH0gkFhvTZ ku/xsfEBwZQYZKrkhqubhKSRhBavK1IY/Gqaxe2C72gFekU/usZMfEiwJMSxJkBYtLBl4H5jNODHh kwLXBn4qtqB18i8AkE26llTwqQ5jY8uWVqU5KdiU+7j7mRQCR8MDCxJntvpH3wiS6Oqgqp3t16LVh vS0nX2+w==; 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 1dDA1m-0004Y9-6B; Tue, 23 May 2017 13:39:10 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dD9yS-0000Tx-B0 for linux-arm-kernel@lists.infradead.org; Tue, 23 May 2017 13:35:46 +0000 Received: by mail-wm0-x244.google.com with SMTP id b84so23629635wmh.0 for <linux-arm-kernel@lists.infradead.org>; Tue, 23 May 2017 06:35:24 -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=i9VeGLu5soLf0YF2EZMIXPq6tlwFLlNcN3B/Bywjd9w=; b=rXt9U4T0ozSxXdbC6YWfKJjX+DanxQGwJsM+YtfanM/G0swVx4oZQyuoW3gYZsd++1 EDjf4Sh8CmoAXbkI+TxB4IMhHOCQs7vL89QjInOnuwU0dD98JlSMt0Y9k9+d01rkKKO3 UX9OPwwKdtDsttzG5DFlKXZnYAi6XjvZMjYu5H1scMjQDruXB5wvS1ThYtGmI4q774Ap OYZB8Rg4PgpQIY6BBkQVTgoIooEUfj3J2tRfcOW2/QRG3vQHQo/o1mmWbZ66Q9jsS+Px thGzJxefCPtsJSm/r/OTegB+VyBzNJtMlV5saTJk6agX7UAg1n5hdWF2GLXz0sIX7nAy jI4A== 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=i9VeGLu5soLf0YF2EZMIXPq6tlwFLlNcN3B/Bywjd9w=; b=iAe7tpHkbPaxHPUJoM9Q8jsSMq2oIVPhVkBYq7/xeKj0utSeZ9uQKU2PETMYx5bg3P 2w0/d40s9oDij2WIvZF7h/EbtyYqIIewn88+9yBvdurx4VrVHd2NhrPrgkWVU54QCDw4 8SWb37flbj93hWvmq1yGvURgGFOXsyEwXybEzi1/6W7JyEIZ7eNDyZlANPrBeFTyZkgo ZjEPrBx+Y63zBmyOjTg3xpK0WnhKPBOnCKCr7Wh959x/uzjelOsx96AhpraZ/gDYvqVE sfA9pradvgX0taqDgoQnZNfuDGm2wORBA/wgctYvoeh2l4pKUHk67JISf3nKhELf4UBm EwTw== X-Gm-Message-State: AODbwcBWqBrpmjatsOSkSJ1Ef+y+l9wXleM+8zHv15jG3KDhUH2jv7vC k0uqKGavApdFwFOs X-Received: by 10.28.174.131 with SMTP id x125mr2348827wme.32.1495546522852; Tue, 23 May 2017 06:35:22 -0700 (PDT) Received: from localhost.localdomain ([90.68.25.6]) by smtp.gmail.com with ESMTPSA id a136sm960657wme.26.2017.05.23.06.35.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 May 2017 06:35:22 -0700 (PDT) From: Javier Martinez Canillas <javier@dowhile0.org> To: linux-kernel@vger.kernel.org Subject: [PATCH v5 15/20] arm64: zynqmp: Add generic compatible string for I2C EEPROM Date: Tue, 23 May 2017 15:34:43 +0200 Message-Id: <20170523133448.4794-16-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_063544_714974_5C548412 X-CRM114-Status: GOOD ( 15.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Mark Rutland <mark.rutland@arm.com>, devicetree@vger.kernel.org, Rob Herring <robh@kernel.org>, Catalin Marinas <catalin.marinas@arm.com>, Wolfram Sang <wsa@the-dreams.de>, Will Deacon <will.deacon@arm.com>, Michal Simek <michal.simek@xilinx.com>, Rob Herring <robh+dt@kernel.org>, linux-arm-kernel@lists.infradead.org, Javier Martinez Canillas <javier@dowhile0.org>, =?UTF-8?q?S=C3=B6ren=20Brinkmann?= <soren.brinkmann@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-ep108.dts b/arch/arm64/boot/dts/xilinx/zynqmp-ep108.dts index ef1b9e573af0..53907b7a7fd9 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-ep108.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-ep108.dts @@ -55,7 +55,7 @@ status = "okay"; clock-frequency = <400000>; eeprom@54 { - compatible = "at,24c64"; + compatible = "atmel,24c64"; reg = <0x54>; }; }; @@ -64,7 +64,7 @@ status = "okay"; clock-frequency = <400000>; eeprom@55 { - compatible = "at,24c64"; + compatible = "atmel,24c64"; reg = <0x55>; }; };
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/arm64/boot/dts/xilinx/zynqmp-ep108.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)