From patchwork Sun Dec 8 21:02:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Gamari X-Patchwork-Id: 298864 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 78F072C00A9 for ; Mon, 9 Dec 2013 08:02:27 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755073Ab3LHVC1 (ORCPT ); Sun, 8 Dec 2013 16:02:27 -0500 Received: from mail-qe0-f50.google.com ([209.85.128.50]:64376 "EHLO mail-qe0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755320Ab3LHVC0 (ORCPT ); Sun, 8 Dec 2013 16:02:26 -0500 Received: by mail-qe0-f50.google.com with SMTP id 1so2165273qec.23 for ; Sun, 08 Dec 2013 13:02:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MYHzihX+dPr5gRhn1Gq5vKIy2KU+XrMAUHqT1O4RatI=; b=L1DmP0wp4pqBANNg8Iyg1f5L9w4z6GPCF15Q8C/86kAbOF5UANCMIT1okbIhZJWWUg LqEnJPmuZdqJ1En4vkgapSHzn8MCwsSusDxs/VXoxmMmNpHxfn6JyzocPbKfc3XSQdIj Tolx3hutB1Get8YMqD3Y9UznScbC6/xyxNKUZZ/CCQ7hE0s88cPD47thbYSQZrn38agB KhX7Uzukp2XSyMZHqbP8DqJnN8/z51ZV6IMwqyFnTIFIU3+tcP2D4PPvXQ1+lmOo1fQ/ 4oXoBEacwXpZzWMpxC1++Z0ZqpZErxSajqhzb11SSFbh7dXCGs2MLYROnjIbWPf8r7nT oaww== X-Received: by 10.49.72.66 with SMTP id b2mr28004103qev.11.1386536546087; Sun, 08 Dec 2013 13:02:26 -0800 (PST) Received: from localhost.localdomain (pool-74-106-118-27.spfdma.east.verizon.net. [74.106.118.27]) by mx.google.com with ESMTPSA id fc16sm10673256qeb.3.2013.12.08.13.02.24 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 08 Dec 2013 13:02:25 -0800 (PST) From: Ben Gamari To: devicetree@vger.kernel.org, lm-sensors@lm-sensors.org Cc: Ben Gamari Subject: [PATCH 3/3] dt: Describe modalias resolution in i2c/trivial-devices.txt Date: Sun, 8 Dec 2013 16:02:18 -0500 Message-Id: <1386536538-14861-3-git-send-email-bgamari.foss@gmail.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1386536538-14861-1-git-send-email-bgamari.foss@gmail.com> References: <1386536538-14861-1-git-send-email-bgamari.foss@gmail.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org To someone with little device-tree experience these details aren't at all obvious. Make the fact that the manufacturer prefix is dropped explicit. Signed-off-by: Ben Gamari --- Documentation/devicetree/bindings/i2c/trivial-devices.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt b/Documentation/devicetree/bindings/i2c/trivial-devices.txt index c475c3a..59bbb07 100644 --- a/Documentation/devicetree/bindings/i2c/trivial-devices.txt +++ b/Documentation/devicetree/bindings/i2c/trivial-devices.txt @@ -1,6 +1,9 @@ This is a list of trivial i2c devices that have simple device tree bindings, consisting only of a compatible field, an address and -possibly an interrupt line. +possibly an interrupt line. The compatible field is used by lookup +the modalias for the driver which will handle the device. A +manufacturer prefix (separated by a comma) will be stripped off during +this lookup. If a device needs more specific bindings, such as properties to describe some aspect of it, there needs to be a specific binding