Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754805AbbKQUcb (ORCPT ); Tue, 17 Nov 2015 15:32:31 -0500 Received: from smtp01.smtpout.orange.fr ([80.12.242.123]:46631 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752514AbbKQUc2 (ORCPT ); Tue, 17 Nov 2015 15:32:28 -0500 X-ME-Helo: belgarion.home X-ME-Date: Tue, 17 Nov 2015 21:32:25 +0100 X-ME-IP: 90.5.15.76 From: Robert Jarzmik To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Robert Jarzmik Subject: [PATCH v5 2/2] video: fbdev: pxafb: initial devicetree conversion Date: Tue, 17 Nov 2015 21:32:17 +0100 Message-Id: <1447792337-13876-2-git-send-email-robert.jarzmik@free.fr> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1447792337-13876-1-git-send-email-robert.jarzmik@free.fr> References: <1447792337-13876-1-git-send-email-robert.jarzmik@free.fr> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7338 Lines: 251 This patch brings a first support of pxa framebuffer devices to a devicetree pxa platform, as was before platform data. There are restrictions with this port, the biggest one being the lack of support of smart panels. Moreover the conversion doesn't provide a way to declare multiple framebuffer configurations with different bits per pixel, only the LCD hardware bus width is used. The patch was tested on both pxa25x, pxa27x and pxa3xx platform (namely lubbock, mainstone and zylonite). Signed-off-by: Robert Jarzmik --- Since v1: Philipp's review: of_graph usage Since v3: of_device_id sentinel, and all compatible ids added Since v4: fixed of_device_id table : rebase error on my side, with braces which were incorrectly added --- drivers/video/fbdev/Kconfig | 2 + drivers/video/fbdev/pxafb.c | 163 +++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 162 insertions(+), 3 deletions(-) diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig index e6d16d65e4e6..3160ff6bed24 100644 --- a/drivers/video/fbdev/Kconfig +++ b/drivers/video/fbdev/Kconfig @@ -1880,6 +1880,8 @@ config FB_PXA select FB_CFB_FILLRECT select FB_CFB_COPYAREA select FB_CFB_IMAGEBLIT + select VIDEOMODE_HELPERS if OF + select FB_MODE_HELPERS if OF ---help--- Frame buffer driver for the built-in LCD controller in the Intel PXA2x0 processor. diff --git a/drivers/video/fbdev/pxafb.c b/drivers/video/fbdev/pxafb.c index ed4b1a5dc306..9992ce0c651e 100644 --- a/drivers/video/fbdev/pxafb.c +++ b/drivers/video/fbdev/pxafb.c @@ -55,6 +55,9 @@ #include #include #include +#include +#include