All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: linux-omap@vger.kernel.org, devicetree@vger.kernel.org,
	robh+dt@kernel.org, mark.rutland@arm.com,
	dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 1/4] ARM: dts: am437x-gp-evm: add HDMI support
Date: Thu, 12 Dec 2019 09:21:04 -0800	[thread overview]
Message-ID: <20191212172104.GY35479@atomide.com> (raw)
In-Reply-To: <20191125131100.9839-1-tomi.valkeinen@ti.com>

Hi,

* Tomi Valkeinen <tomi.valkeinen@ti.com> [191125 05:11]:
> Add HDMI support for AM437x GP EVM. The HDMI uses SiI9022 HDMI encoder,
> and is mutually exclusive with the LCD. The choice between LCD and HDMI
> is made by booting either with am437x-gp-evm.dtb or
> am437x-gp-evm-hdmi.dtb.

So Linux kernel needs a new board device tree file to toggle a GPIO line
to switch between LCD mode and HDMI?

That does not sound very user friendly for something that's supposed
to be hot pluggabe :)

> +/* Override SelLCDorHDMI from am437x-gp-evm.dts to select HDMI */
> +&gpio5 {
> +	p8 {
> +		output-low;
> +	};
> +};

How about just leave the gpio unconfigured and document that a userspace
tool or /sys/kernel/debug/gpio is needed to toggle between the modes?

Regards,

Tony

WARNING: multiple messages have this Message-ID (diff)
From: Tony Lindgren <tony@atomide.com>
To: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: mark.rutland@arm.com, devicetree@vger.kernel.org,
	linux-omap@vger.kernel.org, dri-devel@lists.freedesktop.org,
	robh+dt@kernel.org
Subject: Re: [PATCH 1/4] ARM: dts: am437x-gp-evm: add HDMI support
Date: Thu, 12 Dec 2019 09:21:04 -0800	[thread overview]
Message-ID: <20191212172104.GY35479@atomide.com> (raw)
In-Reply-To: <20191125131100.9839-1-tomi.valkeinen@ti.com>

Hi,

* Tomi Valkeinen <tomi.valkeinen@ti.com> [191125 05:11]:
> Add HDMI support for AM437x GP EVM. The HDMI uses SiI9022 HDMI encoder,
> and is mutually exclusive with the LCD. The choice between LCD and HDMI
> is made by booting either with am437x-gp-evm.dtb or
> am437x-gp-evm-hdmi.dtb.

So Linux kernel needs a new board device tree file to toggle a GPIO line
to switch between LCD mode and HDMI?

That does not sound very user friendly for something that's supposed
to be hot pluggabe :)

> +/* Override SelLCDorHDMI from am437x-gp-evm.dts to select HDMI */
> +&gpio5 {
> +	p8 {
> +		output-low;
> +	};
> +};

How about just leave the gpio unconfigured and document that a userspace
tool or /sys/kernel/debug/gpio is needed to toggle between the modes?

Regards,

Tony

WARNING: multiple messages have this Message-ID (diff)
From: Tony Lindgren <tony@atomide.com>
To: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: mark.rutland@arm.com, devicetree@vger.kernel.org,
	linux-omap@vger.kernel.org, dri-devel@lists.freedesktop.org,
	robh+dt@kernel.org
Subject: Re: [PATCH 1/4] ARM: dts: am437x-gp-evm: add HDMI support
Date: Thu, 12 Dec 2019 09:21:04 -0800	[thread overview]
Message-ID: <20191212172104.GY35479@atomide.com> (raw)
In-Reply-To: <20191125131100.9839-1-tomi.valkeinen@ti.com>

Hi,

* Tomi Valkeinen <tomi.valkeinen@ti.com> [191125 05:11]:
> Add HDMI support for AM437x GP EVM. The HDMI uses SiI9022 HDMI encoder,
> and is mutually exclusive with the LCD. The choice between LCD and HDMI
> is made by booting either with am437x-gp-evm.dtb or
> am437x-gp-evm-hdmi.dtb.

