devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Philipp Zabel <p.zabel@pengutronix.de>
To: Daniel Kurtz <djkurtz@chromium.org>
Cc: Mark Rutland <mark.rutland@arm.com>,
	Michael Turquette <mturquette@baylibre.com>,
	dri-devel <dri-devel@lists.freedesktop.org>,
	Jie Qiu <jie.qiu@mediatek.com>,
	Cawa Cheng <cawa.cheng@mediatek.com>,
	Yingjoe Chen <yingjoe.chen@mediatek.com>,
	"open list:OPEN FIRMWARE AND..." <devicetree@vger.kernel.org>,
	Jitao Shi <jitao.shi@mediatek.com>,
	Sasha Hauer <kernel@pengutronix.de>,
	Pawel Moll <pawel.moll@arm.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	YT Shen <yt.shen@mediatek.com>, Rob Herring <robh+dt@kernel.org>,
	"moderated list:ARM/Mediatek SoC support"
	<linux-mediatek@lists.infradead.org>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	Paul Bolle <pebolle@tiscali.nl>,
	Stephen Boyd <sboyd@codeaurora.org>,
	Tomasz Figa <tfiga@chromium.org>,
	Kumar Gala <galak@codeaurora.org>
Subject: Re: [PATCH v8 08/13] arm64: dts: mt8173: Add display subsystem related nodes
Date: Wed, 03 Feb 2016 12:01:40 +0100	[thread overview]
Message-ID: <1454497300.3867.0.camel@pengutronix.de> (raw)
In-Reply-To: <CAGS+omCxd+wm7m-eaFftqN=q5KYVWmkJY0HA3PAVDqGQzUvtMQ@mail.gmail.com>

Hi Daniel,

