Received: by 10.223.164.202 with SMTP id h10csp266694wrb; Wed, 22 Nov 2017 20:37:59 -0800 (PST) X-Google-Smtp-Source: AGs4zMZXWiNJRJtJ3IpfbQVGWSSB7HGsMfv4WeGCTjURL7oRK2q13CUOygYAQwxinUPm769HAGiz X-Received: by 10.98.137.201 with SMTP id n70mr21293936pfk.93.1511411879380; Wed, 22 Nov 2017 20:37:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511411879; cv=none; d=google.com; s=arc-20160816; b=p1/dc03z7TTF61odHvxE5R/q2TTZBehOaj7DddzHU/vyUgKm9xgfUn60pNXjV7jP56 eYL1LM40jfG2n1F+I3FZF/fkaAIH0r/y9aHe0T1Erdd+F9uUNaRnpIPVzzY3m33pSvId pg1CsZM5YU9Os2iRLlE8gWuh+3f/TZAIjmS20KO6TqFJZe7YS/Rk3TNP5ruN0oiRwevz GNG1j0maI/F/f0w3NsU0jo9K15muZ+dYQD8fcOmsu4WI4uJKL5/RtN0LJbjRngYBQQvs 2zVr0cp+BCFOC5K3WuV4pa3mqVwhn10216og/gdzIiwBq6ns3jYpRqgLCwDiTI2mljj+ JGZw== 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=Pt3Lsow9kJVx44vyDwGY6D5JKwlIGvVqaKq6X30Ofms=; b=aUVyR8kgLLICfLanCVBXTYhL0W41vc7Uo7OHrIfb9AKCy5gc5BkfPg+kAhiyU0Ac15 i1oG+2o0G1Kjrgw5HYPLBLXzoGYd8ilVizNbL1MWeLsv+ky0m+eF94+ZTgm8+H540exj BICPXXa0cKoMoa3+f7rVsmNlcM9kFjy8KrLfwlIkDQOv6vBhWZYuy9rJVj1p6sLOmShx KXq6+O1pW+iIs+z50PGh6CGfDoECn/Oj69jFze+EQVaNZKG3KbiZqi7nPDzX1Ap74JxB xpsBmIBQmJop7G/QvgVwMmV7bq2J+y1wieijZpayzDjzUN0+RTHlZf+2qiHwdU6JukvK uxFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gateworks-com.20150623.gappssmtp.com header.s=20150623 header.b=fqagt8B7; 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 v11si14564134pgb.677.2017.11.22.20.37.47; Wed, 22 Nov 2017 20:37:59 -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=fqagt8B7; 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 S1752561AbdKWEhJ (ORCPT + 77 others); Wed, 22 Nov 2017 23:37:09 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:36473 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752153AbdKWEhH (ORCPT ); Wed, 22 Nov 2017 23:37:07 -0500 Received: by mail-wm0-f66.google.com with SMTP id r68so14059363wmr.1 for ; Wed, 22 Nov 2017 20:37:06 -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=Pt3Lsow9kJVx44vyDwGY6D5JKwlIGvVqaKq6X30Ofms=; b=fqagt8B7WnlDE6hqxjv4+fcksU091yRA0S9gL5N41FcJTImyhp9bv14f8fL3ERNybr xZbLPaV5qVFwfOiVU8vWmB07dt6OQcRE4Y6XMj+ts4SBJUrZCpWCjQZHlzW4Rry7NfoV uhuRCKFph8DEKOHDCpcXYdyCNmB5W0D7EJyEQlQuoEyGX6kFzzSgTOEiRhH0fhIYg+RN CLgnfzTzkX72enYF5ZtGqZ1bDlh1lNCPEAzAo1QmhK3pLHwH3ZNay0frV5fYup+IQASM ya+mYSs/PiJrzfrpr9WahId1BgV9NXY9WuZq/DIjasx3b7ZK49aKZbJxpPnkocjD4aYT RCog== 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=Pt3Lsow9kJVx44vyDwGY6D5JKwlIGvVqaKq6X30Ofms=; b=EvF7youTGlV13wGmDTpOqfH7tMvjDYfSg7shwRL8o5dlCKFRiPEgZ8hrdfbuKObXdt AO62SmEZjHR6kCOoFYMN8NtPKsT66jfqAekfU2dXKGUkgNmKJUhCNRS0qUOVyujqp1EU IxQ6URVb60pK968TZNnu8+nESJfDTo/N0pY6c0DBTDvB5fFJMOPH5lP+HnxiJQ0WEC2j 9qYom19qoyt4XWS3KJdDtuTNIWuyw84pWOgZLDg7K1atXj4g08K2P9Z5pGjODg80WZjR HXEwExF7BiNl4I/8YQRI0fnhd5FXEnhdjghTBitiKXtJm9gjkyL72ojutjIHKVvYIGrI TlWA== X-Gm-Message-State: AJaThX7LKbkAyZd7caMA9ZS/GoPD73rwzl0SKs3+/Sv7Y2jAmsVOcCBj bhN2PEWXf/4Byn6CceFzVZIL5ewtlV6VaoMA1RrRLw== X-Received: by 10.28.137.80 with SMTP id l77mr5546923wmd.24.1511411825513; Wed, 22 Nov 2017 20:37:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.16.198 with HTTP; Wed, 22 Nov 2017 20:37:04 -0800 (PST) In-Reply-To: <20171122073606.56ldk3bzg23dkkfm@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> From: Tim Harvey Date: Wed, 22 Nov 2017 20:37:04 -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 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. >> + >> +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 From 1584750889570403583@xxx Wed Nov 22 07:37:01 +0000 2017 X-GM-THRID: 1583615391656301781 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread