Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp5392326pxb; Sun, 7 Nov 2021 11:16:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJz2mG5ow5vYVQm8wTdKSKYnhy4O6vIKntR1RBXZChxFNOFHDwWCYF7RmaWOMpxamACNVxE4 X-Received: by 2002:a05:6602:1cc:: with SMTP id w12mr9571797iot.63.1636312585777; Sun, 07 Nov 2021 11:16:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636312585; cv=none; d=google.com; s=arc-20160816; b=ZZ+aSUNcfkRQgutoo5rX1nG+9eN7kVurslHN9LSdV0IdUFECUkA7XOIaDocm7Orrhs g42eUtSbnyvix4BtiY7VWa43+TPYdNAJ3XkknnN5Z3aWvGFavUwVBqcHYIDcRrwG1Ky+ pxTKsI2HXzYx5F0OXPesGkGiLpZCbmgaa2qdZFSO8Kvd0wDYXdxfmtjrSsEshN5lyymZ 91hYculiaGdrRDQG0WEUw4R6l3J3Hxwk3WXjkSRtMXaEi+BKcH9JwmWJo5oo/gBAurlf 3Evk8T0fq58Grcb7TER5nnNHNFIlHrW2Mq7+o/GIvTu+A0UyuKOGaup5OH+moB53J4ii ZdcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=79hC0l2s6WO9Mv6jwtdx8V5lNoZ0vuIrVGBldC3amTE=; b=Bjs5rtfvY34iLgCLe7tp0Ekeei3VFo1PkRyG4AYeGxf9X/Jy+LbpCLvgvotVNMiCKZ E9WwUcHaQ60VsycSI1BSbEFx7D0jk74lDVe7/bF28wS+vnSxp7UK4FNWuKnwukMr4fC+ /tak8kAIuy+FH6IXAtsWbaxPV3XBFzo049wYQ0P4Ro096jmDKcpDUymCFA84LYPiyE0n 9NcOo1Ok7MzFSIhKoMPGtbxayP/AcdcFK8p1rNgI0yl4vFS9uH9Gvac01Be0v95krVbH YoMfoO5NveQG0s76fOswazqbF25u6Fsx5iuUpPpuU1qP0RtrSkY+KlUCBrAk+YViDy2W ddnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b=GpFLSPBJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i11si20306028ilv.23.2021.11.07.11.16.13; Sun, 07 Nov 2021 11:16:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b=GpFLSPBJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233407AbhKGNqi (ORCPT + 99 others); Sun, 7 Nov 2021 08:46:38 -0500 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.80]:35022 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231136AbhKGNqg (ORCPT ); Sun, 7 Nov 2021 08:46:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1636292614; s=strato-dkim-0002; d=goldelico.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject:Cc:Date: From:Subject:Sender; bh=79hC0l2s6WO9Mv6jwtdx8V5lNoZ0vuIrVGBldC3amTE=; b=GpFLSPBJHHaKr/oD8UMsijKF9i/1KY40pfy/qputjd/4CkMo3vzuHDKmxbRlOdjyjK fYC4g+JgRj6qnrd43Xsq4OePQeMlSZ8pcBGxsUUfDXLOuMCjV/wwde7D/YU3fc1a2XXu BKRZDT4NVBvp/d6lLCNeZdsHJWQZwDzDwO54KKwcvknDtpRQOOmKV2B50xs5fr5pdaSE 5yOunl6AAk+frFHe7J0is3har7yuDLvT4PAaNi26HhBpf9TyKdKyQ9jxpbzlK2iW4cac J9Ao298nyLGg2yFN/HvfphYEzMP5WyqY9ZMrh/0mmxfzKFU9k2DY3XfKqT7Q4q7Ta32j hzYQ== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj7gpw91N5y2S3jcR+" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 47.34.1 DYNA|AUTH) with ESMTPSA id 902c63xA7DhXFoA (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Sun, 7 Nov 2021 14:43:33 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Subject: Re: [PATCH v5 3/7] dt-bindings: display: Add ingenic,jz4780-dw-hdmi DT Schema From: "H. Nikolaus Schaller" In-Reply-To: <8XUI0R.KDQ64KIMI9BU@crapouillou.net> Date: Sun, 7 Nov 2021 14:43:33 +0100 Cc: Rob Herring , Mark Rutland , Thomas Bogendoerfer , Geert Uytterhoeven , Kees Cook , "Eric W. Biederman" , Miquel Raynal , David Airlie , Daniel Vetter , Neil Armstrong , Robert Foss , Laurent Pinchart , Jernej Skrabec , Ezequiel Garcia , Harry Wentland , Sam Ravnborg , Maxime Ripard , Hans Verkuil , Liam Girdwood , Mark Brown , Paul Boddie , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-mips , linux-kernel , Discussions about the Letux Kernel , Jonas Karlman , dri-devel , Rob Herring Content-Transfer-Encoding: quoted-printable Message-Id: References: <518d5db83e84e3f0326854c5afb53a92e7ae4e41.1633436959.git.hns@goldelico.com> <8XUI0R.KDQ64KIMI9BU@crapouillou.net> To: Paul Cercueil X-Mailer: Apple Mail (2.3445.104.21) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > Am 05.10.2021 um 22:43 schrieb Paul Cercueil : >=20 > Hi Nikolaus, >=20 > Le mar., oct. 5 2021 at 14:29:15 +0200, H. Nikolaus Schaller = a =C3=A9crit : >> From: Sam Ravnborg >> Add DT bindings for the hdmi driver for the Ingenic JZ4780 SoC. >> Based on .txt binding from Zubair Lutfullah Kakakhel >> Signed-off-by: Sam Ravnborg >> Signed-off-by: H. Nikolaus Schaller >> Cc: Rob Herring >> Cc: devicetree@vger.kernel.org >> --- >> .../bindings/display/ingenic-jz4780-hdmi.yaml | 79 = +++++++++++++++++++ >> 1 file changed, 79 insertions(+) >> create mode 100644 = Documentation/devicetree/bindings/display/ingenic-jz4780-hdmi.yaml >> diff --git = a/Documentation/devicetree/bindings/display/ingenic-jz4780-hdmi.yaml = b/Documentation/devicetree/bindings/display/ingenic-jz4780-hdmi.yaml >> new file mode 100644 >> index 000000000000..5bcb342da86f >> --- /dev/null >> +++ = b/Documentation/devicetree/bindings/display/ingenic-jz4780-hdmi.yaml >> @@ -0,0 +1,79 @@ >> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/display/ingenic-jz4780-hdmi.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Bindings for Ingenic JZ4780 HDMI Transmitter >> + >> +maintainers: >> + - H. Nikolaus Schaller >> + >> +description: | >> + The HDMI Transmitter in the Ingenic JZ4780 is a Synopsys = DesignWare HDMI 1.4 >> + TX controller IP with accompanying PHY IP. >=20 > My dmesg disagrees: > dw-hdmi-ingenic 10180000.hdmi: Detected HDMI TX controller v1.31a with = HDCP (DWC HDMI 3D TX PHY) mine as well. >=20 > Or am I comparing apples to oranges? There is a document called "JZ4780 High Efficiency Engine for Mobile = Device" (JZ4780_PB.pdf) which says "24-bit parallel/serial TFT interface, HDMI 1.4a interface, LVDS = interface" And the data sheet ("JZ4780 Mobile Application Processor Data Sheet ") = says: "Support HDMI 1.4a Interface" Finally, the programming manual also says "Support HDMI 1.4a Interface". So what is correct? dmesg may return something else. E.g. silicon revision 1.31a while the interface is HDMI protocol revision 1.4a compatible? Trying to find something about "hdmi 1.31a" did only lead to some "Synopsys' HAPS-51 eval platform" [1]. Looking at HDMI standards [2] I can only find HDMI 1.3 and 1.3a but no = HDMI 1.31a. [1] = https://www.digital-cp.com/hdcp-products/haps51-hdmi-tx-platform-dwc-hdmi-= tx-controller-131a-ea-hdmi-3d-tx-phy-tsmc40g-ip [2] https://en.wikipedia.org/wiki/HDMI#Version_1.3 Well it may also be some Synopsys-internal designation 1.31a referring = so something newer than HDMI 1.3a which became the HDMI 1.4 standard (released June = 2009)... Whom should we believe? What the chip tells or what the data sheet and = programming manual says? I tend to keep confusion low and stay with "HDMI 1.4" in the bindings = because there is no offical "HDMI 1.31a" standard. And HDMI 1.4 was already some = years old when the jz4780 was released. So it is likely that the chip = identification just returns 1.31a (maybe Ingenic licenced an interim release VHDL) although = the standard was later officially named 1.4a. >=20 >> + >> +allOf: >> + - $ref: bridge/synopsys,dw-hdmi.yaml# >> + >> +properties: >> + compatible: >> + const: ingenic,jz4780-dw-hdmi >> + >> + reg-io-width: >> + const: 4 >> + >> + clocks: >> + maxItems: 2 >> + >> + hdmi-5v-supply: >> + description: Optional regulator to provide +5V at the connector >> + >> + ddc-i2c-bus: >> + description: An I2C interface if the internal DDC I2C driver is = not to be used >=20 > This property is used within = (drivers/gpu/drm/bridge/synopsys/dw-hdmi.c); I think it would make sense = to move it to bridge/synopsys,dw-hdmi.yaml. It is indeed more general and not jz4780 specific. I'll move it for v6. BR and thanks, Nikolaus