From patchwork Tue May 23 13:34:42 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: 9742659 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 02CE460380 for ; Tue, 23 May 2017 13:38:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E6396287D0 for ; Tue, 23 May 2017 13:38:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA9B0287DA; Tue, 23 May 2017 13:38:55 +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 69885287D0 for ; Tue, 23 May 2017 13:38:55 +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=IfuktLV7/RJaRc81wL2tgeM64UVphLjvUI8JyfgkviE=; b=pZyWpvrVZK0mp+0td3VA3824yc 0Zx0Vo8QLeK0nrHAt2m5COiblN8uBobuR83dGxhH85ovAlhdxP/HujOJUAAn38FQgDEP6pRHIjgYr qdtXfgnNuVg4NAmEZIu22Sxs1c/FEYqNKE3pzNX6OiFHdQiQ848q1Tq3IvACWNJYbTB1A4F5RG2Ah +Za1PdgocKqfhKAroHxMdABW6seTvic2fXazC8pKYqCUMADpfjfzlQ9A2nUoDTdbvogHXl5olbSRK BpSnnhJAohW7wnD9ROsXgDoZ7AN9rVpukylhdsKzwto5gJVNjBa/rFMNXUIPJcLb/xODW4glW8Q18 CgjeF5Kw==; 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 1dDA1W-0004GI-Oe; Tue, 23 May 2017 13:38:54 +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 1dD9yP-0000Td-31 for linux-arm-kernel@lists.infradead.org; Tue, 23 May 2017 13:35:44 +0000 Received: by mail-wm0-x241.google.com with SMTP id g15so19847566wmc.2 for ; Tue, 23 May 2017 06:35:22 -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=AFDKFVgW15w6RQZK0SpejMU+9q2LL5h+gLyIV8/5faE=; b=ePFwpQpXyqFChjldwlzJzUOHidP09tBfVG59U6avOrckgNEK0jNinJ+W5SnCohD3Bo AS+Qoc3upnnmivsQfAoBr+q7JjKKpD4U2HzudasKFyohhciuiHkR8XCfatlk8ZG7IIp4 mrqNfWMXZBk/SRw57w17YN0Z8X+ZKwuyK3BmBA0x46wP8FWrPi48L+VI3695mi9DN8NX t+teVKQqOVteoYlkdaJ4REI3JfVitf8BE8KyY5i49GvFLcaIuSPcTq9I+KSnHtYQIxLm e0O2BKmx3SQsorSQwAU1ja1bcfsojQJ5bF1XYfg2rGZ7VS672uhRYAYWIzUxw4bwoJ1j EABw== 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=AFDKFVgW15w6RQZK0SpejMU+9q2LL5h+gLyIV8/5faE=; b=fPQw4a5hoBlCWZQnElcT1kMKDGNYalvfFodc0vfVQWgY0vsRlpv1ka+Ai0dYRVMhy/ AivC98fP2GW4FvZgvhJL8r05CMtkZL0fUQYTjm8q/IDLCmWpThvzOWczCoJH7BOYZ4B6 Qi6suT+FoUuhWkG89YqJfZSgJ41l5zphS7DYxxWbSPG3yca/QBZPOoApDlSjXwuMfFrn cVfVpiicyxV6LZjo+iseFJMotfbyEOMr2hd/A9KLSY7jdPz+kMVq+epi+OXywRBCiPfv UHXHh4Mdu5bebNKf3LAZIsVEyvrkuWZ+aHBQKgbG6N7eGSc/BCp+mGEcL4bUwXw6X7rQ k4jQ== X-Gm-Message-State: AODbwcAPnBpDYEEw0vxwhvTQWSzALSc5TNNO9NE6YRIHlYRMtSChzF3h 7ZJ4YEKy09+HAZGc X-Received: by 10.28.199.65 with SMTP id x62mr2343106wmf.49.1495546521548; Tue, 23 May 2017 06:35:21 -0700 (PDT) Received: from localhost.localdomain ([90.68.25.6]) by smtp.gmail.com with ESMTPSA id a136sm960657wme.26.2017.05.23.06.35.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 May 2017 06:35:20 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [PATCH v5 14/20] arm64: dts: ls1043a: Add generic compatible string for I2C EEPROM Date: Tue, 23 May 2017 15:34:42 +0200 Message-Id: <20170523133448.4794-15-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_063541_455142_76B0D026 X-CRM114-Status: GOOD ( 15.65 ) 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 , Herbert Xu , =?UTF-8?q?Horia=20Geant=C4=83?= , devicetree@vger.kernel.org, Catalin Marinas , Wolfram Sang , Will Deacon , Stuart Yoder , Li Yang , Rob Herring , Hongtao Jia , Javier Martinez Canillas , Shawn Guo , 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/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts index d64370ed0738..0a3853240c8b 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts @@ -75,11 +75,11 @@ reg = <0x4c>; }; eeprom@52 { - compatible = "at24,24c512"; + compatible = "atmel,24c512"; reg = <0x52>; }; eeprom@53 { - compatible = "at24,24c512"; + compatible = "atmel,24c512"; reg = <0x53>; }; rtc@68 {