Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp402118lqg; Fri, 1 Mar 2024 08:31:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUngsD/YTpYwJl4UTdQG6VhBxcqAREk1ZAmp2r8UwSH2qcFcq8Yc+MyfKVW2Zgw3uvoi3Z3fHEyiOZzv8ytYaPGIxaFtmoyLBVHX5pD6A== X-Google-Smtp-Source: AGHT+IHZ4YsI77AbyTMJcOztoS8Jm4owOcxNnl9MmzBZpw3HOtGqf4D0/KiyWcjO5g7Omqoc/IDC X-Received: by 2002:a05:6a00:842:b0:6e4:79a1:c9c with SMTP id q2-20020a056a00084200b006e479a10c9cmr2594593pfk.12.1709310702626; Fri, 01 Mar 2024 08:31:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709310702; cv=pass; d=google.com; s=arc-20160816; b=VSIJ5Ffu4dVFSHclu9YxDTJk0PV40wQOChJZgVt2ce1WuPUMBWdOsKd/2D32BG5muF 6CsDSTORXqR/ZO150yLPJYehFskc032kD1y85NxuIOY2jo6owDwQGjzbHf/ALqlBuVsF z+8Gb+3F+jTjoai68x45ZTb+iY3bL3Vz8P79k1IoogOoWA2zRU0TBramsoPasKGhecAY jQu8vV3dvyuLjwtce1ePIS8DMQcBZkPpWZ6+4yo5ysgnARGhZCmCJHuBOwj9iGBIHpdF 6Q8bQPaxc1STk8zgmRtWA1D+V1ErIUXCu1YMSuZSg+m/mzczQvNWN8aXW0XmaczpRA4+ Su8A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=isG57x8hT/324aVac2h9YHeMKp+OQsZaiQJVjVpYDWg=; fh=dTncgDdwjJw73jqoVyvmG8XoCY/FOv5+U3tvFWpcJAg=; b=X3k1sAG4vdeezcggincrOjbCRLqakT1fqF8I902t7pYE5aWOCGSEt8TyXq0gDHc1j+ jq4u3oEVWZSZjVFRVB+Wa/rxX5oN++QPG/YhI0sYbUzBoyAEn5FJ2o55ZczcsJZknuWe Gt2z5rFIZZ7x6qSZx+2MkICA9m0Dr+rs4hxvMkp76ck2eGKWlKuHh/8GFaS8fl8I3yBs B88KQc3mrzKrAwdz41U0gpEA7kgANgOMFXW7DNuZj6D1hJL3pdgoj33gDoql+HPkfH5u GxXKi12JOZLUXKrGHiMyyDIRl5XIiRtaGH7/9H+39W3STUNTLtRtwzrLnoB5PEaRRy7J CeCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tOSDSIIb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-88697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88697-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b6-20020a656686000000b005dc8a171689si3831356pgw.411.2024.03.01.08.31.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 08:31:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tOSDSIIb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-88697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88697-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id ACA9EB254F3 for ; Fri, 1 Mar 2024 16:27:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E286671EAF; Fri, 1 Mar 2024 16:26:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tOSDSIIb" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9DC3B71ED5; Fri, 1 Mar 2024 16:26:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709310398; cv=none; b=BKhxK1ilH8YfaP2UhVQ8jexbpgFxygY3ZLSW+Rj0kT9ErKlbIMlTb5KW6S22eYsdGpK45jRJ3oHYbjhfXHYZvS2hsJQU9a0X2GvbMjSns4blDVFfrPk77tAARlHqaKwVB7ERlTAq57x+jY7V/G0n6/y9GG1XNLwXz1YG6/wNCpA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709310398; c=relaxed/simple; bh=VcBbt1X8/pmwh+TkEynp3quxlUoSQQK1gtHMDoY69T0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KtPGjX6pJzTc6jK28WEBpPdNaEkMrkWFgut5KP0gIv9idTPTlwfh8CS+9UjizCdJYptJqXd3J1+7yyRhXP32fw+qH/8FqgRskdxEcedzjcdJdiYrsDsHLjWXKPWMxBpZuKNhwMk8b/+ZwAILiXPof5X/qi0pxWNjBqGdD731IG4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tOSDSIIb; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF2D4C433F1; Fri, 1 Mar 2024 16:26:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709310398; bh=VcBbt1X8/pmwh+TkEynp3quxlUoSQQK1gtHMDoY69T0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tOSDSIIbb5L1CFwO/8HxTyN6v4fsCPbtHUZZAhaNMXhPYtUXoUYIOgdC8E7wwbX5O PYQvYDXqF4ToTR5df+ut4bLkyZCZob0F6tATywbItCVYGNHqKTvFWBryYG7BqLGukI EE7GTqdiLlH82IgoYBoA3KxjBVcqkAzQjYqInnY1hacYrmW8CuP2+eyG05W3yrI4RY NEM29optYiOwjzU7Sxnhr0YuwvZqktbVSe7JvS6k2aa8z2ovrltB98QnCk1u929KA6 UTzTfrCUj+DfcSnnzr4sgP+NWVs1rDO3J21j/evq2lovrLehs3UBr1An0jV10d2kwZ RUSZXgvt95OKQ== Date: Fri, 1 Mar 2024 10:26:35 -0600 From: Rob Herring To: =?utf-8?B?UGF3ZcWC?= Anikiel Cc: Krzysztof Kozlowski , airlied@gmail.com, akpm@linux-foundation.org, conor+dt@kernel.org, daniel@ffwll.ch, dinguyen@kernel.org, hverkuil-cisco@xs4all.nl, krzysztof.kozlowski+dt@linaro.org, maarten.lankhorst@linux.intel.com, mchehab@kernel.org, mripard@kernel.org, tzimmermann@suse.de, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, chromeos-krk-upstreaming@google.com, ribalda@chromium.org Subject: Re: [PATCH v2 8/9] media: dt-bindings: Add Intel Displayport RX IP Message-ID: <20240301162635.GA2261739-robh@kernel.org> References: <20240221160215.484151-1-panikiel@google.com> <20240221160215.484151-9-panikiel@google.com> <13aeb2ff-72f4-49d9-b65e-ddc31569a936@linaro.org> <20240227142911.GB3863852-robh@kernel.org> <324f7b6e-c72c-40aa-afe6-779345c2eade@linaro.org> <20240228180950.GA392372-robh@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Feb 29, 2024 at 11:25:41AM +0100, Paweł Anikiel wrote: > On Wed, Feb 28, 2024 at 7:10 PM Rob Herring wrote: > > > > On Wed, Feb 28, 2024 at 02:09:33PM +0100, Paweł Anikiel wrote: > > > On Wed, Feb 28, 2024 at 1:18 PM Krzysztof Kozlowski > > > wrote: > > > > > > > > On 28/02/2024 12:05, Paweł Anikiel wrote: > > > > > On Tue, Feb 27, 2024 at 3:29 PM Rob Herring wrote: > > > > >> > > > > >> On Mon, Feb 26, 2024 at 11:59:42AM +0100, Paweł Anikiel wrote: > > > > >>> On Mon, Feb 26, 2024 at 10:13 AM Krzysztof Kozlowski > > > > >>> wrote: > > > > >>>> > > > > >>>> On 21/02/2024 17:02, Paweł Anikiel wrote: > > > > >>>>> The Intel Displayport RX IP is a part of the DisplayPort Intel FPGA IP > > > > >>>>> Core. It implements a DisplayPort 1.4 receiver capable of HBR3 video > > > > >>>>> capture and Multi-Stream Transport. The user guide can be found here: > > > > >>>>> > > > > >>>>> https://www.intel.com/programmable/technical-pdfs/683273.pdf > > > > >>>>> > > > > >>>>> Signed-off-by: Paweł Anikiel > > > > >>>>> --- > > > > >>>>> .../devicetree/bindings/media/intel,dprx.yaml | 160 ++++++++++++++++++ > > > > >>>>> 1 file changed, 160 insertions(+) > > > > >>>>> create mode 100644 Documentation/devicetree/bindings/media/intel,dprx.yaml > > > > >>>>> > > > > >>>>> diff --git a/Documentation/devicetree/bindings/media/intel,dprx.yaml b/Documentation/devicetree/bindings/media/intel,dprx.yaml > > > > >>>>> new file mode 100644 > > > > >>>>> index 000000000000..31025f2d5dcd > > > > >>>>> --- /dev/null > > > > >>>>> +++ b/Documentation/devicetree/bindings/media/intel,dprx.yaml > > > > >>>>> @@ -0,0 +1,160 @@ > > > > >>>>> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > > > > >>>>> +%YAML 1.2 > > > > >>>>> +--- > > > > >>>>> +$id: http://devicetree.org/schemas/media/intel,dprx.yaml# > > > > >>>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > > >>>>> + > > > > >>>>> +title: Intel DisplayPort RX IP > > > > >>>>> + > > > > >>>>> +maintainers: > > > > >>>>> + - Paweł Anikiel > > > > >>>>> + > > > > >>>>> +description: | > > > > >>>>> + The Intel Displayport RX IP is a part of the DisplayPort Intel FPGA IP > > > > >>>>> + Core. It implements a DisplayPort 1.4 receiver capable of HBR3 video > > > > >>>>> + capture and Multi-Stream Transport. > > > > >>>>> + > > > > >>>>> + The IP features a large number of configuration parameters, found at: > > > > >>>>> + https://www.intel.com/content/www/us/en/docs/programmable/683273/23-3-20-0-1/sink-parameters.html > > > > >>>>> + > > > > >>>>> + The following parameters have to be enabled: > > > > >>>>> + - Support DisplayPort sink > > > > >>>>> + - Enable GPU control > > > > >>>>> + The following parameters' values have to be set in the devicetree: > > > > >>>>> + - RX maximum link rate > > > > >>>>> + - Maximum lane count > > > > >>>>> + - Support MST > > > > >>>>> + - Max stream count (only if Support MST is enabled) > > > > >>>>> + > > > > >>>>> +properties: > > > > >>>>> + compatible: > > > > >>>>> + const: intel,dprx-20.0.1 > > > > >>>>> + > > > > >>>>> + reg: > > > > >>>>> + maxItems: 1 > > > > >>>>> + > > > > >>>>> + interrupts: > > > > >>>>> + maxItems: 1 > > > > >>>>> + > > > > >>>>> + intel,max-link-rate: > > > > >>>>> + $ref: /schemas/types.yaml#/definitions/uint32 > > > > >>>>> + description: Max link rate configuration parameter > > > > >>>> > > > > >>>> Please do not duplicate property name in description. It's useless. > > > > >>>> Instead explain what is this responsible for. > > > > >>>> > > > > >>>> Why max-link-rate would differ for the same dprx-20.0.1? And why > > > > >>>> standard properties cannot be used? > > > > >>>> > > > > >>>> Same for all questions below. > > > > >>> > > > > >>> These four properties are the IP configuration parameters mentioned in > > > > >>> the device description. When generating the IP core you can set these > > > > >>> parameters, which could make them differ for the same dprx-20.0.1. > > > > >>> They are documented in the user guide, for which I also put a link in > > > > >>> the description. Is that enough? Or should I also document these > > > > >>> parameters here? > > > > >> > > > > >> Use the standard properties: link-frequencies and data-lanes. Those go > > > > >> under the port(s) because they are inheritly per logical link. > > > > > > > > > > The DP receiver has one input interface (a deserialized DP stream), > > > > > and up to four output interfaces (the decoded video streams). The "max > > > > > link rate" and "max lane count" parameters only describe the input > > > > > interface to the receiver. However, the port(s) I am using here are > > > > > for the output streams. They are not affected by those parameters, so > > > > > I don't think these properties should go under the output port(s). > > > > > > > > > > The receiver doesn't have an input port in the DT, because there isn't > > > > > any controllable entity on the other side - the deserializer doesn't > > > > > have any software interface. Since these standard properties > > > > > (link-frequencies and data-lanes) are only defined in > > > > > video-interfaces.yaml (which IIUC describes a graph endpoint), I can't > > > > > use them directly in the device node. > > > > > > > > DT describes the hardware, so where does the input come? From something, > > > > right? Regardless if you have a driver or not. There is dp-connector > > > > binding, if this is physical port. > > > > > > Yes, it is a physical port. I agree adding a DT node for the physical > > > DP input connector would let us add link-frequencies to the input port > > > of the receiver. > > > > > > However, dp-connector seems to be a binding for an output port - it's > > > under schemas/display/connector, and DP_PWR can be a power supply only > > > for an output port (looking at the dp-pwr-supply property). Also, the > > > driver for this binding is a DRM bridge driver (display-connector.c) > > > which would not be compatible with a v4l2 (sub)device. > > > > So then we should add 'dp-input-connector' because they are different. > > When we haven't defined connectors, properties of the connector have > > been shoved in whatever node is associated with a connector like you > > have done. That works for a while, but then becomes unmanageable. DP on > > USB-C connectors for example. > > > > OTOH, maybe your use here is niche enough to not be worth the trouble. > > Depends if we see the need for video input connectors in general. > > My use case is a dedicated hardware that runs DP tests of an external > DUT. I can't think of another scenario where we'd need an input DP > port. IMO this is pretty niche, but I'll leave the decision to you Your device is niche, but a video capture/in device is not that niche. After all, Smart TVs run Linux. They have video in connectors. Maybe not DP though. It's conceivable someone could make a "Smart Monitor" I suppose. Rob