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: 9740523 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 ABD37601C2 for ; Mon, 22 May 2017 14:05:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C42F28650 for ; Mon, 22 May 2017 14:05:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 90ED628691; Mon, 22 May 2017 14:05:57 +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 210AD28650 for ; Mon, 22 May 2017 14:05:57 +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=2MuDmJuI3yr+YUOkgFvMRF3PxejULh4x80O1X9wS71U=; b=hvshc+wo9h52rDwSxlUTxSwUqt Kw9BxcxYTV5yKBEqa7NkKjnWH/o/zIWEi64F2PWaA7ZrwIu0VImFEFRXPIQGmL5D9QxRcBYChD8r9 ScSRJHIwENKBzBa/lmzNSadPwqWJE+15cEcl1Oub8cnr/tH8DMMClB5CkdJ7B7kPwCwTZnosAMA3L RCB0pmB6XyDPURD9mRAlBJYt5VZcaNMIY9q36XwLt4K2k5c46SKST8XD0q1BeBSX1+IiqtJWNDCUi bEM3ydSR6RSaNc3KJvg9/XMIh1JsSX2VRJlUQVur7vczabHbG2rifJzartgMJKD7ELmQvLk+uV6sz woI3IuSA==; 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 1dCny7-0001eN-KS; Mon, 22 May 2017 14:05:55 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dCnvH-0005e9-P4 for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2017 14:03:04 +0000 Received: by mail-wm0-x244.google.com with SMTP id g15so13831792wmc.2 for ; Mon, 22 May 2017 07:02:44 -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=BG8oR1eA8rTsxLngt5WRbrv9FBjrJhwEQa9I52F/rBkDafcM9KwmtqPVIGebYJgFSc 59ayiWgK9cMPpobVGAyUZw1rQSebxJcGIivecp4ZkWdM6oGbnk9wwtep4N62MG+vMjB9 KIG/PiGgmBTTdxUAHfhEVKcY8io+4S1NgDNtSTRJheReciaa0bZlvsy7vFTT6pInCKll Su9dKOmExwWQ9TH3kr8mBZac8j9nEFP+wK6jBQ95r6VqRu1hB7slWgQvb/jagu5vmLdR hRYMmUX4qpQkLukfU5aBAF47KNv7/hGTYY+JLgl7xhJYuE/dN5JS4mwSF50MHXDFdDXK UJEg== X-Gm-Message-State: AODbwcAJ7M1ZUFCbkC3AyiqJHMDGW/5vDWVV3i/CY0rGT6fNw9ZTCLiP e3Twub4w6OV6IsYC 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170522_070300_039304_1FF2D1AB X-CRM114-Status: GOOD ( 15.06 ) 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 , Magnus Damm , Russell King , Rob Herring , linux-renesas-soc@vger.kernel.org, Simon Horman , 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 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>; };