Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2536402rbb; Wed, 28 Feb 2024 05:10:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXahHABLUOvzTU84e5LbngZBWxNgERpmhf+nfsSCRxy8wF1MrQXCWU89wCSOuSzt1A5QBKTJFV5cW5dQ0SnIqPdxMmxSQZtzf4nUgjXxA== X-Google-Smtp-Source: AGHT+IFyiyEgKqtVHAdaVVDVyaGvgfSjImwfR4sA8WGOeKnFSdsYdvG0S4aTCC22nXVRyzSU1VRy X-Received: by 2002:a05:6830:125a:b0:6e4:2769:e9d8 with SMTP id s26-20020a056830125a00b006e42769e9d8mr13676818otp.22.1709125808137; Wed, 28 Feb 2024 05:10:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709125808; cv=pass; d=google.com; s=arc-20160816; b=bXCHoT5ghTk1D0CN7tNl2PzMNlw3/KzWmc3Q0ajpvpw/buoX/AXMvgsX1voAUZoKZL 4eMOMnPIEkj+/nVEfpZs1RO2xPeTdOpfY4qf7jqjSd1UTo7ui7yVG6S0CtM+ws11kS/B INSx9bR8eJeTIGQl0h1uCGA+VoHPMQPPEPc9J1fmOmySLNBGVjL1yKfl7WiY8XiUA6J2 IGb4AUpB5oOvBv9RJ30BRmLSpAEK7gPtcFU5JZ735uiRnHUKk2mkn7lemSXdqWMnUV4h UxbnxBpXpol36ZXwaKkt0LmZAYHybe0mOkZTCtOIJo+A2jnpYEfTUmOe3owVmStdcXIZ 4D3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=JGd0yKh3396kCNNhs33PFvPTU/Yg35V86efPvYcoBpQ=; fh=s/qIzWcIKbYchQhncGxOSJIaay8+PzBBz3c4E8y3YzU=; b=NSIm2fF61qnbl+gEBRn8w5+Px33054XyxdLnacVEEHfLYnsZWizwW4wKTutB/3Yqps QhpE2DWKRLoLI8YuBUSXv3mGd09KCkItSKVeeLaQwBfrZNTKt7k/OGK1TfZGwJdezfbL HgnT4i4dpI8nuNx2CtpzgE1/SENRmUrClxku8Ww+qC2QQC8+z3kKFQ4rRrAKGVmp6wi7 JhRnW5CcSYE++me6KW9qDnXxp2lBwMOp2cfjwhCh+J5YFq94wFfFPOTfK93p8jJ445cR ZG8OYje1AO+zOz2PWJ9rQOscYvw4c9duQ6wU644wS1gYTacLI0RwQCu/utV1MpW0ulie bm2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=o2TwxEsP; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-85068-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85068-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id n13-20020a05622a11cd00b0042eb3a8f0fdsi362936qtk.534.2024.02.28.05.10.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 05:10:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85068-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=o2TwxEsP; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-85068-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85068-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id CFA631C253FE for ; Wed, 28 Feb 2024 13:10:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1ACD149E0B; Wed, 28 Feb 2024 13:09:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="o2TwxEsP" Received: from mail-il1-f181.google.com (mail-il1-f181.google.com [209.85.166.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39EDB149E01 for ; Wed, 28 Feb 2024 13:09:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709125786; cv=none; b=UXmZCJ4qXGLb+ZNAwmoWAGx3uLmxjUuNvWQB6upcRqgu4YwxLLX9Ew5B+1jmDpQTzlPY+Kh5M1u2ZMk48C7uzgIc7N9X1zkMN2Vzosj6sWvvLRCdswHB4GW+1NFrsaOVP4g8c9pQVPYYa9xdSqYTMeoy0J0AO2Zu4WbPk+l3b5Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709125786; c=relaxed/simple; bh=22zXZ9PodnLDXQmS1om0gHCZZMIyrw8AhQ46vkhZT5A=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=WHk9Dq9zYLPin8GjPxudFolAG8pWq6AL66Pct87JaRwOjCMLqm/WHWEoKFT5EKY0bAQvmnifNYHUkSDLYjJFxAJRTReL27joca54TAZdcIiPeuDtSccqbQB3Da/LxiVC8XNrQpEvsuk967ros/ZCHhRA4Z/wOVuTgkgYySwZd4Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=o2TwxEsP; arc=none smtp.client-ip=209.85.166.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-il1-f181.google.com with SMTP id e9e14a558f8ab-365b3bab179so4282305ab.0 for ; Wed, 28 Feb 2024 05:09:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709125784; x=1709730584; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=JGd0yKh3396kCNNhs33PFvPTU/Yg35V86efPvYcoBpQ=; b=o2TwxEsP+gJMp3ow03MGNdnOkUCkXkZNZFxkG0bFRwyp6Hhjy8AS2TD4hf4Bv+okW2 24/VnbmudIBL25D/AVoY6Foj7WagMoDIQxiY0pVjv6/9nqCVUu3BXW3MQXuWm6LTbrGT NWKAra5/5GkECn5ovSOpbgZDOwkOkUzGOJGFXx4pkIeWIDH+lcHFcMI/Ozms+8aNfIyT IVDhHbvhq2ebmsGsRRundQ42jYDwGFoQDvubxsG3nIDPRP9XCaqmAQ9aqJpUJaPXUvpR G1mIa5tu9M3HIhj3nTd0Y43zU0mReo3XgHNm9UooQA5xJEh15TWKtyaTpsFa7ccI4YXw Fd3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709125784; x=1709730584; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JGd0yKh3396kCNNhs33PFvPTU/Yg35V86efPvYcoBpQ=; b=AMoU3smxX9MRMAZzxfS6PrBGfnY8mpdulcgaBTj0DIOFDtqN82SsUse/ziz0jzJ/lY dBwEzd04rKMuPPKm1H2WW7jut3grI8KxElCXNVoo79hnSpTUyjyROB4KMp1EiaSONJBy xj5em8MswCCtkxgHqJQtzGRSCbYIEYQwrKZWOr8509yoFdCf3dkeNQVDC39Kturiw/zz t0n0N1heivLYW9Xw/3dEOpdEUGJLKr+UHXJ6BuK33BC+H9XkDGzqkCTHs6VDQGoBRk9/ KM5ZNF1RBNmGWBWqdvHvZ+DMopEAvqGopN65fzI3vpMro9/wzQQvSbmQYx03QddVFzVt 2oCw== X-Forwarded-Encrypted: i=1; AJvYcCX3coPpH/KUzAdhZOzkxiDd6S+mqk8gNWNWXxTBTcEZyFro2GKW5/IjeM3rYIWCyd1+fkD5h5nNnW4ZjmBAfwxc9sFbbcHV1dicYYOI X-Gm-Message-State: AOJu0YwuwLKUDMRoJ3CuzPv+SAMpfAPJRVVcYOjlWUBbgqmcQUlXx7N7 lYefgMqZp2UFJFkrwBe6QPqEQ4IZa35iafyltVYJSszrhOzFcoF9VIjx/wXfWEVPvRwExXbmPWi kPeJ968AIzSDV5+lAWCvHnDzcAd+jwlKB1YWH X-Received: by 2002:a05:6e02:2147:b0:365:d8a:21e0 with SMTP id d7-20020a056e02214700b003650d8a21e0mr17157230ilv.21.1709125784147; Wed, 28 Feb 2024 05:09:44 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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> In-Reply-To: <324f7b6e-c72c-40aa-afe6-779345c2eade@linaro.org> From: =?UTF-8?Q?Pawe=C5=82_Anikiel?= Date: Wed, 28 Feb 2024 14:09:33 +0100 Message-ID: Subject: Re: [PATCH v2 8/9] media: dt-bindings: Add Intel Displayport RX IP To: Krzysztof Kozlowski Cc: Rob Herring , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Feb 28, 2024 at 1:18=E2=80=AFPM Krzysztof Kozlowski wrote: > > On 28/02/2024 12:05, Pawe=C5=82 Anikiel wrote: > > On Tue, Feb 27, 2024 at 3:29=E2=80=AFPM Rob Herring w= rote: > >> > >> On Mon, Feb 26, 2024 at 11:59:42AM +0100, Pawe=C5=82 Anikiel wrote: > >>> On Mon, Feb 26, 2024 at 10:13=E2=80=AFAM Krzysztof Kozlowski > >>> wrote: > >>>> > >>>> On 21/02/2024 17:02, Pawe=C5=82 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 vide= o > >>>>> capture and Multi-Stream Transport. The user guide can be found her= e: > >>>>> > >>>>> https://www.intel.com/programmable/technical-pdfs/683273.pdf > >>>>> > >>>>> Signed-off-by: Pawe=C5=82 Anikiel > >>>>> --- > >>>>> .../devicetree/bindings/media/intel,dprx.yaml | 160 ++++++++++++++= ++++ > >>>>> 1 file changed, 160 insertions(+) > >>>>> create mode 100644 Documentation/devicetree/bindings/media/intel,d= prx.yaml > >>>>> > >>>>> diff --git a/Documentation/devicetree/bindings/media/intel,dprx.yam= l 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=C5=82 Anikiel > >>>>> + > >>>>> +description: | > >>>>> + The Intel Displayport RX IP is a part of the DisplayPort Intel F= PGA IP > >>>>> + Core. It implements a DisplayPort 1.4 receiver capable of HBR3 v= ideo > >>>>> + capture and Multi-Stream Transport. > >>>>> + > >>>>> + The IP features a large number of configuration parameters, foun= d 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 devicetre= e: > >>>>> + - 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 i= n > >>> 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.