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: 6702441 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3DE209F2F0 for ; Wed, 1 Jul 2015 09:45:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 706C42066C for ; Wed, 1 Jul 2015 09:45:43 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 399A22062A for ; Wed, 1 Jul 2015 09:45:42 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 92C78261551; Wed, 1 Jul 2015 11:45:41 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, NO_DNS_FOR_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 9219E26065A; Wed, 1 Jul 2015 11:42:54 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id BF61C2606B5; Wed, 1 Jul 2015 11:42:53 +0200 (CEST) Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by alsa0.perex.cz (Postfix) with ESMTP id E8137260616 for ; Wed, 1 Jul 2015 11:42:43 +0200 (CEST) Received: by widjy10 with SMTP id jy10so52484183wid.1 for ; Wed, 01 Jul 2015 02:42:41 -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 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 Subject: [alsa-devel] [PATCH v2 06/12] backlight: Document consumers of backlight nodes X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.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>; + };