From patchwork Mon May 22 14:01:58 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: 9740471 X-Patchwork-Delegate: horms@verge.net.au 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 4B0F9601C2 for ; Mon, 22 May 2017 14:02:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3258128358 for ; Mon, 22 May 2017 14:02:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2074428425; Mon, 22 May 2017 14:02:52 +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=-6.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBC962835B for ; Mon, 22 May 2017 14:02:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933973AbdEVOCq (ORCPT ); Mon, 22 May 2017 10:02:46 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35693 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933968AbdEVOCo (ORCPT ); Mon, 22 May 2017 10:02:44 -0400 Received: by mail-wm0-f67.google.com with SMTP id g15so13831791wmc.2 for ; Mon, 22 May 2017 07:02:43 -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=U4wDTL73kN6tvnLt5e4iJs19PHoTiPX0eNpYfC8P+Hw=; b=k6qHN+6l+IGVKlqVQ/HNzkdaR4QugBKW0TYV70Y2NIYx6Wm6A5l5/rRvn7m32hC++X VLgl7x2iqgA9f8Au9owUvhOwIgWhErAuNbsFkXWMFbLqNf1SW38To0v+U7HBRxsTM0HI 3V+z0syY1DMptCqMmLH+s3Dbn6SE8a8Xs1tnWXudIFiV+VYMexUhORJ7P0i4VGzLN1eU f6l1x28EGQgLC+WQEt6KX9J6PUlxZ0HDol6HVpkfNlqgN5b2oUnLsRbP4zYJZWjh2jan uM7RgoEUKVw72qx+AISz5n5rWCKTubO4oiH1C76zfVvgcRN4T0ghVRueiJbgJzWho03Q ccuQ== 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=U4wDTL73kN6tvnLt5e4iJs19PHoTiPX0eNpYfC8P+Hw=; b=CP5CfLaQYr+F68ULo9O9QXZUKJ22X6zW4PEXJXnalmB1OjH3pc9PXNsRAqNrLmqvMH Ir5+XeeaXPDdQN+0x5mLf+2F6rmcPrKg+YIuT5Ztj0E1Ib/TaNWrlw/7Ssy8hQUe9Vt8 5zS2nObLwfSdZ3hhGuWrHgnOTUFtOPBObIcr3hlpwCBM5kFVVdLlMrp4p+mMH5SEiQtD hiIhvtpd3bZv9vqgO/h32+Pk8FpF8wSXLUs/xRhoZhkedl5csC2d2BkiVXssq57k0TTc bw9j/GscRp8yvtBgL3DPNo/Vc8iw1567PI9ljL/0lPuD6hBBKIVclDx5aElO9M27Q6DV Niaw== X-Gm-Message-State: AODbwcAtibW5A2pgVNY0mKfC8rY4CCT7IdGhpFXfwXQAacIf1yyAvwv5 dIu16MOz+B9us3NM X-Received: by 10.28.154.86 with SMTP id c83mr26880500wme.94.1495461763030; Mon, 22 May 2017 07:02:43 -0700 (PDT) Received: from localhost.localdomain ([90.68.25.6]) by smtp.gmail.com with ESMTPSA id m191sm33821774wmg.30.2017.05.22.07.02.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 May 2017 07:02:42 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Wolfram Sang , Rob Herring , Javier Martinez Canillas , Simon Horman , devicetree@vger.kernel.org, Russell King , linux-renesas-soc@vger.kernel.org, Rob Herring , Magnus Damm , Mark Rutland , linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 10/20] ARM: dts: koelsch: Add generic compatible string for I2C EEPROM Date: Mon, 22 May 2017 16:01:58 +0200 Message-Id: <20170522140208.24652-11-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> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.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 Reviewed-by: Geert Uytterhoeven --- Changes in v4: - Only use the atmel manufacturer in the compatible string instead of keeping the deprecated ones (Rob Herring). Changes in v3: - Add Geert Uytterhoeven reviewed-by tag. Changes in v2: None arch/arm/boot/dts/r8a7791-koelsch.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 001e6116c47c..4234667da2b8 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -702,7 +702,7 @@ }; eeprom@50 { - compatible = "renesas,24c02"; + compatible = "atmel,24c02"; reg = <0x50>; pagesize = <16>; };