Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933443AbaKMQ0b (ORCPT ); Thu, 13 Nov 2014 11:26:31 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.163]:47040 "EHLO mo4-p00-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753304AbaKMQ03 convert rfc822-to-8bit (ORCPT ); Thu, 13 Nov 2014 11:26:29 -0500 X-RZG-AUTH: :JGIXVUS7cutRB/49FwqZ7WcKdUCnXG6JabOfSXKWrat/gtPsyuSM X-RZG-CLASS-ID: mo00 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [PATCH v2 1/5] video: omapdss: Add opa362 driver From: "Dr. H. Nikolaus Schaller" In-Reply-To: <54649B43.1000801@ti.com> Date: Thu, 13 Nov 2014 17:25:41 +0100 Cc: Marek Belisko , robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, bcousson@baylibre.com, tony@atomide.com, linux@arm.linux.org.uk, plagnioj@jcrosoft.com, grant.likely@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, gta04-owner@goldelico.com Content-Transfer-Encoding: 8BIT Message-Id: <9FD016B8-4EA2-4A0D-B790-6494AB449B31@goldelico.com> References: <1415830247-31633-1-git-send-email-marek@goldelico.com> <1415830247-31633-2-git-send-email-marek@goldelico.com> <54649B43.1000801@ti.com> To: Tomi Valkeinen X-Mailer: Apple Mail (2.1878.6) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Am 13.11.2014 um 12:51 schrieb Tomi Valkeinen : > On 13/11/14 00:10, Marek Belisko wrote: >> opa362 is amplifier for video and can be connected to the tvout pads >> of the OMAP3. It has one gpio control for enable/disable of the output >> (high impedance). >> >> Signed-off-by: H. Nikolaus Schaller >> --- >> drivers/video/fbdev/omap2/displays-new/Kconfig | 6 + >> drivers/video/fbdev/omap2/displays-new/Makefile | 1 + >> .../fbdev/omap2/displays-new/amplifier-opa362.c | 343 +++++++++++++++++++++ > > I think it would be better to rename this to encoder-opa362.c. It's not When developing this driver we did simply rename the encoder-tfp410 file, but thent hough that it does not fit into the ?encoder? category, because we would expect something digital or digital to analog ?encoding? which it does not. > encoder as such, but it falls into the same category. But we can change it. > >> include/video/omap-panel-data.h | 12 + >> 4 files changed, 362 insertions(+) >> create mode 100644 drivers/video/fbdev/omap2/displays-new/amplifier-opa362.c >> >> diff --git a/drivers/video/fbdev/omap2/displays-new/Kconfig b/drivers/video/fbdev/omap2/displays-new/Kconfig >> index e6cfc38..211b3ec 100644 >> --- a/drivers/video/fbdev/omap2/displays-new/Kconfig >> +++ b/drivers/video/fbdev/omap2/displays-new/Kconfig >> @@ -1,6 +1,12 @@ >> menu "OMAP Display Device Drivers (new device model)" >> depends on OMAP2_DSS >> >> +config DISPLAY_AMPLIFIER_OPA362 > > Here also use ENCODER instead. > >> + tristate "external analog amplifier with output disable/high-Z (e.g. OPA362)" >> + help >> + Driver to enable an external analog TV amplifier (e.g. OPA362) >> + through a GPIO. > > The indentation above seems funny. > > The text looks a bit odd. So is this a driver for OPA362, or is this a > generic driver for any similar devices? Most of the names and code makes > me think this is a driver for OPA362, but the text above quite clearly > gives the impression that this is a driver for any analog video amp, > with single enable gpio. Hm. We can imagine that there are other devices with similar functionality and gpio but we have not tested any. So it is indeed better to describe it as a pure OPA362 driver. > >> + >> config DISPLAY_ENCODER_TFP410 >> tristate "TFP410 DPI to DVI Encoder" >> help >> diff --git a/drivers/video/fbdev/omap2/displays-new/Makefile b/drivers/video/fbdev/omap2/displays-new/Makefile >> index 0323a8a..b311542 100644 >> --- a/drivers/video/fbdev/omap2/displays-new/Makefile >> +++ b/drivers/video/fbdev/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/fbdev/omap2/displays-new/amplifier-opa362.c b/drivers/video/fbdev/omap2/displays-new/amplifier-opa362.c >> new file mode 100644 >> index 0000000..8065a28 >> --- /dev/null >> +++ b/drivers/video/fbdev/omap2/displays-new/amplifier-opa362.c >> @@ -0,0 +1,343 @@ >> +/* >> + * OPA362 analog video amplifier with output/power control >> + * >> + * Copyright (C) 2014 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 >> + >> +#include