From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomi Valkeinen Date: Thu, 13 Nov 2014 11:51:31 +0000 Subject: Re: [PATCH v2 1/5] video: omapdss: Add opa362 driver Message-Id: <54649B43.1000801@ti.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="PRMatdQC2VUWXWuJrwRcKb0R0pGETr3fh" List-Id: References: <1415830247-31633-1-git-send-email-marek@goldelico.com> <1415830247-31633-2-git-send-email-marek@goldelico.com> In-Reply-To: <1415830247-31633-2-git-send-email-marek@goldelico.com> To: linux-arm-kernel@lists.infradead.org --PRMatdQC2VUWXWuJrwRcKb0R0pGETr3fh Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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). >=20 > 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 encoder as such, but it falls into the same category. > include/video/omap-panel-data.h | 12 + > 4 files changed, 362 insertions(+) > create mode 100644 drivers/video/fbdev/omap2/displays-new/amplifier-op= a362.c >=20 > diff --git a/drivers/video/fbdev/omap2/displays-new/Kconfig b/drivers/v= ideo/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 > =20 > +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. > + > 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) +=3D amplifier-opa362.o > obj-$(CONFIG_DISPLAY_ENCODER_TFP410) +=3D encoder-tfp410.o > obj-$(CONFIG_DISPLAY_ENCODER_TPD12S015) +=3D encoder-tpd12s015.o > obj-$(CONFIG_DISPLAY_CONNECTOR_DVI) +=3D 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 modif= y it > + * under the terms of the GNU General Public License version 2 as publ= ished by > + * the Free Software Foundation. > + */ > + > +#include > +#include > +#include > +#include > +#include > + > +#include