Am Mittwoch, den 03.02.2016, 00:24 +0800 schrieb Daniel Kurtz:
> Hi Philipp,
> 
> Two more comments below...
> 
> On Tue, Feb 2, 2016 at 4:10 PM, Daniel Kurtz <djkurtz@chromium.org> wrote:
> > On Tue, Jan 5, 2016 at 1:36 AM, Philipp Zabel <p.zabel@pengutronix.de> wrote:
[...]
> >> +
> >> +               dsi0: dsi@1401b000 {
> >> +                       compatible = "mediatek,mt8173-dsi";
> >> +                       reg = <0 0x1401b000 0 0x1000>;
> >> +                       interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_LOW>;
> >> +                       power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>;
> >> +                       clocks = <&mmsys CLK_MM_DSI0_ENGINE>,
> >> +                                <&mmsys CLK_MM_DSI0_DIGITAL>,
> >> +                                <&mipi_tx0>;
> >> +                       clock-names = "engine", "digital", "hs";
> >> +                       phys = <&mipi_tx0>;
> >> +                       phy-names = "dphy";
> 
> I think it might work better if this was also default
> status="disabled", and require the board-specific .dts to enable the
> dsi*.
> This would be useful, for example, boards that use only the MIPI/DSI
> or only HDMI.
> IMHO, it is more clear to have such boards explicit mark the supported
> ports as 'status="okay"' in their .dts, rather than having to mark all
> of the unused ones as disabled.

I'm ok with that, the same should be done for the phys then. To enable
MIPI DSI output on dsi0, the board DT would have to:

	&mipi_tx0 {
		status = "okay";
	};
	&dsi0 {
		status = "okay";
		/* output port here */
	};

To enable HDMI output via dpi0:

	&cec {
		status = "okay";
	};
	&hdmi_phy {
		status = "okay";
	};
	&dpi0 {
		status = "okay";
	};
	&hdmi0 {
		status = "okay";
		/* output port here */
	};

[...]
> >> +               dpi0: dpi@1401d000 {
> >> +                       compatible = "mediatek,mt8173-dpi";
> >> +                       reg = <0 0x1401d000 0 0x1000>;
> >> +                       interrupts = <GIC_SPI 194 IRQ_TYPE_LEVEL_LOW>;
> >> +                       power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>;
> >> +                       clocks = <&mmsys CLK_MM_DPI_PIXEL>,
> >> +                                <&mmsys CLK_MM_DPI_ENGINE>,
> >> +                                <&apmixedsys CLK_APMIXED_TVDPLL>;
> >> +                       clock-names = "pixel", "engine", "pll";
> >> +
> >> +                       port {
> >> +                               dpi0_out: endpoint {
> >> +                                       remote-endpoint = <&hdmi0_in>;
> >
> > nit: At this point in the patch series, you haven't defined hdmi0_in yet.
> > Move this port to "Add HDMI related nodes".
> 
> And, let's mark dpi0 as status="disabled"; by default, and require an
> enabling in the board specific .dts.

Will do.

regards
Philipp


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

  reply	other threads:[~2016-02-03 11:01 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-04 17:36 [PATCH v8 00/13] MT8173 DRM support Philipp Zabel
2016-01-04 17:36 ` [PATCH v8 01/13] dt-bindings: drm/mediatek: Add Mediatek display subsystem dts binding Philipp Zabel
2016-01-04 17:36 ` [PATCH v8 02/13] drm/mediatek: Add DRM Driver for Mediatek SoC MT8173 Philipp Zabel
2016-01-04 17:36 ` [PATCH v8 03/13] drm/mediatek: Add DSI sub driver Philipp Zabel
2016-01-04 17:36 ` [PATCH v8 04/13] drm/mediatek: Add DPI " Philipp Zabel
2016-01-04 17:36 ` [PATCH v8 05/13] dt-bindings: drm/mediatek: Add Mediatek HDMI dts binding Philipp Zabel
2016-01-04 17:36 ` [PATCH v8 06/13] drm/mediatek: Add HDMI support Philipp Zabel
2016-01-04 17:36 ` [PATCH v8 07/13] drm/mediatek: enable hdmi output control bit Philipp Zabel
2016-01-04 17:36 ` [PATCH v8 08/13] arm64: dts: mt8173: Add display subsystem related nodes Philipp Zabel
2016-02-02  8:10   ` Daniel Kurtz
2016-02-02 16:24     ` Daniel Kurtz
2016-02-03 11:01       ` Philipp Zabel [this message]
2016-02-03 11:00     ` Philipp Zabel
2016-02-03 11:01     ` Philipp Zabel
2016-01-04 17:36 ` [PATCH v8 09/13] arm64: dts: mt8173: Add HDMI " Philipp Zabel
2016-01-04 17:36 ` [PATCH v8 10/13] clk: mediatek: make dpi0_sel propagate rate changes Philipp Zabel
2016-01-04 17:36 ` [PATCH v8 11/13] clk: mediatek: Add hdmi_ref HDMI PHY PLL reference clock output Philipp Zabel
2016-01-04 17:36 ` [PATCH v8 12/13] dt-bindings: hdmi-connector: add DDC I2C bus phandle documentation Philipp Zabel
2016-01-04 17:36 ` [PATCH v8 13/13] clk: mediatek: remove hdmitx_dig_cts from TOP clocks Philipp Zabel

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=1454497300.3867.0.camel@pengutronix.de \
    --to=p.zabel@pengutronix.de \
    --cc=cawa.cheng@mediatek.com \
    --cc=devicetree@vger.kernel.org \
    --cc=djkurtz@chromium.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=galak@codeaurora.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=jie.qiu@mediatek.com \
    --cc=jitao.shi@mediatek.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=mark.rutland@arm.com \
    --cc=matthias.bgg@gmail.com \
    --cc=mturquette@baylibre.com \
    --cc=pawel.moll@arm.com \
    --cc=pebolle@tiscali.nl \
    --cc=robh+dt@kernel.org \
    --cc=sboyd@codeaurora.org \
    --cc=tfiga@chromium.org \
    --cc=yingjoe.chen@mediatek.com \
    --cc=yt.shen@mediatek.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).