From patchwork Thu Dec 10 13:11:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 7818881 Return-Path: X-Original-To: patchwork-linux-omap@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 A6BE89F7B5 for ; Thu, 10 Dec 2015 13:17:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4DF6E205D4 for ; Thu, 10 Dec 2015 13:17:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4040E205C4 for ; Thu, 10 Dec 2015 13:17:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751952AbbLJNRW (ORCPT ); Thu, 10 Dec 2015 08:17:22 -0500 Received: from arcturus.kleine-koenig.org ([78.47.169.190]:60543 "EHLO arcturus.kleine-koenig.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751572AbbLJNRV (ORCPT ); Thu, 10 Dec 2015 08:17:21 -0500 Received: by arcturus.kleine-koenig.org (Postfix, from userid 1000) id 41FBA81EB3; Thu, 10 Dec 2015 14:12:10 +0100 (CET) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Tomi Valkeinen , Jean-Christophe Plagniol-Villard Cc: linux-omap@vger.kernel.org, kernel@pengutronix.de, linux-fbdev@vger.kernel.org, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Subject: [PATCH 5/5] fbdev: omap2: panel-dpi: allow specification of a vcc regulator Date: Thu, 10 Dec 2015 14:11:47 +0100 Message-Id: <1449753107-11410-5-git-send-email-uwe@kleine-koenig.org> X-Mailer: git-send-email 2.6.2 In-Reply-To: <1449753107-11410-1-git-send-email-uwe@kleine-koenig.org> References: <1449753107-11410-1-git-send-email-uwe@kleine-koenig.org> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, 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 From: Uwe Kleine-König To allow supporting displays that need some logic to enable power to the display add support for a vcc-supply property to drive a regulator. Signed-off-by: Uwe Kleine-König --- Documentation/devicetree/bindings/video/panel-dpi.txt | 1 + drivers/video/fbdev/omap2/displays-new/panel-dpi.c | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/video/panel-dpi.txt b/Documentation/devicetree/bindings/video/panel-dpi.txt index 1a1d8f6f884f..eaa39d1b1279 100644 --- a/Documentation/devicetree/bindings/video/panel-dpi.txt +++ b/Documentation/devicetree/bindings/video/panel-dpi.txt @@ -8,6 +8,7 @@ Optional properties: - label: a symbolic name for the panel - enable-gpios: panel enable gpio - reset-gpios: GPIO to control the RESET pin +- vcc-supply: phandle of regulator that will be used to enable power to the display Required nodes: - "panel-timing" containing video timings diff --git a/drivers/video/fbdev/omap2/displays-new/panel-dpi.c b/drivers/video/fbdev/omap2/displays-new/panel-dpi.c index 7e2f9e0813dc..65c6d9e6862b 100644 --- a/drivers/video/fbdev/omap2/displays-new/panel-dpi.c +++ b/drivers/video/fbdev/omap2/displays-new/panel-dpi.c @@ -15,6 +15,7 @@ #include #include #include +#include #include