From patchwork Tue May 23 13:34:38 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: 9742607 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 08FCC60380 for ; Tue, 23 May 2017 13:35:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED1D0287A7 for ; Tue, 23 May 2017 13:35:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E1ABE287DA; Tue, 23 May 2017 13:35:28 +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 4DDBE287A7 for ; Tue, 23 May 2017 13:35:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967667AbdEWNfZ (ORCPT ); Tue, 23 May 2017 09:35:25 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33523 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967644AbdEWNfW (ORCPT ); Tue, 23 May 2017 09:35:22 -0400 Received: by mail-wm0-f68.google.com with SMTP id b84so23628595wmh.0 for ; Tue, 23 May 2017 06:35:21 -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=H0tuRZ3SZIqnYbwm7vrixhBJxECADTCYSnisMh691j4=; b=RLaPKsDcaBI9HzoD6EuCYyKig+H46BRHoA5i1sC93qDbfxjaPX1BXOcolE3LQlY5Z9 922TlULXKlj28vS2gAleI2xEJWEBNerPA6H6Ub3+UzU7ETBc2GlwvB/z4fz+6l4VRRoR 6f8pvKtRas0BM9D5ASYVSsxGCtWPALQ/0UvuuToIbb+A6zAEEseSjStTfMdtIRD444Ri x5FPq2oEFCz1vE7tJZp1n5X/f2zMMw52F05I/FbgmnskRAOyfi4TgJ4Aihlp5xjP9Mbl qAN/wXjkS+VKbQBJ80iY33qD7Wm9ZdGBb6Rx/3jHd27zL7D8BpU0Pyw/dVmgrNYVImfY MQ7A== 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=H0tuRZ3SZIqnYbwm7vrixhBJxECADTCYSnisMh691j4=; b=nMV9yS2U/Y6uIyx76ShKDaAJD/XSCIYu6BrlfbVUT2mwObF9TEVNq/7LK+Zjwg0Hmq gm/X0uuLtF6TE+loT65JcYmwHlUzL1MnVH/uWaUdserKZw8y4dH99K7QGuZm5z2cwcJP YCvHlFfajoZZs1nmGrJOit3Q5yz3FV+nfTL0ZU9h+sYjR1WPwoFnM6dBFCivCWp+odk+ uzo+BC3XYI5m4Mb6hcuw5m8MR7Gfkfq5Gqdr9yvc3OgpzZ7RaLdFxMU4q07aQNxFRmI0 uyhzDneMpnc30981gqeSqKrjLDDJ9SO0xgWyQG9LTxU+2/Demd/oLqIYrMozYo5MPVbb kUMA== X-Gm-Message-State: AODbwcBswZEPJqJ2RdXL3TeDfynKARwJTp3TONL+4Id3IlEVUkBBmcW7 DbkA1cty5rMLDyP5 X-Received: by 10.223.173.18 with SMTP id p18mr6695991wrc.90.1495546515832; Tue, 23 May 2017 06:35:15 -0700 (PDT) Received: from localhost.localdomain ([90.68.25.6]) by smtp.gmail.com with ESMTPSA id a136sm960657wme.26.2017.05.23.06.35.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 May 2017 06:35:15 -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 v5 10/20] ARM: dts: koelsch: Add generic compatible string for I2C EEPROM Date: Tue, 23 May 2017 15:34:38 +0200 Message-Id: <20170523133448.4794-11-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> 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 v5: - Only replace atmel variant but keep other EEPROM vendors (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..dc8ed02de707 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 = "renesas,24c02", "atmel,24c02"; reg = <0x50>; pagesize = <16>; };