From patchwork Wed Jul 1 09:41:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 6701951 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AD259C05AD for ; Wed, 1 Jul 2015 09:42:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EF7C720688 for ; Wed, 1 Jul 2015 09:42:43 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 22F932066C for ; Wed, 1 Jul 2015 09:42:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A40B56EAAE; Wed, 1 Jul 2015 02:42:42 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com [74.125.82.48]) by gabe.freedesktop.org (Postfix) with ESMTPS id F1D536EAAF for ; Wed, 1 Jul 2015 02:42:41 -0700 (PDT) Received: by wgjx7 with SMTP id x7so31630747wgj.2 for ; Wed, 01 Jul 2015 02:42:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=VB8l07lHL2KXF4XfFhsns1+hlY4vDRJWJvy9D4QJn+c=; b=zYq8/7zeGWvv41WOM23RBm3lFOG5W+ZnjzmhJjBhZOpCP/grr3P21kv6V/I7hzBg9q Ofbs7+l+Sp8E13kgIzB1480sE0LZg9k/xSC+VK+NjDEMJwRunnlHAKDosz0YaLPOoLOt bdwTFyyM208ibJo0X0xR/o94/4aY7Q6SkQNUw3inj4MqQIdOoXiskbhX8X3Zy8MTmmeO MQwWG830zJg5L+RiASr3VFwqNty9EZOCgr7HGA9YzjvFSxY+XIaH3DvP1HpeS/LkF6tJ c5OqwMha8gD1QaD4N5gE1D88wFyAIMdOI5lM6zfkk49rcDXaTGRGd99SfDZfEPjqCbFv 9qVg== X-Received: by 10.180.231.4 with SMTP id tc4mr4726382wic.27.1435743760689; Wed, 01 Jul 2015 02:42:40 -0700 (PDT) Received: from cizrna.lan ([109.72.12.160]) by mx.google.com with ESMTPSA id x10sm1992663wjr.25.2015.07.01.02.42.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jul 2015 02:42:39 -0700 (PDT) From: Tomeu Vizoso To: linux-kernel@vger.kernel.org Subject: [PATCH v2 06/12] backlight: Document consumers of backlight nodes Date: Wed, 1 Jul 2015 11:41:01 +0200 Message-Id: <1435743667-11987-7-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.4.1 In-Reply-To: <1435743667-11987-1-git-send-email-tomeu.vizoso@collabora.com> References: <1435743667-11987-1-git-send-email-tomeu.vizoso@collabora.com> Cc: Mark Rutland , devicetree@vger.kernel.org, linux-fbdev@vger.kernel.org, Pawel Moll , Rob Herring , Tomeu Vizoso , linux-gpio@vger.kernel.org, Ian Campbell , "Rafael J. Wysocki" , alsa-devel@alsa-project.org, dri-devel@lists.freedesktop.org, linux-acpi@vger.kernel.org, Mark Brown , linux-pwm@vger.kernel.org, Kumar Gala X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add a small note that makes explicit that properties named 'backlight' contain phandles to backlight nodes. This is needed so that we can automatically extract dependencies on backlight devices by assuming that a property with that name contains a phandle to such a device. Signed-off-by: Tomeu Vizoso --- Changes in v2: - Document that consumers of backlight devices can use the 'backlight' property to hold a phandle to the backlight device. .../bindings/video/backlight/backlight.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/video/backlight/backlight.txt diff --git a/Documentation/devicetree/bindings/video/backlight/backlight.txt b/Documentation/devicetree/bindings/video/backlight/backlight.txt new file mode 100644 index 0000000..309949d --- /dev/null +++ b/Documentation/devicetree/bindings/video/backlight/backlight.txt @@ -0,0 +1,22 @@ +Specifying backlight information for devices +============================================ + +Backlight user nodes +-------------------- + +Nodes such as display panels that refer to backlight devices can do so by simply having a property named 'backlight' that contains a phandle to a backlight node. + +Example: + + backlight: backlight { + compatible = "gpio-backlight"; + gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>; + }; + + [...] + + panel: panel { + compatible = "cptt,claa101wb01"; + + backlight = <&backlight>; + };