From patchwork Tue May 23 13:34:39 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: 9742639 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 515D760380 for ; Tue, 23 May 2017 13:37:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 40B7228762 for ; Tue, 23 May 2017 13:37:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35A33287DA; Tue, 23 May 2017 13:37:19 +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 D7A5628762 for ; Tue, 23 May 2017 13:37:18 +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=TYEN1Zthh+5emdtOZMVr+5rI7OCECEXV5m8nMldu/X0=; b=aLDCy9IIOGni/o402CEJTILCpF xUUNSkc8lr+FrQPsXr9kC/heG+m7RgG+FwVI1ZB3BVnXyAWAC3kiXvXz8rfDBVFNK/gAGFLD0MUMY ij73k6w6RFPP0HS9N9yMsyUnD+4OGdeGq1BrZFe7Au1KodloHAAJ6vKXY3Eb+OkOSVViUd7KJVNg7 U+dzMPdKrXEEvu327Rdeu4dHgne6ekvRkx9CF8f6Rma/CkW+h559FFfXNp67TBWICKu7MGdnrYh7N heKcfpfEOtr6wZVOWu40oM0vBB9oq/wFJArvo+wdujPftKVegGwY9gjc1AWE+LQVeXwCsxJl9loBL u95muobw==; 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 1dD9zw-0002pC-36; Tue, 23 May 2017 13:37:16 +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 1dD9yK-0000T3-3W for linux-arm-kernel@lists.infradead.org; Tue, 23 May 2017 13:35:38 +0000 Received: by mail-wm0-x241.google.com with SMTP id b84so23628759wmh.0 for ; Tue, 23 May 2017 06:35:18 -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=BmriUTolZB0DkImbgp+Ge5jDheFr8tYAiDbNnuj4nmw=; b=Bl+lZnImve3J4BVj+1tldU0FfPT46pLN3e/Dq3UEF+9XV3qeix6s5qqnrGBD1z4s73 Qblo5/NJuD4yb0RFbmV+IJRZqrkbNwSeYQ8DJUC7m0CNgWRrEy3YUrgXIfJ6LXdPj8OO oc/UN4eKv1t0ysduf9y8AK1O7dquzXRf7vrhkkznQVoXL2kUc42VZB6wLXQ5eB8XVKVj POfV4jwqqU+fgdauSbANf/F79xmLvNi77uyb1A5JSa7F9+nA7v7mzjSjs902BXwdyhq8 k75PIQ8qk7stiab43kNMpitx+cpQUWfdEEkXWyjEwMvOyLrHB4Jb26fBc4e1B5qpGPjv Xlvg== 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=BmriUTolZB0DkImbgp+Ge5jDheFr8tYAiDbNnuj4nmw=; b=NzCwpZUP+xeqoDQVpszjJZ6FRAAm/pr9/kf2SzZKZoJxcHcSgX4It1hIzukh+SRZZ3 Hzwi1thg8VUlOpMBjkYAhmFx8/Gyi5u6WO4LIbYHdx2v/YkaYuP2FHVSt5dpRe78UzMM nZjnNjxPyIbfukcFp0btcFM4NSCM7JM4Ttc76t/ircdT9RckGfVXC4IpKt0KaVLInSck GuNnY8kmUXJDwXFZWcU84bDfiX+bMEFhEbj3KEdLHdeY3mw1UqsazGAI0hIU7eiOT9L2 XRcRWQ8QoipqVH8IJhInaoUFBp/E6XYcmrQtsgwbG3rD50ojPibEF7vC0ZcKP2LIIiZ/ C8jw== X-Gm-Message-State: AODbwcB6r8VG9oSo+JqPHgYqmWksheEHRz7yRMKEOi5DgRsfbD821o7Q m6v4YgK9mPu9qqMk X-Received: by 10.223.170.67 with SMTP id q3mr18535605wrd.19.1495546517200; Tue, 23 May 2017 06:35:17 -0700 (PDT) Received: from localhost.localdomain ([90.68.25.6]) by smtp.gmail.com with ESMTPSA id a136sm960657wme.26.2017.05.23.06.35.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 May 2017 06:35:16 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [PATCH v5 11/20] ARM: dts: socfpga: Add generic compatible string for I2C EEPROM Date: Tue, 23 May 2017 15:34:39 +0200 Message-Id: <20170523133448.4794-12-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_063536_705842_8EABFC63 X-CRM114-Status: GOOD ( 15.14 ) 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 , Rob Herring , devicetree@vger.kernel.org, Wolfram Sang , Russell King , Dinh Nguyen , Rob Herring , Javier Martinez Canillas , 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 --- 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/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 893198049397..4bb2791ab04a 100644 --- a/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts +++ b/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts @@ -294,7 +294,7 @@ clock-frequency = <100000>; at24@50 { - compatible = "at24,24c02"; + compatible = "atmel,24c02"; pagesize = <8>; reg = <0x50>; };