public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Maxime Ripard <maxime.ripard-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org>
To: "Jernej Škrabec" <jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
Cc: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>,
	Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	David Airlie <airlied-cv59FeDIM0c@public.gmane.org>,
	Gustavo Padovan <gustavo-THi1TnShQwVAfugRpC6u6w@public.gmane.org>,
	Maarten Lankhorst
	<maarten.lankhorst-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>,
	Sean Paul <seanpaul-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>,
	Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
	dri-devel
	<dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>,
	devicetree <devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	linux-arm-kernel
	<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
	linux-kernel
	<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	linux-clk <linux-clk-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	linux-sunxi <linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Re: [PATCH v3 09/24] drm/sun4i: Don't skip TCONs if they don't have channel 0
Date: Mon, 9 Jul 2018 10:59:30 +0200	[thread overview]
Message-ID: <20180709085930.dgcxrs3jqcrhu5gm@flea> (raw)
In-Reply-To: <1699738.FoQmAThxyL@jernej-laptop>

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

On Thu, Jul 05, 2018 at 10:03:35PM +0200, Jernej Škrabec wrote:
> Dne četrtek, 05. julij 2018 ob 09:03:58 CEST je Maxime Ripard napisal(a):
> > On Sun, Jul 01, 2018 at 11:11:06PM +0800, Chen-Yu Tsai wrote:
> > > On Sun, Jul 1, 2018 at 4:27 PM, Jernej Škrabec <jernej.skrabec@siol.net> 
> wrote:
> > > > Dne četrtek, 28. junij 2018 ob 08:24:34 CEST je Chen-Yu Tsai napisal(a):
> > > >> On Thu, Jun 28, 2018 at 12:45 PM, Jernej Škrabec
> > > >> 
> > > >> <jernej.skrabec-gGgVlfcn5nU@public.gmane.org> wrote:
> > > >> > Dne četrtek, 28. junij 2018 ob 03:51:31 CEST je Chen-Yu Tsai 
> napisal(a):
> > > >> >> On Mon, Jun 25, 2018 at 8:02 PM, Jernej Skrabec
> > > >> >> <jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
> > > >> > 
> > > >> > wrote:
> > > >> >> > TV TCONs (channel 1 only) are always connected to TV or HDMI
> > > >> >> > encoder.
> > > >> >> > Because of that, all output endpoints on such TCON node will point
> > > >> >> > to a
> > > >> >> > encoder which is part of component framework.
> > > >> >> > 
> > > >> >> > Correct current graph traversing algorithm in such way that it
> > > >> >> > doesn't
> > > >> >> > skip output enpoints with id 0 on TV TCONs.
> > > >> >> 
> > > >> >> No. Our bindings say that endpoint 0 _is_ channel 0. For TCONs that
> > > >> >> don't
> > > >> >> have channel 0, it must be skipped.
> > > >> > 
> > > >> > I'm not sure where this is stated. I read TCON binding again. Can you
> > > >> > please point me to it?
> > > >> 
> > > >> https://elixir.bootlin.com/linux/latest/source/Documentation/devicetree
> > > >> /bind ings/display/sunxi/sun4i-drm.txt#L169
> > > >> 
> > > >> Our TCON driver still expects RGB or LVDS panel / bridges on endpoint
> > > >> 0.
> > > > 
> > > > Yes, but that can only happen on TCON which has channel 0. TV TCONs
> > > > (those
> > > > with channel 1 only) can't have panels or bridges connected to them,
> > > > because they are internally always connected to either HDMI or TV
> > > > encoder or both. Actually, R40 is the only SoC, where same TV TCON can
> > > > be connected to TV encoder or HDMI. Others have specialized TV TCONs,
> > > > which are connect to only one encoder.
> > > > 
> > > > IMO TV TCONs are really just stripped down LCD TCONs to support one (or
> > > > max
> > > > two) specific encoder.
> > > 
> > > I agree. We've seen these first in the H3, and the reverse, TCONs only
> > > with
> > > LCD, on the A23/A33.
> > > 
> > > >> So I guess this was sort of implied historically. It's no longer true.
> > > >> This is something we should probably fix.
> > > > 
> > > > Fixed in what way? You mean update bindings to mention that TCON output
> > > > endpoint 0 is reserved for panels or bridges?
> > > 
> > > Either that, or have the drm driver look at other endpoints. I guess we
> > > should ask Maxime if this is already done or not, since the DSI driver
> > > isn't endpoint 0 in the A33 dtsi.
> > 
> > The DSI driver isn't really a good example for this, since the panel
> > isn't described as part of the OF graph, but DSI binding require that
> > it's a child of the DSI controller node.
> 
> So should be new behaviour reverted? I mean ignoring endpoint 0 on TV TCONs.
> 
> For me, it doesn't make sense to check for panel or bridges on TV TCONs, 
> because they are never exposed on physical pins. They are always connected to 
> TVE or HDMI encoder internally.

