From: Jean-Francois Moine <moinejf@free.fr>
To: Rob Herring <robh@kernel.org>
Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org,
peter.ujfalusi@ti.com, tomi.valkeinen@ti.com,
dri-devel@lists.freedesktop.org, liam.r.girdwood@linux.intel.com,
tony@atomide.com, broonie@kernel.org, Jyri Sarha <jsarha@ti.com>,
bcousson@baylibre.com, rmk+kernel@arm.linux.org.uk,
linux-omap@vger.kernel.org
Subject: Re: [PATCH RFC v4 4/8] drm/i2c: tda998x: Add support of a DT graph of ports
Date: Thu, 24 Sep 2015 12:36:16 +0200 [thread overview]
Message-ID: <20150924123616.5d47f363@armhf> (raw)
In-Reply-To: <56001FF6.5070504@kernel.org>
On Mon, 21 Sep 2015 10:19:18 -0500
Rob Herring <robh@kernel.org> wrote:
> On 09/18/2015 06:06 AM, Jyri Sarha wrote:
> > From: Jean-Francois Moine <moinejf@free.fr>
> >
> > Two kinds of ports may be declared in a DT graph of ports: video and audio.
> > This patch accepts the port value from a video port as an alternative
> > to the video-ports property.
> > It also accepts audio ports in the case the transmitter is not used as
> > a slave encoder.
> > The new file include/sound/tda998x.h prepares to the definition of
> > a tda998x CODEC.
> >
> > Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
> > Signed-off-by: Jyri Sarha <jsarha@ti.com>
> > ---
[snip]
> > diff --git a/Documentation/devicetree/bindings/drm/i2c/tda998x.txt b/Documentation/devicetree/bindings/drm/i2c/tda998x.txt
> > index e9e4bce..35f6a80 100644
> > --- a/Documentation/devicetree/bindings/drm/i2c/tda998x.txt
> > +++ b/Documentation/devicetree/bindings/drm/i2c/tda998x.txt
> > @@ -16,6 +16,35 @@ Optional properties:
> >
> > - video-ports: 24 bits value which defines how the video controller
> > output is wired to the TDA998x input - default: <0x230145>
> > + This property is not used when ports are defined.
> > +
> > +Optional nodes:
> > +
> > + - port: up to three ports.
> > + The ports are defined according to [1].
> > +
> > + Video port.
> > + There may be only one video port.
> > + This one must contain the following property:
> > +
> > + - port-type: must be "rgb"
>
> Why do you need this if there is no other choice? The port number should
> define which one is video.
There is no specific port number.
One of the ports is video and two other ones are audio.
> > +
> > + and may contain the optional property:
> > +
> > + - reg: 24 bits value which defines how the video controller
> > + output is wired to the TDA998x input (video pins)
> > + When absent, the default value is <0x230145>.
>
> I'm failing to decode how this value works. In any case, I would keep
> this as a vendor specific property rather than abusing reg.
This has been explained in
https://lkml.org/lkml/2014/1/20/86
> > +
> > + Audio ports.
> > + There may be one or two audio ports.
> > + These ones must contain the following properties:
> > +
> > + - port-type: must be "i2s" or "spdif"
> > +
> > + - reg: 8 bits value which defines how the audio controller
> > + output is wired to the TDA998x input (audio pins)
>
> reg is 32-bits.
This port has only 8 significant bits as explained in
https://lkml.org/lkml/2015/1/7/362
> > +
> > +[1] Documentation/devicetree/bindings/graph.txt
> >
> > Example:
> >
> > @@ -26,4 +55,26 @@ Example:
> > interrupts = <27 2>; /* falling edge */
> > pinctrl-0 = <&pmx_camera>;
> > pinctrl-names = "default";
> > +
> > + port@230145 {
> > + port-type = "rgb";
> > + reg = <0x230145>;
> > + hdmi_0: endpoint {
> > + remote-endpoint = <&lcd0_0>;
> > + };
> > + };
> > + port@3 { /* AP1 = I2S */
>
> Is 3 significant? What happened to 0-2?
The value after @ is the 'reg' value (= value of the port register).
> > + port-type = "i2s";
> > + reg = <0x03>;
> > + tda998x_i2s: endpoint {
> > + remote-endpoint = <&audio1_i2s>;
> > + };
> > + };
--
Ken ar c'hentañ | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2015-09-24 10:36 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-18 11:06 [PATCH RFC v4 0/8] Implement generic ASoC HDMI codec and use it in tda998x Jyri Sarha
2015-09-18 11:06 ` [PATCH RFC v4 3/8] ASoC: hdmi-codec: Add hdmi-codec for external HDMI-encoders Jyri Sarha
[not found] ` <6fe9ab5dff972e6f228259d6818f3f481a11577d.1442572860.git.jsarha-l0cyMroinI0@public.gmane.org>
2015-09-19 17:54 ` Mark Brown
2015-09-21 9:31 ` Russell King - ARM Linux
2015-09-21 13:41 ` Jyri Sarha
2015-09-21 17:18 ` Mark Brown
[not found] ` <cover.1442572860.git.jsarha-l0cyMroinI0@public.gmane.org>
2015-09-18 11:06 ` [PATCH RFC v4 1/8] ASoC: hdmi: Remove obsolete dummy HDMI codec Jyri Sarha
2015-09-18 11:06 ` [PATCH RFC v4 2/8] ALSA: pcm: add IEC958 channel status helper for hw_params Jyri Sarha
[not found] ` <a7b69fb075b0ae993846cfb65abb20ecab5c9805.1442572860.git.jsarha-l0cyMroinI0@public.gmane.org>
2015-09-19 17:46 ` Mark Brown
2015-09-21 9:37 ` Russell King - ARM Linux
2015-09-21 14:39 ` Jyri Sarha
2015-09-21 15:08 ` Clemens Ladisch
2015-09-21 17:25 ` Jyri Sarha
2015-09-18 11:06 ` [PATCH RFC v4 4/8] drm/i2c: tda998x: Add support of a DT graph of ports Jyri Sarha
[not found] ` <e9ebb04f781fef7cff99190d301fb64805b97d39.1442572860.git.jsarha-l0cyMroinI0@public.gmane.org>
2015-09-21 15:19 ` Rob Herring
2015-09-24 10:36 ` Jean-Francois Moine [this message]
2015-09-24 16:29 ` Rob Herring
2015-09-18 11:06 ` [PATCH RFC v4 6/8] drm/i2c: tda998x: Improve tda998x_configure_audio() audio related pdata Jyri Sarha
2015-09-18 11:06 ` [PATCH RFC v4 5/8] drm/i2c: tda998x: Remove include/sound/tda998x.h and fix graph parsing Jyri Sarha
2015-09-18 11:06 ` [PATCH RFC v4 7/8] drm/i2c: tda998x: Register ASoC HDMI codec for audio functionality Jyri Sarha
2015-09-18 11:06 ` [PATCH RFC v4 8/8] ARM: dts: am335x-boneblack: Add HDMI audio support Jyri Sarha
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=20150924123616.5d47f363@armhf \
--to=moinejf@free.fr \
--cc=alsa-devel@alsa-project.org \
--cc=bcousson@baylibre.com \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=jsarha@ti.com \
--cc=liam.r.girdwood@linux.intel.com \
--cc=linux-omap@vger.kernel.org \
--cc=peter.ujfalusi@ti.com \
--cc=rmk+kernel@arm.linux.org.uk \
--cc=robh@kernel.org \
--cc=tomi.valkeinen@ti.com \
--cc=tony@atomide.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.