From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753225Ab3A3DDc (ORCPT ); Tue, 29 Jan 2013 22:03:32 -0500 Received: from hqemgate03.nvidia.com ([216.228.121.140]:13606 "EHLO hqemgate03.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753147Ab3A3DCv (ORCPT ); Tue, 29 Jan 2013 22:02:51 -0500 X-PGP-Universal: processed; by hqnvupgp07.nvidia.com on Tue, 29 Jan 2013 19:02:21 -0800 From: Alexandre Courbot To: Laurent Pinchart , Thierry Reding , Stephen Warren , Mark Zhang CC: , , , , Alexandre Courbot Subject: [RFC 1/4] video: panel: add CLAA101WA01A panel support Date: Wed, 30 Jan 2013 12:02:16 +0900 Message-ID: <1359514939-15653-2-git-send-email-acourbot@nvidia.com> X-Mailer: git-send-email 1.8.1.1 In-Reply-To: <1359514939-15653-1-git-send-email-acourbot@nvidia.com> References: <1359514939-15653-1-git-send-email-acourbot@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for the Chunghwa CLAA101WA01A display panel. Signed-off-by: Alexandre Courbot --- .../video/display/chunghwa,claa101wa01a.txt | 8 + drivers/video/display/Kconfig | 8 + drivers/video/display/Makefile | 1 + drivers/video/display/panel-claa101wa01a.c | 209 +++++++++++++++++++++ 4 files changed, 226 insertions(+) create mode 100644 Documentation/devicetree/bindings/video/display/chunghwa,claa101wa01a.txt create mode 100644 drivers/video/display/panel-claa101wa01a.c diff --git a/Documentation/devicetree/bindings/video/display/chunghwa,claa101wa01a.txt b/Documentation/devicetree/bindings/video/display/chunghwa,claa101wa01a.txt new file mode 100644 index 0000000..cfdc7fd --- /dev/null +++ b/Documentation/devicetree/bindings/video/display/chunghwa,claa101wa01a.txt @@ -0,0 +1,8 @@ +Chunghwa CLAA101WA01A Display Panel + +Required properties: +- compatible: "chunghwa,claa101wa01a" +- pnl-supply: regulator controlling power supply to the panel +- bl-supply: regulator controlling power supply to the backlight +- pnl-enable-gpios: GPIO that enables the panel +- bl-enable-gpios: GPIO that enables the backlight diff --git a/drivers/video/display/Kconfig b/drivers/video/display/Kconfig index 9ca2e60..6902abb 100644 --- a/drivers/video/display/Kconfig +++ b/drivers/video/display/Kconfig @@ -32,4 +32,12 @@ config DISPLAY_PANEL_R61517 If you are in doubt, say N. +config DISPLAY_PANEL_CLAA101WA01A + tristate "Chunghwa CLAA101WA01A Display Panel" + select BACKLIGHT_PWM + ---help--- + Support for the Chunghwa CLAA101WA01A Display Panel. + + If you are in doubt, say N. + endif # DISPLAY_CORE diff --git a/drivers/video/display/Makefile b/drivers/video/display/Makefile index ec557a1..19084a2 100644 --- a/drivers/video/display/Makefile +++ b/drivers/video/display/Makefile @@ -2,3 +2,4 @@ obj-$(CONFIG_DISPLAY_CORE) += display-core.o obj-$(CONFIG_DISPLAY_PANEL_DPI) += panel-dpi.o obj-$(CONFIG_DISPLAY_PANEL_R61505) += panel-r61505.o obj-$(CONFIG_DISPLAY_PANEL_R61517) += panel-r61517.o +obj-$(CONFIG_DISPLAY_PANEL_CLAA101WA01A) += panel-claa101wa01a.o diff --git a/drivers/video/display/panel-claa101wa01a.c b/drivers/video/display/panel-claa101wa01a.c new file mode 100644 index 0000000..93ae86b --- /dev/null +++ b/drivers/video/display/panel-claa101wa01a.c @@ -0,0 +1,209 @@ +/* + * CLAA101WA01A Display Panel + * + * Copyright (C) 2013 NVIDIA CORPORATION. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include