It doesn't make sense to check for panels, yes, but it also makes sens
to have a child node at the endpoint 0 for TV TCONs.

> > > >> In practice our drivers don't look at it (yet), but rely on the
> > > >> downstream
> > > >> encoder type to determine which channel to use.
> > > >> 
> > > >> But please add the "allwinner,tcon-channel" property as specified in
> > > >> the binding.
> > > > 
> > > > It's my understanding of TCON binding documentation that property
> > > > "allwinner,tcon-channel" is needed only if TCON supports both channels.
> > > > TV
> > > > TCON clearly supports only channel 1. In that case, there is no doubt to
> > > > which channel output endpoint belongs.
> > > > 
> > > > If that's not true, dt bindings documentation should be reworded to
> > > > contain
> > > > word "needed" or something similar. Currently, no DT for newer SoC
> > > > contains
> > > > that property (for example, A83T, H3, H5 or even A33).
> > 
> > Yeah, but that's mainly because we have a single output enabled for
> > each channel on those newer SoCs. When / if we enable the RGB and LVDS
> > output for example, we will have to set this.
> 
> So just to be clear, before I send follow up series, I have to add 
> "allwinner,tcon-channel" property to DT, because both TV TCONs can be 
> connected to either TVE or HDMI (trough TCON TOP)?
> 
> BTW, since this property is not used at all in the code, why not just simply 
> deprecate it and remove it from existing DTs? I noticed this is standard 
> practice for obsolete properties.

It's not deprecated or obsolete, it's future-proofing.

Maxime

-- 
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

-- 
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.

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

  reply	other threads:[~2018-07-09  8:59 UTC|newest]

Thread overview: 87+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-25 12:02 [PATCH v3 00/24] Add support for R40 HDMI pipeline Jernej Skrabec
     [not found] ` <20180625120304.7543-1-jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
2018-06-25 12:02   ` [PATCH v3 01/24] clk: sunxi-ng: r40: Add minimal rate for video PLLs Jernej Skrabec
2018-06-25 12:02   ` [PATCH v3 02/24] clk: sunxi-ng: r40: Allow setting parent rate to display related clocks Jernej Skrabec
2018-06-25 12:02   ` [PATCH v3 03/24] clk: sunxi-ng: r40: Export video PLLs Jernej Skrabec
     [not found]     ` <20180625120304.7543-4-jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
2018-06-25 12:30       ` Chen-Yu Tsai
2018-06-25 12:02   ` [PATCH v3 04/24] dt-bindings: display: sunxi-drm: Add TCON TOP description Jernej Skrabec
2018-06-25 17:33     ` Rob Herring
2018-06-25 12:02   ` [PATCH v3 05/24] drm/sun4i: Add TCON TOP driver Jernej Skrabec
     [not found]     ` <20180625120304.7543-6-jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
2018-06-28  1:47       ` Chen-Yu Tsai
     [not found]         ` <CAGb2v6465Upen-aFiLXDrSPLDGLh+2REjaZ_91W39=E1DffHeA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-06-29 19:09           ` Jernej Škrabec
2018-06-30  1:13             ` Chen-Yu Tsai
2018-06-25 12:02   ` [PATCH v3 06/24] drm/sun4i: Fix releasing node when enumerating enpoints Jernej Skrabec
     [not found]     ` <20180625120304.7543-7-jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
2018-06-28  1:53       ` Chen-Yu Tsai
     [not found]         ` <CAGb2v65dNvqcWa7MUMesrEeDGfEmd0xPpKQmbqJ60_FHe=Y_JA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-06-29 19:15           ` Jernej Škrabec
2018-06-30  1:09             ` Chen-Yu Tsai
2018-06-25 12:02   ` [PATCH v3 07/24] drm/sun4i: Split out code for enumerating endpoints in output port Jernej Skrabec
     [not found]     ` <20180625120304.7543-8-jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
