From patchwork Sun Jun 24 15:38:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Mack X-Patchwork-Id: 10484687 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2A2F56023A for ; Sun, 24 Jun 2018 16:06:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 103ED2882C for ; Sun, 24 Jun 2018 16:06:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0541B28878; Sun, 24 Jun 2018 16:06:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 94F6A2882C for ; Sun, 24 Jun 2018 16:06:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755739AbeFXPi3 (ORCPT ); Sun, 24 Jun 2018 11:38:29 -0400 Received: from mail.bugwerft.de ([46.23.86.59]:50634 "EHLO mail.bugwerft.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755729AbeFXPi2 (ORCPT ); Sun, 24 Jun 2018 11:38:28 -0400 Received: from localhost.localdomain (pD95EF54E.dip0.t-ipconnect.de [217.94.245.78]) by mail.bugwerft.de (Postfix) with ESMTPSA id D846A28B1A2; Sun, 24 Jun 2018 15:35:17 +0000 (UTC) From: Daniel Mack To: b.zolnierkie@samsung.com, tomi.valkeinen@ti.com Cc: linux-fbdev@vger.kernel.org, robert.jarzmik@free.fr, Daniel Mack Subject: [PATCH 4/4] video: fbdev: pxafb: Add support for lcd-supply regulator Date: Sun, 24 Jun 2018 17:38:17 +0200 Message-Id: <20180624153817.24387-4-daniel@zonque.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180624153817.24387-1-daniel@zonque.org> References: <20180624153817.24387-1-daniel@zonque.org> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Optionally obtain a lcd-supply regulator during probe and use it in __pxafb_lcd_power() to switch the power supply of LCD panels. This helps boards booted from DT to control such voltages without callbacks. Signed-off-by: Daniel Mack Reviewed-by: Robert Jarzmik --- .../bindings/display/marvell,pxa2xx-lcdc.txt | 3 +++ drivers/video/fbdev/pxafb.c | 24 +++++++++++++++++++ drivers/video/fbdev/pxafb.h | 3 +++ 3 files changed, 30 insertions(+) diff --git a/Documentation/devicetree/bindings/display/marvell,pxa2xx-lcdc.txt b/Documentation/devicetree/bindings/display/marvell,pxa2xx-lcdc.txt index f79641bd5f18..45ffd6c41748 100644 --- a/Documentation/devicetree/bindings/display/marvell,pxa2xx-lcdc.txt +++ b/Documentation/devicetree/bindings/display/marvell,pxa2xx-lcdc.txt @@ -10,6 +10,9 @@ Required properties: - interrupts : framebuffer controller interrupt. - clocks: phandle to input clocks +Optional properties: + - lcd-supply: A phandle to a power regulator that controls the LCD voltage. + Required nodes: - port: connection to the LCD panel (see video-interfaces.txt) This node must have its properties bus-width and remote-endpoint set. diff --git a/drivers/video/fbdev/pxafb.c b/drivers/video/fbdev/pxafb.c index 68459b07d442..bbed039617a4 100644 --- a/drivers/video/fbdev/pxafb.c +++ b/drivers/video/fbdev/pxafb.c @@ -56,6 +56,7 @@ #include #include #include +#include #include