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: 6702231 Return-Path: X-Original-To: patchwork-linux-fbdev@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 14E48C05AC for ; Wed, 1 Jul 2015 09:43:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4AF562066E for ; Wed, 1 Jul 2015 09:43:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 580482063F for ; Wed, 1 Jul 2015 09:43:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754005AbbGAJnn (ORCPT ); Wed, 1 Jul 2015 05:43:43 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:37816 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753767AbbGAJmn (ORCPT ); Wed, 1 Jul 2015 05:42:43 -0400 Received: by wicgi11 with SMTP id gi11so39898406wic.0; 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 Cc: Mark Brown , linux-acpi@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, "Rafael J. Wysocki" , alsa-devel@alsa-project.org, Tomeu Vizoso , Kumar Gala , Ian Campbell , Rob Herring , Pawel Moll , Mark Rutland 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> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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>; + };