From patchwork Mon May 22 14:01:56 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: 9740557 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 D11DA601C2 for ; Mon, 22 May 2017 14:07:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C161B284F3 for ; Mon, 22 May 2017 14:07:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B644328697; Mon, 22 May 2017 14:07:58 +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 20020284F3 for ; Mon, 22 May 2017 14:07: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=2lUOngZ5a2/Ev7R1UATsqWDOr30BMcLGhe//w7hewY8=; b=SCApVMdrdb8+BUyK3fXJfP2Zbm 1JjicZ2xCYk5Sq8YpW7TW4EgzHWlrwFZqvhs4I6la1eL48ldJhlhy7Ib8CJ0TuiN1Pld+gQ3E3MEP wJGCvxcXRmV/YtwrF/AsfIWFEkPQsfY7PwLTbVF+lGm1qe/708PPmaFLYaUlveI/2mIgoxwukK0vP uQRDho/1cIJXNCRcSAqnwtcRUryy8QZYaf/PNNxdSLzPO9/bjDOsjGa6MLHvX7fLzI8t4+IsZTyTw Bov8QVL2o/Lilw60qCt5hsEUgHJPMz278+NE3CLHFnmqzosjTPCimUOAksQ/plfLrTbGSGYTj+OQm sJ5HRFIQ==; 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 1dCo04-0003rw-IA; Mon, 22 May 2017 14:07:56 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dCnvR-0005pD-28 for linux-arm-kernel@bombadil.infradead.org; Mon, 22 May 2017 14:03:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=HXOGFAZnU1ZM3g3XcFVvvL30BWjAuZrT2F+Mg6rq0vc=; b=IhNUO7/vK8tDEaz10KjoORDPK r/xVMaZqz5WYkgIacynfzF581oRrnvok2YRvEszAQfolBxAJl05glWCfkagaOo81dmFTAF3zRVLjJ MQDkHpLykmxT/eV1Jjt+Ex9R3xFL4YL5sPQKJawiqB8PpDpkRckQ15O5EkfIMKYvU+eFhi12uInhb uzjzrhdCGD7J+K3nPZFbTvVd0CyjVgusCVG2O7Dko0ZoPpXmv05A4nZan54S8i3PJiflrnJSEhYm3 jIxHUSNQan//Zvxay/ZWLJq3LD8KACNMXKDbYWlsfKYSYmNrW5MTfzI0Mcb7OjWCsWeU+RV5KPEtX tcFrZUFew==; Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dCnvK-0001GV-Pp for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2017 14:03:07 +0000 Received: by mail-wr0-x241.google.com with SMTP id 6so7056309wrb.1 for ; Mon, 22 May 2017 07:02:41 -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=HXOGFAZnU1ZM3g3XcFVvvL30BWjAuZrT2F+Mg6rq0vc=; b=O6irA08+qq+EetAn3gJi1E6iZpYCyTI9OuTUHZQ9XN/DUa7HMByvRYZyFJEgqpjPoY RbQafiv3+rr+hAaEz1mXjAW/ogfBQmlx6u8gvOZYqbFeQivzBJndqg14NzVnJEYAfGy7 86cWnkee4UMW0oChIt0F4A+XuI5Klkf9or3zrmVberQm0a5p3wxU8/Vhhv0S5FwnaZR4 x9TBvv72Rqj+rviUE4M1gCkXiSsLk/9Z3HidC4XaFJf1hXnWjtRpI7dsDhS5F5RTdv80 MwfVvABaTx/Q4v0cz+CZTKXxpujAjEcdJ0YwuDF4e5zatvJSwvz5jCeMOIW9TQOY2Doo SvKw== 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=HXOGFAZnU1ZM3g3XcFVvvL30BWjAuZrT2F+Mg6rq0vc=; b=gKtm8jHUVU+58YvAwqx+j8k9ZpiAw7mZ67jcbhTcI+3x/TRimz/Teg30rFYR9RwE3Y Z3MVtNa44+R4X4p6C50toT3+qD7kVfHu3Z2ZuVNyrqtehBjmvMeu954FFylkiZguz/rL un8anlas0wVi+pBoPfkwAJpDtlt/MilFXNq7fs85tc9sX7hCVnE4D5iV1dLuvlqGRIDj ZrzmZ3BMQfqgOBfYHV2dBadSDGIyQwYRccTTHV8Z0wUyNZXPx0s3D4vSnoar7jdMp2mR /ztdT0hZbs2ifFx/LfVuUU0+7D+CSrpxVa48m7FkeIKVOUHgJ4UdZqAyExJySeb6CZB7 8Y8Q== X-Gm-Message-State: AODbwcAFuOUhVMOCVyiKMGy9fn3CRCmrxhtx0fgIBzixMVZG697ENkjV 26ODl+299xMMEfqD X-Received: by 10.223.129.134 with SMTP id 6mr11140468wra.185.1495461759927; Mon, 22 May 2017 07:02:39 -0700 (PDT) Received: from localhost.localdomain ([90.68.25.6]) by smtp.gmail.com with ESMTPSA id m191sm33821774wmg.30.2017.05.22.07.02.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 May 2017 07:02:39 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [PATCH v4 08/20] ARM: dts: lpc18xx: Add generic compatible string for I2C EEPROM Date: Mon, 22 May 2017 16:01:56 +0200 Message-Id: <20170522140208.24652-9-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_150302_946299_97EE3921 X-CRM114-Status: GOOD ( 18.17 ) 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, Joachim Eastwood , Wolfram Sang , Russell King , 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 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/lpc4337-ciaa.dts | 6 +++--- arch/arm/boot/dts/lpc4350-hitex-eval.dts | 2 +- arch/arm/boot/dts/lpc4357-ea4357-devkit.dts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/lpc4337-ciaa.dts b/arch/arm/boot/dts/lpc4337-ciaa.dts index 7c16d639a1b4..1c1036137f86 100644 --- a/arch/arm/boot/dts/lpc4337-ciaa.dts +++ b/arch/arm/boot/dts/lpc4337-ciaa.dts @@ -174,17 +174,17 @@ clock-frequency = <400000>; eeprom@50 { - compatible = "microchip,24c512"; + compatible = "atmel,24c512"; reg = <0x50>; }; eeprom@51 { - compatible = "microchip,24c02"; + compatible = "atmel,24c02"; reg = <0x51>; }; eeprom@54 { - compatible = "microchip,24c512"; + compatible = "atmel,24c512"; reg = <0x54>; }; }; diff --git a/arch/arm/boot/dts/lpc4350-hitex-eval.dts b/arch/arm/boot/dts/lpc4350-hitex-eval.dts index 874c75d44013..32c940230df7 100644 --- a/arch/arm/boot/dts/lpc4350-hitex-eval.dts +++ b/arch/arm/boot/dts/lpc4350-hitex-eval.dts @@ -429,7 +429,7 @@ }; eeprom@50 { - compatible = "nxp,24c02"; + compatible = "atmel,24c02"; reg = <0x50>; }; diff --git a/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts b/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts index 9b5fad622522..48039e27e27c 100644 --- a/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts +++ b/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts @@ -490,7 +490,7 @@ }; eeprom@57 { - compatible = "microchip,24c64"; + compatible = "atmel,24c64"; reg = <0x57>; }; };