From patchwork Fri Nov 24 16:27:50 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: 10074295 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 A0E916037F for ; Fri, 24 Nov 2017 16:28:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92AF62A2C4 for ; Fri, 24 Nov 2017 16:28:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 859D72A2CC; Fri, 24 Nov 2017 16:28:40 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED 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 1CDD22A2C4 for ; Fri, 24 Nov 2017 16:28:39 +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=5Q9EBiV71Cb8zU9GbVxPVPfCO4OW/f1M3hcjcR4Pky4=; b=aUaotL0Sp+qL1aClD9SK/Hxmm2 5U5cnYok3zXaWTq45wWfqUXZlb6daUqucqqFffdbdHHeKoGFBqYm+wqpm/l4uDF9ah013/5O1GNco XCyXZ9LSJuj+RF54v5WOqzyk2TwvrQICizCzN48VuYzA5E/k/OhDzWVMppOne26Qy18apbadUO+ER XFIiv4CjNO2QPXX2rYeeP8TtrLEzBdPAAe2QkI6CDMBJa8LtSZyE60fucXQ4ZxNQNxvZgMUxGz/Wa X1irsH7rxkROQBt6VVLF3eTssg7TFqVsS2JKU3UO12xskvbvtumSxTUz1fTWERVqBF7PxdEsJCxc+ W4xCGNUg==; 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 1eIGqE-0003hW-Pa; Fri, 24 Nov 2017 16:28:38 +0000 Received: from mail-wr0-f194.google.com ([209.85.128.194]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eIGpu-0003Gz-IF for linux-arm-kernel@lists.infradead.org; Fri, 24 Nov 2017 16:28:20 +0000 Received: by mail-wr0-f194.google.com with SMTP id k61so20834758wrc.4 for ; Fri, 24 Nov 2017 08:28:00 -0800 (PST) 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=88uZxhFU9kSYnWH8pGgzC+KCYWp3twD3v3xxB0r0B/M=; b=BLCuY0P2WQFN/OUAzHgQ8qfO+elJ2AVDV8LRqsBRRdzT9rqVU+T+fTBWUGMZyyYS5M zSkfGMZnY0H5r+W5zo3E95C3JzcuO3YqbAYuw92x9T4FQllhnwrrJu30+9kOAKIaCclc Ghu9xqUBADPUxjBwAKjeO57qDaLtbwYrIwYfJhkM0u+bxCgdSQ11Mq2tsznKwANYM7tB s+5RW5M6XUZHi+nE20vxW7j2s/DOCz5lAefX4UkBTcHciRAY2AsKQyqq3W/UVCbOtkxJ rB/drjvO8Zie/3gZ4FG1vW0IW1MFJHxawZZ4XCdXksY9C0YdOMCiYJxgZp04uwe84AxF euJA== X-Gm-Message-State: AJaThX4LRw2dzPJe3F6XOyag3DqfSu4FHwlbxrvP0RW5HTtzFJW7hE8N weX0ge0ltAkQep2dgX5kE8x6VQ== X-Google-Smtp-Source: AGs4zMa6XSZPyr6ayD7o0bHe9AGW/IwOETwZ2EuHt3+7ua3Y/bkteja+rSPd+hIBm3plnJCjLRrlQg== X-Received: by 10.223.184.47 with SMTP id h44mr22893899wrf.11.1511540879026; Fri, 24 Nov 2017 08:27:59 -0800 (PST) Received: from minerva.redhat.com ([90.77.100.34]) by smtp.gmail.com with ESMTPSA id o88sm26963360wrc.10.2017.11.24.08.27.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 Nov 2017 08:27:58 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [RESEND PATCH 4/4] ARM: dts: socfpga: Add generic compatible string for I2C EEPROM Date: Fri, 24 Nov 2017 17:27:50 +0100 Message-Id: <20171124162750.18756-4-javierm@redhat.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171124162750.18756-1-javierm@redhat.com> References: <20171124162750.18756-1-javierm@redhat.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171124_082818_780041_5A5E25C3 X-CRM114-Status: GOOD ( 11.80 ) 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, arnd@arndb.de, Javier Martinez Canillas , Rob Herring , Russell King , Dinh Nguyen , arm@kernel.org, olof@lixom.net, 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 --- arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts b/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts index 655fe87e272d..2459d133f1be 100644 --- a/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts +++ b/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts @@ -237,7 +237,7 @@ clock-frequency = <100000>; at24@50 { - compatible = "at24,24c02"; + compatible = "atmel,24c02"; pagesize = <8>; reg = <0x50>; };