From patchwork Mon May 22 14:01:55 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: 9740543 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 5560A601C2 for ; Mon, 22 May 2017 14:06:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 451602867E for ; Mon, 22 May 2017 14:06:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 39E3C28697; Mon, 22 May 2017 14:06:59 +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=unavailable 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 9FC342867E for ; Mon, 22 May 2017 14:06:58 +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=QDNDOD53wyehwlXYhZBsA2CDsHB1lI73EHMqFD+ai6o=; b=F43LjFsrauRjHKWT4KMKtCt+bn WX3KfENxV5hrGW3p7vUNo/cM7AlPQke9R+tGK6yPvD5I13c7R1S4EGKLRrw5+fGL5BhMw2kA+KePb VDLYkMTzRgSca0ybU81tuLZ7XUCoNVw1TaG1rw5qG+hAIrxBXQz5HDKKCTT1ArAOGI8evK7B9CLL6 yPpe5TLFqdmQux6YK7CfoflQCUb+VnAS1WIy7CQipQydFagEEYGe5cUt08UXoOPSrt/Wq4gpPvhmt J2j5BLI/yfTbSgS2rLnBb3k7TXvt610391/bt4OpX+W+QffZfF5yt/hZQHzE/qp8uFnhT0y4KxCNt BWI7KDRw==; 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 1dCnz6-0002ic-7r; Mon, 22 May 2017 14:06:56 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dCnvJ-0005jL-Tq for linux-arm-kernel@bombadil.infradead.org; Mon, 22 May 2017 14:03:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=onHNptLVZXKcbNV6W9pXU+1C5Q+Xvyu3NwPHp5CTiqw=; b=hz5nGrBzQ3aacPY7eLw1fGW83 XddecaRX+txqDucOwLDk9yaiOwL2hKpm9YwiHVScev3I+lnM3UmbhkTQJ/4x2buJYhNNFkQn5wZgQ UL3R41/IJO0/CuN9DgeKpj1UttW4A+5QLZWRsfONTtiAXkPnq0iRToTI+WK0OJ4aeMEnaJqAIG10E j3pEghxgiRqtkTQ/xMj4avYqJ/yDCKyV1zrMUDFvYMKVdKKVaksXp2B59vWMPYGdFNr+HJgHsUua4 QukBYFi1YiRd3iyhbDaGsDbYQfimbfEEhrOTPYsKrOrlRXN3QmUA/BmWZOniv7GWDOiQeLZMMs54N piHfLMMRA==; Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dCnvI-0007Ee-KE for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2017 14:03:01 +0000 Received: by mail-wm0-x241.google.com with SMTP id k15so32222198wmh.3 for ; Mon, 22 May 2017 07:02:40 -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=onHNptLVZXKcbNV6W9pXU+1C5Q+Xvyu3NwPHp5CTiqw=; b=DDkrcF14+DY6DzvcgiUUAtKDjJAuDjA5D3dUHqRfRV7qtb9iWeVdUHqvvFvpN1sLei O/uRIyrXV9q6zIL+RlLHMgix04Da1eE5/zTgfNVFlfKbo8NUCLH/Xr9GRrIte2UOq9oy IqklMNOIWWETVjZbFL2KhsYyFhNTlagaskGKZXHyqbJDNq4juKN/pP2IlAmn+UxPlHfc GT6Q3GVOUsa1/epHRYGiu7qlV+7M67Gr8rVji8J4TEcINmS012NCtyEZkZqAxUDdUJeD uwq4eoAlwZY2hJC6HOVOUGqENBxOmqfnhQaOdMwjmYDiqBjgZl8C2o/uc3cqukkMcwhD OQKg== 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=onHNptLVZXKcbNV6W9pXU+1C5Q+Xvyu3NwPHp5CTiqw=; b=l0d2R/LGtSaX9/J5RKftgdCMaSVqYDmKzskH00tx0kyn/YCF4SB2dTvfBHD53l3ZMW nF8tnof+Ow5gMjHkYucutw7z/srptlJmbIcO7CoNfdtNRz/FTz2MJiWN8J+XB3nvJGNe YpDUCrUj58v53jDP6jxq1kNpKAG+akA5N7umJZCt6TrgeySaOwc4/RT5nF0+jPQWaLeF 14jVSw3fROmUedVaPX0XaqsOc4Xf2wdC0SVOjQY8am+s15wZw52spVHafhCV7fesUQtf 2heCgaSVwAxzj5J0S1H7BJLWTUVUnDgnTd9z7+UjNiRNeH7h2UZ6LgBwq8I+M2K115OH mdig== X-Gm-Message-State: AODbwcBOCjUR7QxCYhT7UhyJ0CMWZAWzAz97dgWiXNKgb1i1c/qi016u +rsKef05xIwIfIZj X-Received: by 10.28.238.67 with SMTP id m64mr25122657wmh.57.1495461758516; Mon, 22 May 2017 07:02:38 -0700 (PDT) Received: from localhost.localdomain ([90.68.25.6]) by smtp.gmail.com with ESMTPSA id m191sm33821774wmg.30.2017.05.22.07.02.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 May 2017 07:02:37 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [PATCH v4 07/20] ARM: dts: keystone: Add generic compatible string for I2C EEPROM Date: Mon, 22 May 2017 16:01:55 +0200 Message-Id: <20170522140208.24652-8-javier@dowhile0.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170522140208.24652-1-javier@dowhile0.org> References: <20170522140208.24652-1-javier@dowhile0.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170522_100300_811652_4D88752C X-CRM114-Status: GOOD ( 15.57 ) 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 , Rob Herring , Santosh Shilimkar , 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 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/keystone-k2e-evm.dts | 2 +- arch/arm/boot/dts/keystone-k2hk-evm.dts | 2 +- arch/arm/boot/dts/keystone-k2l-evm.dts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/keystone-k2e-evm.dts b/arch/arm/boot/dts/keystone-k2e-evm.dts index ae1ebe7ee021..c8d45e6cd9e6 100644 --- a/arch/arm/boot/dts/keystone-k2e-evm.dts +++ b/arch/arm/boot/dts/keystone-k2e-evm.dts @@ -69,7 +69,7 @@ &i2c0 { dtt@50 { - compatible = "at,24c1024"; + compatible = "atmel,24c1024"; reg = <0x50>; }; }; diff --git a/arch/arm/boot/dts/keystone-k2hk-evm.dts b/arch/arm/boot/dts/keystone-k2hk-evm.dts index 2156ff92d08f..69af3a950da6 100644 --- a/arch/arm/boot/dts/keystone-k2hk-evm.dts +++ b/arch/arm/boot/dts/keystone-k2hk-evm.dts @@ -145,7 +145,7 @@ &i2c0 { dtt@50 { - compatible = "at,24c1024"; + compatible = "atmel,24c1024"; reg = <0x50>; }; }; diff --git a/arch/arm/boot/dts/keystone-k2l-evm.dts b/arch/arm/boot/dts/keystone-k2l-evm.dts index 056b42f99d7a..402190e55e40 100644 --- a/arch/arm/boot/dts/keystone-k2l-evm.dts +++ b/arch/arm/boot/dts/keystone-k2l-evm.dts @@ -42,7 +42,7 @@ &i2c0 { dtt@50 { - compatible = "at,24c1024"; + compatible = "atmel,24c1024"; reg = <0x50>; }; };