2018-06-28  1:57       ` Chen-Yu Tsai
2018-06-25 12:02   ` [PATCH v3 08/24] drm/sun4i: Add support for traversing graph with TCON TOP Jernej Skrabec
     [not found]     ` <20180625120304.7543-9-jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
2018-06-28  1:57       ` Chen-Yu Tsai
2018-06-25 12:02   ` [PATCH v3 09/24] drm/sun4i: Don't skip TCONs if they don't have channel 0 Jernej Skrabec
     [not found]     ` <20180625120304.7543-10-jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
2018-06-28  1:51       ` Chen-Yu Tsai
     [not found]         ` <CAGb2v64EkVK+AEngEuadBzAZagyU7eyOhHhBh0iFrxS+-BbCYQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-06-28  4:45           ` Jernej Škrabec
2018-06-28  6:24             ` Chen-Yu Tsai
2018-07-01  8:27               ` Jernej Škrabec
2018-07-01 15:11                 ` Chen-Yu Tsai
     [not found]                   ` <CAGb2v66_6RoYk6MRtTJeqg0Z09A7y+pvSxs7qeeND+iKPE_+BA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-07-05  7:03                     ` Maxime Ripard
2018-07-05 20:03                       ` Jernej Škrabec
2018-07-09  8:59                         ` Maxime Ripard [this message]
2018-06-25 12:02   ` [PATCH v3 10/24] drm/sun4i: tcon: Generalize engine search algorithm Jernej Skrabec
     [not found]     ` <20180625120304.7543-11-jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
2018-06-28  2:06       ` Chen-Yu Tsai
     [not found]         ` <CAGb2v66ndyhVFKsOt=g45MJ-cBun8WvRrDsb9XO2hteSX2oe5A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-06-28  4:48           ` Jernej Škrabec
2018-06-28 18:25             ` Maxime Ripard
2018-06-29 19:06               ` Jernej Škrabec
2018-07-01 19:09                 ` Jernej Škrabec
2018-07-02  8:56                   ` Maxime Ripard
2018-06-25 12:02   ` [PATCH v3 11/24] drm/sun4i: Don't check for LVDS and RGB when TCON has only ch1 Jernej Skrabec
     [not found]     ` <20180625120304.7543-12-jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
2018-06-28  2:08       ` Chen-Yu Tsai
2018-06-25 12:02   ` [PATCH v3 12/24] drm/sun4i: Don't check for panel or bridge on TV TCONs Jernej Skrabec
     [not found]     ` <20180625120304.7543-13-jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
2018-06-28  2:17       ` Chen-Yu Tsai
2018-06-25 12:02   ` [PATCH v3 13/24] dt-bindings: display: sun4i-drm: Add R40 mixer compatibles Jernej Skrabec
     [not found]     ` <20180625120304.7543-14-jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
2018-06-28  2:17       ` Chen-Yu Tsai
2018-06-25 12:02   ` [PATCH v3 14/24] drm/sun4i: Add support for R40 mixers Jernej Skrabec
     [not found]     ` <20180625120304.7543-15-jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
2018-06-28  2:18       ` Chen-Yu Tsai
2018-06-25 12:02   ` [PATCH v3 15/24] dt-bindings: display: sun4i-drm: Add description of A64 HDMI PHY Jernej Skrabec
     [not found]     ` <20180625120304.7543-16-jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
2018-06-28  2:19       ` Chen-Yu Tsai
     [not found]         ` <CAGb2v66ytOrjMOK067URknens34jvYxJ1XoYmGMi4Ji0LYt9sQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-06-28  4:51           ` Jernej Škrabec
2018-06-28  7:00             ` Chen-Yu Tsai
     [not found]               ` <CAGb2v67iRZZTQuTH8inwmPC6S0BRecFgPEpKrxgThQbsYaZgmQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-06-29 19:32                 ` Jernej Škrabec
2018-07-04  4:05                   ` Chen-Yu Tsai
2018-06-25 12:02   ` [PATCH v3 16/24] drm/sun4i: Enable DW HDMI PHY clock Jernej Skrabec
     [not found]     ` <20180625120304.7543-17-jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
