LKML Archive on lore.kernel.org help / color / mirror / Atom feed
From: Tim Harvey <tharvey@gateworks.com> To: Sakari Ailus <sakari.ailus@iki.fi> Cc: linux-media <linux-media@vger.kernel.org>, alsa-devel@alsa-project.org, "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Shawn Guo <shawnguo@kernel.org>, Steve Longerbeam <slongerbeam@gmail.com>, Philipp Zabel <p.zabel@pengutronix.de>, Hans Verkuil <hansverk@cisco.com>, Mauro Carvalho Chehab <mchehab@s-opensource.com>, Rob Herring <robh@kernel.org> Subject: Re: [PATCH 2/5] media: dt-bindings: Add bindings for TDA1997X Date: Wed, 22 Nov 2017 20:37:04 -0800 [thread overview] Message-ID: <CAJ+vNU1FEp5aU6aXXOuGr3ifcngfP0Pj0rnBBxDh_mVtQyvLAQ@mail.gmail.com> (raw) In-Reply-To: <20171122073606.56ldk3bzg23dkkfm@valkosipuli.retiisi.org.uk> On Tue, Nov 21, 2017 at 11:36 PM, Sakari Ailus <sakari.ailus@iki.fi> wrote: > Hi Tim, > > On Thu, Nov 09, 2017 at 10:45:33AM -0800, Tim Harvey wrote: >> Cc: Rob Herring <robh@kernel.org> >> Signed-off-by: Tim Harvey <tharvey@gateworks.com> >> --- >> v3: >> - fix typo >> >> v2: >> - add vendor prefix and remove _ from vidout-portcfg >> - remove _ from labels >> - remove max-pixel-rate property >> - describe and provide example for single output port >> - update to new audio port bindings >> --- >> .../devicetree/bindings/media/i2c/tda1997x.txt | 179 +++++++++++++++++++++ >> 1 file changed, 179 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/media/i2c/tda1997x.txt >> >> diff --git a/Documentation/devicetree/bindings/media/i2c/tda1997x.txt b/Documentation/devicetree/bindings/media/i2c/tda1997x.txt >> new file mode 100644 >> index 0000000..dd37f14 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/media/i2c/tda1997x.txt >> @@ -0,0 +1,179 @@ >> +Device-Tree bindings for the NXP TDA1997x HDMI receiver >> + >> +The TDA19971/73 are HDMI video receivers. >> + >> +The TDA19971 Video port output pins can be used as follows: >> + - RGB 8bit per color (24 bits total): R[11:4] B[11:4] G[11:4] >> + - YUV444 8bit per color (24 bits total): Y[11:4] Cr[11:4] Cb[11:4] >> + - YUV422 semi-planar 8bit per component (16 bits total): Y[11:4] CbCr[11:4] >> + - YUV422 semi-planar 10bit per component (20 bits total): Y[11:2] CbCr[11:2] >> + - YUV422 semi-planar 12bit per component (24 bits total): - Y[11:0] CbCr[11:0] >> + - YUV422 BT656 8bit per component (8 bits total): YCbCr[11:4] (2-cycles) >> + - YUV422 BT656 10bit per component (10 bits total): YCbCr[11:2] (2-cycles) >> + - YUV422 BT656 12bit per component (12 bits total): YCbCr[11:0] (2-cycles) >> + >> +The TDA19973 Video port output pins can be used as follows: >> + - RGB 12bit per color (36 bits total): R[11:0] B[11:0] G[11:0] >> + - YUV444 12bit per color (36 bits total): Y[11:0] Cb[11:0] Cr[11:0] >> + - YUV422 semi-planar 12bit per component (24 bits total): Y[11:0] CbCr[11:0] >> + - YUV422 BT656 12bit per component (12 bits total): YCbCr[11:0] (2-cycles) >> + >> +The Video port output pins are mapped via 4-bit 'pin groups' allowing >> +for a variety of connection possibilities including swapping pin order within >> +pin groups. The video_portcfg device-tree property consists of register mapping >> +pairs which map a chip-specific VP output register to a 4-bit pin group. If >> +the pin group needs to be bit-swapped you can use the *_S pin-group defines. >> + >> +Required Properties: >> + - compatible : >> + - "nxp,tda19971" for the TDA19971 >> + - "nxp,tda19973" for the TDA19973 >> + - reg : I2C slave address >> + - interrupts : The interrupt number >> + - DOVDD-supply : Digital I/O supply >> + - DVDD-supply : Digital Core supply >> + - AVDD-supply : Analog supply >> + - nxp,vidout-portcfg : array of pairs mapping VP output pins to pin groups. >> + >> +Optional Properties: >> + - nxp,audout-format : DAI bus format: "i2s" or "spdif". >> + - nxp,audout-width : width of audio output data bus (1-4). >> + - nxp,audout-layout : data layout (0=AP0 used, 1=AP0/AP1/AP2/AP3 used). >> + - nxp,audout-mclk-fs : Multiplication factor between stream rate and codec >> + mclk. >> + >> +The device node must contain one 'port' child node for its digital output >> +video port, in accordance with the video interface bindings defined in >> +Documentation/devicetree/bindings/media/video-interfaces.txt. > > Could you add that this port has one endpoint node as well? (Unless you > support multiple, that is.) Sure... will clarify as: The device node must contain one endpoint 'port' child node for its digital output video port, in accordance with the video interface bindings defined in Documentation/devicetree/bindings/media/video-interfaces.txt. >> + >> +Optional Endpoint Properties: >> + The following three properties are defined in video-interfaces.txt and >> + are valid for source endpoints only: > > Transmitters? Don't you have an endpoint only in the port representing the > transmitter? I'm not usre what you mean. The TDA1997x is an HDMI receiver meaning it receives HDMI and decodes it to a parallel video bus. HDMI transmitters are the opposite. Regards, Tim
next prev parent reply other threads:[~2017-11-23 4:37 UTC|newest] Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-11-09 18:45 [PATCH v3 0/5] TDA1997x HDMI video receiver Tim Harvey 2017-11-09 18:45 ` [PATCH 1/5] MAINTAINERS: add entry for NXP TDA1997x driver Tim Harvey 2017-11-09 18:45 ` [PATCH 2/5] media: dt-bindings: Add bindings for TDA1997X Tim Harvey 2017-11-22 7:36 ` Sakari Ailus 2017-11-23 4:37 ` Tim Harvey [this message] 2017-11-23 8:25 ` Sakari Ailus 2017-11-29 15:54 ` Tim Harvey 2017-11-09 18:45 ` [PATCH 3/5] media: i2c: Add TDA1997x HDMI receiver driver Tim Harvey 2017-11-15 15:52 ` Rob Herring 2017-11-15 18:31 ` Tim Harvey 2017-11-16 4:30 ` Rob Herring 2017-11-23 4:49 ` Tim Harvey 2017-12-12 12:18 ` Hans Verkuil 2017-12-13 23:33 ` Tim Harvey 2017-12-14 10:11 ` Hans Verkuil 2017-11-20 15:39 ` Hans Verkuil 2017-11-23 4:27 ` Tim Harvey 2017-11-23 8:08 ` Hans Verkuil 2017-11-29 15:47 ` Tim Harvey 2017-12-16 19:32 ` [alsa-devel] " Fabio Estevam 2017-12-18 22:21 ` Tim Harvey 2017-11-09 18:45 ` [PATCH 4/5] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW54xx Tim Harvey 2017-11-09 18:45 ` [PATCH 5/5] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW551x Tim Harvey
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=CAJ+vNU1FEp5aU6aXXOuGr3ifcngfP0Pj0rnBBxDh_mVtQyvLAQ@mail.gmail.com \ --to=tharvey@gateworks.com \ --cc=alsa-devel@alsa-project.org \ --cc=devicetree@vger.kernel.org \ --cc=hansverk@cisco.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-media@vger.kernel.org \ --cc=mchehab@s-opensource.com \ --cc=p.zabel@pengutronix.de \ --cc=robh@kernel.org \ --cc=sakari.ailus@iki.fi \ --cc=shawnguo@kernel.org \ --cc=slongerbeam@gmail.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: linkBe 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).