So Linux kernel needs a new board device tree file to toggle a GPIO line
to switch between LCD mode and HDMI?

That does not sound very user friendly for something that's supposed
to be hot pluggabe :)

> +/* Override SelLCDorHDMI from am437x-gp-evm.dts to select HDMI */
> +&gpio5 {
> +	p8 {
> +		output-low;
> +	};
> +};

How about just leave the gpio unconfigured and document that a userspace
tool or /sys/kernel/debug/gpio is needed to toggle between the modes?

Regards,

Tony
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2019-12-12 17:21 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-25 13:10 [PATCH 1/4] ARM: dts: am437x-gp-evm: add HDMI support Tomi Valkeinen
2019-11-25 13:10 ` Tomi Valkeinen
2019-11-25 13:10 ` Tomi Valkeinen
2019-11-25 13:10 ` [PATCH 2/4] ARM: dts: am437x-epos-evm: " Tomi Valkeinen
2019-11-25 13:10   ` Tomi Valkeinen
2019-11-25 13:10   ` Tomi Valkeinen
2019-11-25 13:10 ` [PATCH 3/4] ARM: dts: dra76-evm: add HDMI output Tomi Valkeinen
2019-11-25 13:10   ` Tomi Valkeinen
2019-11-25 13:10   ` Tomi Valkeinen
2019-11-25 13:11 ` [PATCH 4/4] ARM: dts: am57xx-idk-common: add HDMI to the common dtsi Tomi Valkeinen
2019-11-25 13:11   ` Tomi Valkeinen
2019-11-25 13:11   ` Tomi Valkeinen
2019-12-12 17:21 ` Tony Lindgren [this message]
2019-12-12 17:21   ` [PATCH 1/4] ARM: dts: am437x-gp-evm: add HDMI support Tony Lindgren
2019-12-12 17:21   ` Tony Lindgren
2019-12-12 17:31   ` Tony Lindgren
2019-12-12 17:31     ` Tony Lindgren
2019-12-12 17:31     ` Tony Lindgren
2019-12-13  9:24     ` Tomi Valkeinen
2019-12-13  9:24       ` Tomi Valkeinen
2019-12-13  9:24       ` Tomi Valkeinen
2019-12-13 10:42       ` Laurent Pinchart
2019-12-13 10:42         ` Laurent Pinchart
2019-12-13 10:42         ` Laurent Pinchart
2019-12-13 10:56         ` Tomi Valkeinen
2019-12-13 10:56           ` Tomi Valkeinen
2019-12-13 10:56           ` Tomi Valkeinen
2019-12-13 11:42           ` Laurent Pinchart
2019-12-13 11:42             ` Laurent Pinchart
2019-12-13 11:42             ` Laurent Pinchart
2019-12-13 12:04             ` Tomi Valkeinen
2019-12-13 12:04               ` Tomi Valkeinen
2019-12-13 12:04               ` Tomi Valkeinen
2019-12-13 12:28               ` Laurent Pinchart
2019-12-13 12:28                 ` Laurent Pinchart
2019-12-13 12:28                 ` Laurent Pinchart
2019-12-13 12:33                 ` Tomi Valkeinen
2019-12-13 12:33                   ` Tomi Valkeinen
2019-12-13 12:33                   ` Tomi Valkeinen
2019-12-13 14:57                   ` Tony Lindgren
2019-12-13 14:57                     ` Tony Lindgren
2019-12-13 14:57                     ` Tony Lindgren
2019-12-13 12:36     ` Tomi Valkeinen
2019-12-13 12:36       ` Tomi Valkeinen
2019-12-13 12:36       ` Tomi Valkeinen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191212172104.GY35479@atomide.com \
    --to=tony@atomide.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=tomi.valkeinen@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.