diff mbox series

[07/60] drm/bridge: simple-bridge: Add support for the TI OP362

Message ID 20190707181937.6250-4-laurent.pinchart@ideasonboard.com (mailing list archive)
State New, archived
Headers show
Series drm/omap: Replace custom display drivers with drm_bridge and drm_panel | expand

Commit Message

Laurent Pinchart July 7, 2019, 6:18 p.m. UTC
The TI OP362 is an analog video amplifier controlled through a GPIO. Add
support for it to the simple-bridge driver.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 drivers/gpu/drm/bridge/simple-bridge.c | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Andrzej Hajda July 9, 2019, 2:32 p.m. UTC | #1
On 07.07.2019 20:18, Laurent Pinchart wrote:
> The TI OP362 is an analog video amplifier controlled through a GPIO. Add
> support for it to the simple-bridge driver.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>

 --
Regards
Andrzej

> ---
>  drivers/gpu/drm/bridge/simple-bridge.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/drivers/gpu/drm/bridge/simple-bridge.c b/drivers/gpu/drm/bridge/simple-bridge.c
> index a7edf3c39627..7495b9bef865 100644
> --- a/drivers/gpu/drm/bridge/simple-bridge.c
> +++ b/drivers/gpu/drm/bridge/simple-bridge.c
> @@ -296,6 +296,11 @@ static const struct of_device_id simple_bridge_match[] = {
>  			.timings = &default_bridge_timings,
>  			.type = DRM_MODE_CONNECTOR_VGA,
>  		},
> +	}, {
> +		.compatible = "ti,opa362",
> +		.data = &(const struct simple_bridge_info) {
> +			.type = DRM_MODE_CONNECTOR_Composite,
> +		},
>  	}, {
>  		.compatible = "ti,ths8135",
>  		.data = &(const struct simple_bridge_info) {
Tomi Valkeinen Aug. 27, 2019, 6:16 a.m. UTC | #2
On 07/07/2019 21:18, Laurent Pinchart wrote:
> The TI OP362 is an analog video amplifier controlled through a GPIO. Add
> support for it to the simple-bridge driver.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
>   drivers/gpu/drm/bridge/simple-bridge.c | 5 +++++
>   1 file changed, 5 insertions(+)
> 
> diff --git a/drivers/gpu/drm/bridge/simple-bridge.c b/drivers/gpu/drm/bridge/simple-bridge.c
> index a7edf3c39627..7495b9bef865 100644
> --- a/drivers/gpu/drm/bridge/simple-bridge.c
> +++ b/drivers/gpu/drm/bridge/simple-bridge.c
> @@ -296,6 +296,11 @@ static const struct of_device_id simple_bridge_match[] = {
>   			.timings = &default_bridge_timings,
>   			.type = DRM_MODE_CONNECTOR_VGA,
>   		},
> +	}, {
> +		.compatible = "ti,opa362",
> +		.data = &(const struct simple_bridge_info) {
> +			.type = DRM_MODE_CONNECTOR_Composite,
> +		},

I have to say I'm pretty clueless about the analog TV, but OMAP DSS 
supports also s-video outputs. But I don't know if OPA362 can be used 
with s-video, or does it dictate composite.

In any case,

Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

  Tomi
Laurent Pinchart Aug. 27, 2019, 7:05 a.m. UTC | #3
Hi Tomi,

On Tue, Aug 27, 2019 at 09:16:42AM +0300, Tomi Valkeinen wrote:
> On 07/07/2019 21:18, Laurent Pinchart wrote:
> > The TI OP362 is an analog video amplifier controlled through a GPIO. Add
> > support for it to the simple-bridge driver.
> > 
> > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > ---
> >   drivers/gpu/drm/bridge/simple-bridge.c | 5 +++++
> >   1 file changed, 5 insertions(+)
> > 
> > diff --git a/drivers/gpu/drm/bridge/simple-bridge.c b/drivers/gpu/drm/bridge/simple-bridge.c
> > index a7edf3c39627..7495b9bef865 100644
> > --- a/drivers/gpu/drm/bridge/simple-bridge.c
> > +++ b/drivers/gpu/drm/bridge/simple-bridge.c
> > @@ -296,6 +296,11 @@ static const struct of_device_id simple_bridge_match[] = {
> >   			.timings = &default_bridge_timings,
> >   			.type = DRM_MODE_CONNECTOR_VGA,
> >   		},
> > +	}, {
> > +		.compatible = "ti,opa362",
> > +		.data = &(const struct simple_bridge_info) {
> > +			.type = DRM_MODE_CONNECTOR_Composite,
> > +		},
> 
> I have to say I'm pretty clueless about the analog TV, but OMAP DSS 
> supports also s-video outputs. But I don't know if OPA362 can be used 
> with s-video, or does it dictate composite.

The OPA362 has a single amplifier, so it can't handle S-Video by itself.
Using two instances of the chip may work for such a use case (I haven't
checked in details), but that would require support for non-linear
chains of bridges, which isn't supported today. Let's revisit this topic
when needed (hopefully never :-)).

> In any case,
> 
> Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/bridge/simple-bridge.c b/drivers/gpu/drm/bridge/simple-bridge.c
index a7edf3c39627..7495b9bef865 100644
--- a/drivers/gpu/drm/bridge/simple-bridge.c
+++ b/drivers/gpu/drm/bridge/simple-bridge.c
@@ -296,6 +296,11 @@  static const struct of_device_id simple_bridge_match[] = {
 			.timings = &default_bridge_timings,
 			.type = DRM_MODE_CONNECTOR_VGA,
 		},
+	}, {
+		.compatible = "ti,opa362",
+		.data = &(const struct simple_bridge_info) {
+			.type = DRM_MODE_CONNECTOR_Composite,
+		},
 	}, {
 		.compatible = "ti,ths8135",
 		.data = &(const struct simple_bridge_info) {