From patchwork Tue May 23 13:34:32 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: 9742613 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 742D860380 for ; Tue, 23 May 2017 13:35:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62D73287A7 for ; Tue, 23 May 2017 13:35:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 57119287DA; Tue, 23 May 2017 13:35:46 +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 D051B287A7 for ; Tue, 23 May 2017 13:35:45 +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=OD3Afo8jxCMlYr5z8Y1QsxgAQ2Lcj5jZcUDGkRc+3qE=; b=pNYT9V2YKzhSfv+IuHJVeBI4Hb CkS/EajTV79R/hxDXZkdSmGTB8h1aa/K65Nkod3zrEF5YgZ5y1CJX1T9Jgmxd1qgDYRxajj7W01ST fUubBo9/QRON+ZFng2f2wg67Lft4yVCM3SB4yB4wvR8yvDrMni0M3eISSR0PvsV8FL92T0TuO2lJc RQvu719l8OiIj3CjZulLEAEaY7xadRN3ThOlATm7/AnW24pLq/zadI5eL6ajO3YFSyUAxOJLAPvRd 0PRlZf+99I0aKYMCegjpyClI67+rzVfuXSPRqhaNRiHh5RLPOGwq4pab8b296dXjvP6/hY9i8KO8L fIoJY1IQ==; 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 1dD9yQ-0000q1-Rs; Tue, 23 May 2017 13:35:42 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dD9y8-0008TX-Hn for linux-arm-kernel@lists.infradead.org; Tue, 23 May 2017 13:35:26 +0000 Received: by mail-wm0-x242.google.com with SMTP id d127so39427865wmf.1 for ; Tue, 23 May 2017 06:35:06 -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=t3Ut1YvHGsfqnxAmibKycSyzjEyDRioqzeB5XKeiRCA=; b=osDQXvC+8lcRr9JKzTq0czemDE1FOHsAUpM9blND74iX4hfjFEcfXl3GgiN3VbOEpK Xl8J4Kecgyv5Cq6nrjD1FOIXuQwSsHFvnAG3djQQNtmzI82ruNOGVcRkrWqB+0k1ZP1Y TJfZcX8pK4M6ZMMDe4MVH9aG4VPOqzZ8I3qQuaEENewpLROHYVcYQzyUMIT4bxeGAKW4 FsGrBEgA+KHIgr18HvUQw+R9QZGniyrhqiMG0Mbg/4KuXf9BySSNiUbuaRAV0jDSnN3s dqCPMiv/2bySO7VcxsTtxWJXu3uOg1vfg0tURfPNhk8/82u5oXJRnixMfx0VfYwpcAhl YLyQ== 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=t3Ut1YvHGsfqnxAmibKycSyzjEyDRioqzeB5XKeiRCA=; b=V54LVNHqQAXlKjMDBsC+TEIPQSle8KrT8AvrrXXwLrhUv1rPda3nvEkBkeoZTN6zoi ZSx1K6cPyL6P7Q0318xh+7zZ9vpya36RRMA0lYfs4YoI8pMS6sq1EsDplB5KRa92/vg9 PqGXHLQwaKpdrU4mVuEPAsDV52JS7FzOl2dzPDS7aDRZA0BsjuUNlOSZomHQjTxWHqkn WIQYoSVno8QK8R12n8L79HhGCJq++HhFpZ4J+j+ljqnGX9NUfq5KE8PHE34wTrfgeRSr 1IwDjvzeKwtkAVU8u9nzJlPyMUPmpGy65YwuAyxodTuRpHa/QrXwxEOKwW8yAia4KKfq I9zw== X-Gm-Message-State: AODbwcD5Tn70QnbLpYCSACvoqJjCcl+CXt1JnA02ZcVS6ElJnNIV5xh2 sQrNoE4yzBsbG0ja X-Received: by 10.223.176.36 with SMTP id f33mr16243943wra.124.1495546505110; Tue, 23 May 2017 06:35:05 -0700 (PDT) Received: from localhost.localdomain ([90.68.25.6]) by smtp.gmail.com with ESMTPSA id a136sm960657wme.26.2017.05.23.06.35.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 May 2017 06:35:04 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [PATCH v5 04/20] ARM: dts: turris-omnia: Add generic compatible string for I2C EEPROM Date: Tue, 23 May 2017 15:34:32 +0200 Message-Id: <20170523133448.4794-5-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_063524_783839_39F4342A X-CRM114-Status: GOOD ( 15.24 ) 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 , Jason Cooper , devicetree@vger.kernel.org, Wolfram Sang , Russell King , Rob Herring , Andrew Lunn , Gregory Clement , Javier Martinez Canillas , linux-arm-kernel@lists.infradead.org, Sebastian Hesselbarth 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/armada-385-turris-omnia.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/armada-385-turris-omnia.dts b/arch/arm/boot/dts/armada-385-turris-omnia.dts index 28eede180e4f..be16ce39fb3d 100644 --- a/arch/arm/boot/dts/armada-385-turris-omnia.dts +++ b/arch/arm/boot/dts/armada-385-turris-omnia.dts @@ -171,7 +171,7 @@ /* leds device (in STM32F0) at address 0x2b */ eeprom@54 { - compatible = "at,24c64"; + compatible = "atmel,24c64"; reg = <0x54>; /* The EEPROM contains data for bootloader.