2018-06-28  2:22       ` Chen-Yu Tsai
     [not found]         ` <CAGb2v65En4RbVdRu7c6MJUztVhC36dWr0kaO9bqc9PtuXAcsww-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-06-28  4:52           ` Jernej Škrabec
2018-06-29 19:19           ` Jernej Škrabec
2018-06-30  1:11             ` Chen-Yu Tsai
2018-06-25 12:02   ` [PATCH v3 17/24] drm/sun4i: Don't change clock bits in DW HDMI PHY driver Jernej Skrabec
2018-06-28  2:24     ` Chen-Yu Tsai
     [not found]       ` <CAGb2v66Ew7bshwiObQsbep9CCNeVeQFzunYrDcQsw+F+7rffHQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-06-29 19:23         ` Jernej Škrabec
2018-06-25 12:02   ` [PATCH v3 18/24] drm/sun4i: DW HDMI PHY: Add support for second PLL Jernej Skrabec
     [not found]     ` <20180625120304.7543-19-jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
2018-06-28  2:25       ` Chen-Yu Tsai
     [not found]         ` <CAGb2v651RGegpAi-2efhBUkyFf1iC+zxOGTbRkmjuWcYSTgYJw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-06-28  4:56           ` Jernej Škrabec
2018-06-28  6:59             ` Chen-Yu Tsai
2018-06-25 12:02   ` [PATCH v3 19/24] drm/sun4i: Add support for second clock parent to DW HDMI PHY clk driver Jernej Skrabec
     [not found]     ` <20180625120304.7543-20-jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
2018-06-28  2:30       ` Chen-Yu Tsai
2018-06-25 12:03   ` [PATCH v3 20/24] drm/sun4i: Add support for A64 HDMI PHY Jernej Skrabec
     [not found]     ` <20180625120304.7543-21-jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
2018-06-28  2:30       ` Chen-Yu Tsai
2018-06-25 12:03   ` [PATCH v3 21/24] drm: of: Export drm_crtc_port_mask() Jernej Skrabec
     [not found]     ` <20180625120304.7543-22-jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
2018-06-28  2:32       ` Chen-Yu Tsai
2018-06-25 12:03   ` [PATCH v3 22/24] drm/sun4i: DW HDMI: Expand algorithm for possible crtcs Jernej Skrabec
     [not found]     ` <20180625120304.7543-23-jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
2018-06-28  2:42       ` Chen-Yu Tsai
2018-06-25 12:03   ` [PATCH v3 23/24] ARM: dts: sun8i: r40: Add HDMI pipeline Jernej Skrabec
     [not found]     ` <20180625120304.7543-24-jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
2018-06-28  2:50       ` Chen-Yu Tsai
     [not found]         ` <CAGb2v66d-L4+TAgOMoPfpK2WAc3LKfprLB7tiAFL4YeL3Ogoow-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-06-28  5:15           ` Jernej Škrabec
2018-06-28  6:51             ` Chen-Yu Tsai
     [not found]               ` <CAGb2v66q3a9nNjkSP1rgh9voMToutDxHtY1x1Wpkf8eEmLWLAA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-07-01 10:41                 ` Jernej Škrabec
2018-07-01 13:52                   ` Chen-Yu Tsai
     [not found]                     ` <CAGb2v66y2NZexb94gZ9qa9rP7akdEFWSy43CU5G-UrGR2ad2BQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-07-01 15:13                       ` Jernej Škrabec
2018-07-01 15:35                         ` Chen-Yu Tsai
     [not found]                           ` <CAGb2v666uesMjm7HqOMmj2ij1+avedRPrQmxwHu-aY2JsSkUOw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-07-01 19:25                             ` Jernej Škrabec
2018-07-02 21:39                               ` Jernej Škrabec
2018-06-25 12:03   ` [PATCH v3 24/24] ARM: dts: sun8i: r40: Enable HDMI output on BananaPi M2 Ultra Jernej Skrabec
     [not found]     ` <20180625120304.7543-25-jernej.skrabec-gGgVlfcn5nU@public.gmane.org>
2018-06-28  2:51       ` Chen-Yu Tsai
2018-06-25 12:07   ` [PATCH v3 00/24] Add support for R40 HDMI pipeline Jernej Škrabec
2018-06-25 16:43   ` Maxime Ripard
2018-06-27 18:02   ` Maxime Ripard
2018-06-27 19:50     ` Maxime Ripard
2018-06-27 20:25       ` Jernej Škrabec
2018-06-28  8:41         ` Maxime Ripard

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=20180709085930.dgcxrs3jqcrhu5gm@flea \
    --to=maxime.ripard-ldxbnhwyfcjbdgjk7y7tuq@public.gmane.org \
    --cc=airlied-cv59FeDIM0c@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=gustavo-THi1TnShQwVAfugRpC6u6w@public.gmane.org \
    --cc=jernej.skrabec-gGgVlfcn5nU@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-clk-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    --cc=maarten.lankhorst-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
    --cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
    --cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=seanpaul-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
    --cc=wens-jdAy2FN1RRM@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