Received: by 10.223.164.202 with SMTP id h10csp4538249wrb; Wed, 29 Nov 2017 07:55:25 -0800 (PST) X-Google-Smtp-Source: AGs4zMZlOPBhvJBMgo2JN8093v3VcivBbz7j+Wp4ehD/K9Opt+iYzqsgXWOUDw+UlNmZiyrqoPlU X-Received: by 10.159.255.65 with SMTP id u1mr3371113pls.233.1511970925586; Wed, 29 Nov 2017 07:55:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511970925; cv=none; d=google.com; s=arc-20160816; b=zEsqpteMTJklJjaQHMXQtDyd7qpLzLchFBG4vSn8m7kKHRXznwTA8SHGG+QoUi9V4K gCnfu+jBZXJz2k6R1/Bvq7rur2sO3e379yeIixvFV9T8yX87T3cD4SlZleyfwGQKUnB+ zB8/xtPH2/7yhhYMWVazt+ybbzEG4372TMfggORmUSIDcayhHXk0CSyPKvlqqQGjlmN9 e6y7UWMbFq8t71ZCW6oe9p8rRS4diZNxVsAXixod+9GfBtREWpAOmfpBi2KWJRdOBD6I r09Sgrk7EAJWor1M819a9ieWyepk7erlzM9jCihCcDX3RFOub9TmhOTzq/HhRVMFoRjQ 7Rhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=CLKgvLL0n+TPTfgsWe+G0859WCtpOQei/tUwn/5B2qw=; b=QeqSSGGVtTYDsPO1c2atRNEYlSX/VkFi4+MIhiyscP6viQEaRFoTe/iHrJDLwPC4CQ JPtAlFhk+rFFRTu/cDFV95AuJN2a2wjqWanh9jVyV3iYEEIcL0UwekLAGOBvjpT4lDLq pzbmxkwB5Y9Lz3Pzsw5hmr9QYuzdaKpyaSYfN6TkrpJLEE7XSQVFFxCO5kc9H5eWhCLa XSW2SJQIh7CHCcsAsDctn/e/PpBxUPQ2imqQ89YqG9m8ncMnqX3Va13oW6HpaenNzPVU x9hS5xO/dqyDnGZml35NuxSCN1v471MRUdz58BIL0s+6jH7mJdZ1XLmDTbmWW4jHl9a7 6Beg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gateworks-com.20150623.gappssmtp.com header.s=20150623 header.b=kvir1Dvm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i8si1445664pll.783.2017.11.29.07.55.14; Wed, 29 Nov 2017 07:55:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gateworks-com.20150623.gappssmtp.com header.s=20150623 header.b=kvir1Dvm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933034AbdK2Pyg (ORCPT + 69 others); Wed, 29 Nov 2017 10:54:36 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:39273 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753763AbdK2Pye (ORCPT ); Wed, 29 Nov 2017 10:54:34 -0500 Received: by mail-wr0-f196.google.com with SMTP id a41so1960971wra.6 for ; Wed, 29 Nov 2017 07:54:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gateworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=CLKgvLL0n+TPTfgsWe+G0859WCtpOQei/tUwn/5B2qw=; b=kvir1DvmNSqYgAP8mLZkM8F4lcnm5rF8p9404GpEx74WqghMH22lbSlivm4j0aaHpz vs0tWHPnY4SbyLonB64tRSXH82aksVAdDtvGez3V9MDszF27IQ0cGNywa5vd36RWjxWr 9BsIeam+s6+JCq4rBQj/ulbx1ZEVXrW63/LFgiNLN6b4SHmbBP9zKK2RCBbYHpaJChQ9 O4acrFyPlZK4/zkG9pCX1WQD3rAZ8H4g/Dq5bTp68V9wR1C65GidF/sqjF+ZJFJp6tmN Pd3pvvLBxD6yDqQmtuy76UAXoSAgBJ1czxsgaBFA1ByVI7+W00qGsqaUVwvKlt4MDqgL 9b6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=CLKgvLL0n+TPTfgsWe+G0859WCtpOQei/tUwn/5B2qw=; b=V4NHYSLGER98yTaqJZ1hBQvXmzVGwsCyCiEOAMsETnKO7VMbpv7bmqdGLtukQPOVap Uwutk5HuLI+si7NTudNUhgYtxg0B31Ez0zyaOzcjjpLYZDqx1GMYtpAeRloEKZUhNT3f vB6uN6vzHAZmhJO7GntpyOMNO/VX0z/p7yH8QDlAPDXDJqnmspSjYyTWYca7kIziko8l MB4hQGVsjSukbzgKBi3lBjE6dM/u49C/G5jWX6bW9xobk/Ls/HjdbOALR2LmLn//2lbH Lroa6dCISlSGrb+G03qrf+nvmZ0Hz1fYfRh6FjV/w7f/FbCQW+/C/hQf4EreHPoht4gk WsjQ== X-Gm-Message-State: AJaThX6QT6Gzul7vsVIu0HSRyDjoiWNCs9CHKwXUBo++dqPkUApnfUZ5 e+gQtltyFgic7DxHTbVOCekS25JAwBzTdbJZQvMdwQ== X-Received: by 10.223.187.78 with SMTP id x14mr2622790wrg.192.1511970872768; Wed, 29 Nov 2017 07:54:32 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.16.198 with HTTP; Wed, 29 Nov 2017 07:54:32 -0800 (PST) In-Reply-To: <20171123082532.znxnmwpgrdjbhxbi@valkosipuli.retiisi.org.uk> References: <1510253136-14153-1-git-send-email-tharvey@gateworks.com> <1510253136-14153-3-git-send-email-tharvey@gateworks.com> <20171122073606.56ldk3bzg23dkkfm@valkosipuli.retiisi.org.uk> <20171123082532.znxnmwpgrdjbhxbi@valkosipuli.retiisi.org.uk> From: Tim Harvey Date: Wed, 29 Nov 2017 07:54:32 -0800 Message-ID: Subject: Re: [PATCH 2/5] media: dt-bindings: Add bindings for TDA1997X To: Sakari Ailus Cc: linux-media , alsa-devel@alsa-project.org, "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Shawn Guo , Steve Longerbeam , Philipp Zabel , Hans Verkuil , Mauro Carvalho Chehab , Rob Herring Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 23, 2017 at 12:25 AM, Sakari Ailus wrote: > On Wed, Nov 22, 2017 at 08:37:04PM -0800, Tim Harvey wrote: >> On Tue, Nov 21, 2017 at 11:36 PM, Sakari Ailus wrote: >> > Hi Tim, >> > >> > On Thu, Nov 09, 2017 at 10:45:33AM -0800, Tim Harvey wrote: >> >> Cc: Rob Herring >> >> Signed-off-by: Tim Harvey >> >> --- >> >> 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. > > I think it'd be clearer if you just add "The port node shall contain one > endpoint child node". ok > >> >> >> + >> >> +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. > > The parallel bus. If you mean that, then you could just say that. "Source > endpoint" is a bit vague, or requires knowing V4L2. > agreed Thanks, Tim From 1584844625816445145@xxx Thu Nov 23 08:26:55 +0000 2017 X-GM-THRID: 1583615391656301781 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread