From patchwork Mon Oct 14 21:02:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Belisko X-Patchwork-Id: 3040431 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5E3709F243 for ; Mon, 14 Oct 2013 21:03:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E521C2021C for ; Mon, 14 Oct 2013 21:03:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B10CA2021A for ; Mon, 14 Oct 2013 21:03:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932259Ab3JNVDF (ORCPT ); Mon, 14 Oct 2013 17:03:05 -0400 Received: from mail-ee0-f51.google.com ([74.125.83.51]:64108 "EHLO mail-ee0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932469Ab3JNVDC (ORCPT ); Mon, 14 Oct 2013 17:03:02 -0400 Received: by mail-ee0-f51.google.com with SMTP id c1so3625046eek.38 for ; Mon, 14 Oct 2013 14:03:00 -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=Pqe9llXlq6Wb/DXFEZB5sTgnZBfpCT+gRgf3wYnwP+k=; b=rcAAyrgPW+rch4SaKW9fYUYFwOHXKvdUZb/XUacPER/u4GjGAjVJM5J6MZIvztqLPT U/ybrTCwkVMds1odX755sblh6XmM35oDWic76t66RLi9pynutNdovOk5fsZTQ2cIxNfU ozbhysonvFRH6sJ04gnRABvL0r1QecXsE+/Qc5RnLRN/sDqQKyYGePgJHpRyeeNporFe pUtZH3JbbiqF0T8JxJ8obkWBcK4kPIC5PVE3Frf5UHiflZvnvqdjyiDZkr+Sl4o9cDwh 8c9fvcIl262Qg6VsUQgJprgHaOyi0SzgkeWYCyDTx6fpjyCB0aR0pN1Of16i306SNTcK F9tw== X-Received: by 10.14.174.131 with SMTP id x3mr20236542eel.25.1381784580262; Mon, 14 Oct 2013 14:03:00 -0700 (PDT) Received: from nb.lan (ip-85.162.84.16.o2inet.sk. [85.162.84.16]) by mx.google.com with ESMTPSA id r48sm157935743eev.14.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Oct 2013 14:02:59 -0700 (PDT) From: Marek Belisko To: tony@atomide.com, linux@arm.linux.org.uk, tomi.valkeinen@ti.com, plagnioj@jcrosoft.com Cc: linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, neilb@suse.de, hns@goldelico.com, Marek Belisko Subject: [PATCH 3/3] omapdss: Add OPA362 analog video amplifier driver. Date: Mon, 14 Oct 2013 23:02:35 +0200 Message-Id: <1381784555-18344-4-git-send-email-marek@goldelico.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1381784555-18344-1-git-send-email-marek@goldelico.com> References: <1381784555-18344-1-git-send-email-marek@goldelico.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=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, KHOP_BIG_TO_CC,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID, 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 This driver add handlign for opa362 chip which is video amplifier with internal gain and filter. Enable/disable is controlled via single gpio. This driver was tested on gta04 board. Signed-off-by: Marek Belisko Signed-off-by: H. Nikolaus Schaller --- drivers/video/omap2/displays-new/Kconfig | 6 + drivers/video/omap2/displays-new/Makefile | 1 + .../video/omap2/displays-new/amplifier-opa362.c | 294 +++++++++++++++++++++ include/video/omap-panel-data.h | 17 ++ 4 files changed, 318 insertions(+) create mode 100644 drivers/video/omap2/displays-new/amplifier-opa362.c diff --git a/drivers/video/omap2/displays-new/Kconfig b/drivers/video/omap2/displays-new/Kconfig index 6c90885..5097640 100644 --- a/drivers/video/omap2/displays-new/Kconfig +++ b/drivers/video/omap2/displays-new/Kconfig @@ -1,6 +1,12 @@ menu "OMAP Display Device Drivers (new device model)" depends on OMAP2_DSS +config DISPLAY_AMPLIFIER_OPA362 + tristate "Analog amplifier with output disable/high-Z" + help + Driver to enable an external analog TV amplifier (e.g. OPA362) + through a GPIO. + config DISPLAY_ENCODER_TFP410 tristate "TFP410 DPI to DVI Encoder" help diff --git a/drivers/video/omap2/displays-new/Makefile b/drivers/video/omap2/displays-new/Makefile index 5aeb11b..2e8af8f 100644 --- a/drivers/video/omap2/displays-new/Makefile +++ b/drivers/video/omap2/displays-new/Makefile @@ -1,3 +1,4 @@ +obj-$(CONFIG_DISPLAY_AMPLIFIER_OPA362) += amplifier-opa362.o obj-$(CONFIG_DISPLAY_ENCODER_TFP410) += encoder-tfp410.o obj-$(CONFIG_DISPLAY_ENCODER_TPD12S015) += encoder-tpd12s015.o obj-$(CONFIG_DISPLAY_CONNECTOR_DVI) += connector-dvi.o diff --git a/drivers/video/omap2/displays-new/amplifier-opa362.c b/drivers/video/omap2/displays-new/amplifier-opa362.c new file mode 100644 index 0000000..677499c --- /dev/null +++ b/drivers/video/omap2/displays-new/amplifier-opa362.c @@ -0,0 +1,294 @@ +/* + * OPA362 analog video amplifier with output/power control + * + * Copyright (C) 2013 Golden Delicious Computers + * Author: H. Nikolaus Schaller + * + * based on encoder-tfp410 + * + * Copyright (C) 2013 Texas Instruments + * Author: Tomi Valkeinen + * + * 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