From patchwork Thu Jun 15 18:54:13 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: 9789955 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 E4C4260384 for ; Thu, 15 Jun 2017 18:55:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5653283FD for ; Thu, 15 Jun 2017 18:55:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C8B14284C3; Thu, 15 Jun 2017 18:55: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 23F71283FD for ; Thu, 15 Jun 2017 18:55: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=Du35+c7Mb+0VChRS3zIq07t5Y2QPbbCYpTGHiYQk4BY=; b=iCGhJwlAkKJ8DyU5pJQWJfpdQ8 qEzzX0+R0Xqoqx2ZEgZectXfogKvcGP5O1WheuwzBUTCzTbnkYT/Bh7pOsuF5ujEZGWWES4d9BHRa Yd6vd7iy1TOppPFqnba9ZhF0IBZh92+AK9s0VyE3wGwVku1CIRxkFDClF0LKbg6pb3IjaPvQQ9x5z yBZi2JvVR631Oxsd8rBFcS8rjrodo8IgDSsDbdCb2TuPPm8/GHCGyPTEwTvfYXy7zJgCgc+NgTBOZ ZMTTfU951h04WP8z/6naOmUWD7lx9xDvh3HxlfxKFP+sLNPUm0E7ABgLwHDf0MLdTlHKZnDguPyhr T1UcG9RQ==; 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 1dLZvN-0007lE-5C; Thu, 15 Jun 2017 18:55:21 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dLZv8-0005zt-TU for linux-arm-kernel@lists.infradead.org; Thu, 15 Jun 2017 18:55:12 +0000 Received: by mail-wm0-x241.google.com with SMTP id d17so1279122wme.3 for ; Thu, 15 Jun 2017 11:54:50 -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=t7UF+cJ88p6qUV783nMwGRXzW68S6LR/7CHreLpbM2IgLY683wqXobj/WZ9NFXfYSy IAW95SANjKodjY4WQDSpAydyphm+nbjkfC4N3yST7mzHMMWfpfaD7hEwIeOWOklN688O 7rRH2em0QCT2nRODGNy9rme2zz9AlsugBVDGUuDNN782wFQdCANyHLaf3hgg/EXdvb0F c5ItDLnuc0oB1PlKT+LTc/R6VxAHfwlw1WRbJ3LCgdUoI/HW/knJJ2jCyySYf+3fdfMk wQcmESH41HDfsSRAtvCqzeheJxfDabHNvG0O/560vN7ky/2508oDYXSyq24P24vNvQ2u vBOA== 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=Y8hBFGcknbuMJDCwxnHt2i7866rDX2DCGwdvzvFiH4wmx/oOPjceM/HoG5ioMNBqRu H8kPtxwtDiB7BOP7rJMUt0qk0i2G7epKtoVmfBb9eYYnhspTXW6WJSJn6mKSyCtZ1Rlo wspGcIfh6lHAzmL1rw1s5WuFxQma6oXjb9C7oy+8wgeS5rHk+MiKX+LooUmYiCmr+dja drfqvd80QBG/dlIod7+dTOPdG9ljQtAHGRgyEOAuRUrOB0S0ZiEMW0NXa267EpqtW2iN OTDdu6vUeanv2jyHyrby2KZ7MRsh/Hkzm8coMcmovLLL4IAQJ3XqWuRjEYJ1/As0cS3l x8/Q== X-Gm-Message-State: AKS2vOyvwdHE1KdsL0K+gmGnpSYvK4PFYiuX1Ua9quIZuMDAK53AroR5 wGAMPKlI0Roo7UY9 X-Received: by 10.28.22.4 with SMTP id 4mr4680507wmw.68.1497552888763; Thu, 15 Jun 2017 11:54:48 -0700 (PDT) Received: from localhost.localdomain ([90.68.25.6]) by smtp.gmail.com with ESMTPSA id 3sm39252wru.50.2017.06.15.11.54.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Jun 2017 11:54:47 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [RESEND PATCH v5 11/16] arm64: zynqmp: Add generic compatible string for I2C EEPROM Date: Thu, 15 Jun 2017 20:54:13 +0200 Message-Id: <20170615185418.13980-12-javier@dowhile0.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170615185418.13980-1-javier@dowhile0.org> References: <20170615185418.13980-1-javier@dowhile0.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170615_115507_488372_AB6B77B5 X-CRM114-Status: GOOD ( 15.63 ) 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 , devicetree@vger.kernel.org, Rob Herring , Catalin Marinas , Wolfram Sang , Will Deacon , Michal Simek , Rob Herring , linux-arm-kernel@lists.infradead.org, Javier Martinez Canillas , =?UTF-8?q?S=C3=B6ren=20Brinkmann?= 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 Acked-by: Michal Simek --- 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(-) 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>; }; };