Devicetree
 help / color / mirror / Atom feed
From: Sebastian Reichel <sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	"Benoît Cousson"
	<bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	"Marcel Partap" <mpartap-hi6Y0CQ0nG0@public.gmane.org>,
	"Michael Scott"
	<michael.scott-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	"Tomi Valkeinen" <tomi.valkeinen-l0cyMroinI0@public.gmane.org>
Subject: Re: [PATCH 5/6] ARM: dts: omap4-droid4: Add HDMI support
Date: Thu, 16 Mar 2017 23:43:56 +0100	[thread overview]
Message-ID: <20170316224355.dvrxccmywesvyi47@earth> (raw)
In-Reply-To: <20170305054359.8293-6-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 3069 bytes --]

Hi,

On Sat, Mar 04, 2017 at 09:43:58PM -0800, Tony Lindgren wrote:
> We can get HDMI working as long as the 5V regulator is on. There is
> probably an encoder chip there too, but so far no idea what it might be.
> Let's keep the 5V HDMI regulator always enabled for now as otherwise we
> cannot detect the monitor properly.

Tested-by: Sebastian Reichel <sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>

-- Sebastian

>  arch/arm/boot/dts/omap4-droid4-xt894.dts | 65 ++++++++++++++++++++++++++++++++
>  1 file changed, 65 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts
> --- a/arch/arm/boot/dts/omap4-droid4-xt894.dts
> +++ b/arch/arm/boot/dts/omap4-droid4-xt894.dts
> @@ -35,6 +35,37 @@
>  		gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;	/* gpio50 */
>  	};
>  
> +	hdmi0: connector {
> +		compatible = "hdmi-connector";
> +		pinctrl-0 = <&hdmi_hpd_gpio>;
> +		pinctrl-names = "default";
> +		label = "hdmi";
> +		type = "d";
> +
> +		hpd-gpios = <&gpio2 31 GPIO_ACTIVE_HIGH>;	/* gpio63 */
> +
> +		port {
> +			hdmi_connector_in: endpoint {
> +				remote-endpoint = <&hdmi_out>;
> +			};
> +		};
> +	};
> +
> +	/*
> +	 * HDMI 5V regulator probably sourced from battery. Let's keep
> +	 * keep this as always enabled for HDMI to work until we've
> +	 * figured what the encoder chip is.
> +	 */
> +	hdmi_regulator: regulator-hdmi {
> +		compatible = "regulator-fixed";
> +		regulator-name = "hdmi";
> +		regulator-min-microvolt = <5000000>;
> +		regulator-max-microvolt = <5000000>;
> +		gpio = <&gpio2 27 GPIO_ACTIVE_HIGH>;	/* gpio59 */
> +		enable-active-high;
> +		regulator-always-on;
> +	};
> +
>  	/* This is probably coming straight from the battery.. */
>  	wl12xx_vmmc: regulator-wl12xx {
>  		compatible = "regulator-fixed";
> @@ -67,6 +98,10 @@
>  	};
>  };
>  
> +&dss {
> +	status = "okay";
> +};
> +
>  &gpio6 {
>  	touchscreen_reset {
>  		gpio-hog;
> @@ -81,6 +116,20 @@
>  	status = "disabled";
>  };
>  
> +&hdmi {
> +	status = "okay";
> +	pinctrl-0 = <&dss_hdmi_pins>;
> +	pinctrl-names = "default";
> +	vdda-supply = <&vdac>;
> +
> +	port {
> +		hdmi_out: endpoint {
> +			remote-endpoint = <&hdmi_connector_in>;
> +			lanes = <1 0 3 2 5 4 7 6>;
> +		};
> +	};
> +};
> +
>  &i2c1 {
>  	tmp105@48 {
>  		compatible = "ti,tmp105";
> @@ -249,6 +298,22 @@
>  
>  &omap4_pmx_core {
>  
> +	/* hdmi_hpd.gpio_63 */
> +	hdmi_hpd_gpio: pinmux_hdmi_hpd_pins {
> +		pinctrl-single,pins = <
> +                OMAP4_IOPAD(0x098, PIN_INPUT | MUX_MODE3)
> +		>;
> +	};
> +
> +	/* hdmi_cec.hdmi_cec, hdmi_scl.hdmi_scl, hdmi_sda.hdmi_sda */
> +	dss_hdmi_pins: pinmux_dss_hdmi_pins {
> +		pinctrl-single,pins = <
> +		OMAP4_IOPAD(0x09a, PIN_INPUT_PULLUP | MUX_MODE0)
> +		OMAP4_IOPAD(0x09c, PIN_INPUT | MUX_MODE0)
> +		OMAP4_IOPAD(0x09e, PIN_INPUT | MUX_MODE0)
> +		>;
> +	};
> +
>  	/* gpmc_ncs0.gpio_50 */
>  	poweroff_gpio: pinmux_poweroff_pins {
>  		pinctrl-single,pins = <
> -- 
> 2.11.1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2017-03-16 22:43 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-05  5:43 [PATCH 0/6] Device tree changes to add more droid 4 devices Tony Lindgren
     [not found] ` <20170305054359.8293-1-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-03-05  5:43   ` [PATCH 1/6] ARM: dts: omap4-droid4: Add touchscreen Tony Lindgren
2017-03-05  5:43   ` [PATCH 2/6] ARM: dts: omap4-droid4: Add LCD backlight Tony Lindgren
     [not found]     ` <20170305054359.8293-3-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-03-05 23:24       ` Kim, Milo
2017-03-19  1:18       ` Sebastian Reichel
2017-03-20  2:30         ` Kim, Milo
2017-03-05  5:43   ` [PATCH 3/6] ARM: dts: omap4-droid4: Add GPIO poweroff Tony Lindgren
     [not found]     ` <20170305054359.8293-4-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-03-19  1:19       ` Sebastian Reichel
2017-03-05  5:43   ` [PATCH 4/6] ARM: dts: omap4-droid4: Add tmp105 sensor for droid 4 Tony Lindgren
     [not found]     ` <20170305054359.8293-5-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-03-19  1:26       ` Sebastian Reichel
2017-03-05  5:43   ` [PATCH 5/6] ARM: dts: omap4-droid4: Add HDMI support Tony Lindgren
     [not found]     ` <20170305054359.8293-6-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-03-16 22:43       ` Sebastian Reichel [this message]
2017-03-05  5:43   ` [PATCH 6/6] ARM: dts: omap4-droid4: Add LCD Tony Lindgren
     [not found]     ` <20170305054359.8293-7-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-03-19  1:29       ` Sebastian Reichel
2017-03-19 16:10         ` Tony Lindgren
     [not found]           ` <20170319161030.GA20572-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-03-19 22:55             ` Sebastian Reichel
2017-03-20  7:52               ` Tomi Valkeinen
     [not found]                 ` <9c4a5d88-4d2a-2120-9fdf-f3fbba69147c-l0cyMroinI0@public.gmane.org>
2017-03-23  6:31                   ` Sebastian Reichel
2017-03-23  7:08                     ` Tomi Valkeinen
     [not found]                       ` <b4666cd6-9925-6143-41c3-591e68c48456-l0cyMroinI0@public.gmane.org>
2017-03-23  8:42                         ` Sebastian Reichel

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=20170316224355.dvrxccmywesvyi47@earth \
    --to=sre-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
    --cc=bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=michael.scott-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=mpartap-hi6Y0CQ0nG0@public.gmane.org \
    --cc=tomi.valkeinen-l0cyMroinI0@public.gmane.org \
    --cc=tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox