Message ID | 20240507155413.266057-6-panikiel@google.com (mailing list archive) |
---|---|
State | New |
Headers |
Received: from am.mirrors.kernel.org ([147.75.80.249]) by linuxtv.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <linux-media+bounces-11052-patchwork=linuxtv.org@vger.kernel.org>) id 1s4NBR-0007eU-0n for patchwork@linuxtv.org; Tue, 07 May 2024 15:56:49 +0000 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 38EED1F2936E for <patchwork@linuxtv.org>; Tue, 7 May 2024 15:56:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1DB2016D319; Tue, 7 May 2024 15:55:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="N9cyq3CQ" X-Original-To: linux-media@vger.kernel.org Received: from mail-wr1-f74.google.com (mail-wr1-f74.google.com [209.85.221.74]) (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 478ED168B19 for <linux-media@vger.kernel.org>; Tue, 7 May 2024 15:55:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.74 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715097323; cv=none; b=PAU/78/slW69dUE0L2pW1e6jI68m1ZuJpM02Ba0ymz6/aqsdZNuU7PUx6OyTBEgmPmDwcbOqM/yFg7NpxUdiZN27+MK/tEGaHvrdbJup1rhQXg2a4NqDPy6mi1jwBWCen77Dwo5D1wWEbfbv9RP19ECwCCSOyqNqjVnTi0c6dpM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715097323; c=relaxed/simple; bh=qIz58J9D08HEDbRnnXnEvA94us7AQDo0d2kZB+Mdj40=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=KmCpIaV219Mf5Y1OpgPcEskfONkHzkEaJqY8EjRuCo1Gcald1aBlAe9mn0h4P7qxLoMGbJkjY6pJJ8Z/Bo5kLFmY/hqSbzF13uJTze6ltKPkvWpLz5zauMMwTtIKqNoHh0QzMaVCGHmI2/60lCjqD+C6pBJ3DcnkyDgn1Jt1b14= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--panikiel.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=N9cyq3CQ; arc=none smtp.client-ip=209.85.221.74 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=flex--panikiel.bounces.google.com Received: by mail-wr1-f74.google.com with SMTP id ffacd0b85a97d-34dd570f48cso2037915f8f.3 for <linux-media@vger.kernel.org>; Tue, 07 May 2024 08:55:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715097321; x=1715702121; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=ENm7dGdRCegViXpKOlFOwQirdvQpMHKuwbsV2GUz3rE=; b=N9cyq3CQJy3fi/exqKi9OitPCwx9QKdlWuqzjZdXQ3R6OmMC64JoXHbvXpg4mqA9MK +1ihrfxoV7T2HK6tfA2aUeCqoQPkRR2WLVI9Pgm7HirT7sgPm8IvLTtdc0E0xAi25Bop 19jGbiMK9JB3jTY5ncUhFzW6CE+h/lFp6iKyDLzFPBbZ8E8LY2tmT7Mg2GWZwssJB/vQ clAKgcmGCw8L9Uat8/C52EEyecbu1kX+DGFzC93SFo3Ev3kZ4Nw1gGiMYlOUtoiZogqK FyuDr4696/htDJxEMQ9btgZwdtvlNkEcNqYNtwO/wWOOvot0DG7w4ltRQbz8YlEOZ/s/ r6Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715097321; x=1715702121; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=ENm7dGdRCegViXpKOlFOwQirdvQpMHKuwbsV2GUz3rE=; b=Yry//yAp5MdRmUb8RNPCYYLJNmVDCtnl4zi/NzZb+qbiIvbOJoeue+BVMC/wNalrVW hIslu9WXAIqRzOV2Ws6021FFKquppZbL/ZpzYD7MEhgj6LeNmbXZSS+/KP1UGwV1il/q +OtRh2506t1bD1qncy6VSl/00oFJEbdqx48WQQVuBmWwZlRb9IWdOKo4f9ZMuzNuwMBK 2xOTr+DcJ/KwIkcWX2hnBreeYOrPA9HXslexsw0rToR9sfPTPuNm3KqvgihX7XPYgNh9 rbPJ83FO9VD+9sc/7/ZzhHWWRfCOVQEgNEp/+zmS5rKYHTxpm7pAoPi9F8Qhop5pgGM7 pCkw== X-Forwarded-Encrypted: i=1; AJvYcCVPlths+s+AfAPWA/zgNiNofkjHx9CwHIivrkcIKfo7XopW/GVjYrjLffkddh+pme288S5Q15jwamsTqIpjbaL7dtcOJSOCbrnLG1g= X-Gm-Message-State: AOJu0YybEGX4aDCxiVTdTPA2sBHwwCsaNflf/Lg+2OWE4M58Rthm4FC7 oNODSmH00kgcOISuYykDL9j3fCsjkeb2LT/EXtSbL2NMcpO2K33yFAQarLG8Oc/ER93Nq9M+5B0 mWeP9BpY+nA== X-Google-Smtp-Source: AGHT+IHGZ0yavujoh3USa9TPTOqVQ47cF03iCo0u4JgWlc3kP8zUzp3F+JtX/FYOC3mCEQ6JEWGwA5+DbsxNUw== X-Received: from szatan.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:2d83]) (user=panikiel job=sendgmr) by 2002:adf:ed83:0:b0:34c:d3c5:b12d with SMTP id ffacd0b85a97d-34fcb3aaef5mr233f8f.14.1715097320472; Tue, 07 May 2024 08:55:20 -0700 (PDT) Date: Tue, 7 May 2024 15:54:08 +0000 In-Reply-To: <20240507155413.266057-1-panikiel@google.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: <linux-media.vger.kernel.org> List-Subscribe: <mailto:linux-media+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-media+unsubscribe@vger.kernel.org> Mime-Version: 1.0 References: <20240507155413.266057-1-panikiel@google.com> X-Mailer: git-send-email 2.45.0.rc1.225.g2a3ae87e7f-goog Message-ID: <20240507155413.266057-6-panikiel@google.com> Subject: [PATCH v3 05/10] media: dt-bindings: video-interfaces: Support DisplayPort MST From: " =?utf-8?q?Pawe=C5=82_Anikiel?= " <panikiel@google.com> To: 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, robh+dt@kernel.org, tzimmermann@suse.de Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, chromeos-krk-upstreaming@google.com, " =?utf-8?q?Pawe=C5=82_Anikiel?= " <panikiel@google.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-LSpam-Score: -11.1 (-----------) X-LSpam-Report: No, score=-11.1 required=5.0 tests=ARC_SIGNED=0.001,ARC_VALID=-0.1,BAYES_00=-1.9,DKIMWL_WL_MED=-1,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,DMARC_PASS=-0.001,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1,SPF_HELO_NONE=0.001,SPF_PASS=-0.001,USER_IN_DEF_DKIM_WL=-7.5 autolearn=unavailable autolearn_force=no |
Series |
Add Chameleon v3 video support
|
|
Commit Message
Paweł Anikiel
May 7, 2024, 3:54 p.m. UTC
Add a DisplayPort bus type and a multi-stream-support property
indicating whether the interface supports MST.
Signed-off-by: Paweł Anikiel <panikiel@google.com>
---
.../devicetree/bindings/media/video-interfaces.yaml | 7 +++++++
include/dt-bindings/media/video-interfaces.h | 2 ++
2 files changed, 9 insertions(+)
Comments
On Tue, May 07, 2024 at 03:54:08PM +0000, Paweł Anikiel wrote: > Add a DisplayPort bus type and a multi-stream-support property > indicating whether the interface supports MST. > > Signed-off-by: Paweł Anikiel <panikiel@google.com> > --- > .../devicetree/bindings/media/video-interfaces.yaml | 7 +++++++ > include/dt-bindings/media/video-interfaces.h | 2 ++ > 2 files changed, 9 insertions(+) > > diff --git a/Documentation/devicetree/bindings/media/video-interfaces.yaml b/Documentation/devicetree/bindings/media/video-interfaces.yaml > index 26e3e7d7c67b..7bf3a2c09a5b 100644 > --- a/Documentation/devicetree/bindings/media/video-interfaces.yaml > +++ b/Documentation/devicetree/bindings/media/video-interfaces.yaml > @@ -94,6 +94,7 @@ properties: > - 5 # Parallel > - 6 # BT.656 > - 7 # DPI > + - 8 # DisplayPort > description: > Data bus type. > > @@ -217,4 +218,10 @@ properties: > Whether the clock signal is used as clock (0) or strobe (1). Used with > CCP2, for instance. > > + multi-stream-support: If MST is a known term for DP, then perhaps "dp-mst-support" for the name. In any case, 'dp' should be in there somewhere. > + type: boolean > + description: > + Support transport of multiple independent streams. Used for > + DisplayPort MST-capable interfaces. Wouldn't this be implied by the devices at each end of the link? The drivers for each device should really list out features supported for the link. The mode used is then the union of those 2 lists with DT properties only used when the union is not definitive. > + > additionalProperties: true > diff --git a/include/dt-bindings/media/video-interfaces.h b/include/dt-bindings/media/video-interfaces.h > index 68ac4e05e37f..b236806f4482 100644 > --- a/include/dt-bindings/media/video-interfaces.h > +++ b/include/dt-bindings/media/video-interfaces.h > @@ -12,5 +12,7 @@ > #define MEDIA_BUS_TYPE_CSI2_DPHY 4 > #define MEDIA_BUS_TYPE_PARALLEL 5 > #define MEDIA_BUS_TYPE_BT656 6 > +#define MEDIA_BUS_TYPE_DPI 7 > +#define MEDIA_BUS_TYPE_DISPLAYPORT 8 > > #endif /* __DT_BINDINGS_MEDIA_VIDEO_INTERFACES_H__ */ > -- > 2.45.0.rc1.225.g2a3ae87e7f-goog >
On Fri, May 10, 2024 at 11:16 PM Rob Herring <robh@kernel.org> wrote: > > On Tue, May 07, 2024 at 03:54:08PM +0000, Paweł Anikiel wrote: > > Add a DisplayPort bus type and a multi-stream-support property > > indicating whether the interface supports MST. > > > > Signed-off-by: Paweł Anikiel <panikiel@google.com> > > --- > > .../devicetree/bindings/media/video-interfaces.yaml | 7 +++++++ > > include/dt-bindings/media/video-interfaces.h | 2 ++ > > 2 files changed, 9 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/media/video-interfaces.yaml b/Documentation/devicetree/bindings/media/video-interfaces.yaml > > index 26e3e7d7c67b..7bf3a2c09a5b 100644 > > --- a/Documentation/devicetree/bindings/media/video-interfaces.yaml > > +++ b/Documentation/devicetree/bindings/media/video-interfaces.yaml > > @@ -94,6 +94,7 @@ properties: > > - 5 # Parallel > > - 6 # BT.656 > > - 7 # DPI > > + - 8 # DisplayPort > > description: > > Data bus type. > > > > @@ -217,4 +218,10 @@ properties: > > Whether the clock signal is used as clock (0) or strobe (1). Used with > > CCP2, for instance. > > > > + multi-stream-support: > > If MST is a known term for DP, then perhaps "dp-mst-support" for the > name. In any case, 'dp' should be in there somewhere. I tried to keep the name generic, for the use case of some other bus with a similar feature, e.g. CSI-2 and virtual channels. > > > + type: boolean > > + description: > > + Support transport of multiple independent streams. Used for > > + DisplayPort MST-capable interfaces. > > Wouldn't this be implied by the devices at each end of the link? For the case of the Intel DP receiver, MST support is an IP configuration option which cannot be determined at probe time, so it needs to be read from DT. Having learned that the receiver should use properties from video-interfaces, I decided to put this property here. Do you think that's a good idea? > The drivers for each device should really list out features supported for > the link. The mode used is then the union of those 2 lists with DT > properties only used when the union is not definitive. The mode that actually gets used (MST vs non-MST) is negotiated during link setup as part of the DP protocol - the sink reports to the source if it supports MST, and it's up to the source's ability to enable MST or not. The property I'm adding here is only useful for the driver to know if the hw supports MST or not (in the case it can't determine it itself). > > > > + > > additionalProperties: true > > diff --git a/include/dt-bindings/media/video-interfaces.h b/include/dt-bindings/media/video-interfaces.h > > index 68ac4e05e37f..b236806f4482 100644 > > --- a/include/dt-bindings/media/video-interfaces.h > > +++ b/include/dt-bindings/media/video-interfaces.h > > @@ -12,5 +12,7 @@ > > #define MEDIA_BUS_TYPE_CSI2_DPHY 4 > > #define MEDIA_BUS_TYPE_PARALLEL 5 > > #define MEDIA_BUS_TYPE_BT656 6 > > +#define MEDIA_BUS_TYPE_DPI 7 > > +#define MEDIA_BUS_TYPE_DISPLAYPORT 8 > > > > #endif /* __DT_BINDINGS_MEDIA_VIDEO_INTERFACES_H__ */ > > -- > > 2.45.0.rc1.225.g2a3ae87e7f-goog > >
On Tue, 07 May 2024 15:54:08 +0000, Paweł Anikiel wrote: > Add a DisplayPort bus type and a multi-stream-support property > indicating whether the interface supports MST. > > Signed-off-by: Paweł Anikiel <panikiel@google.com> > --- > .../devicetree/bindings/media/video-interfaces.yaml | 7 +++++++ > include/dt-bindings/media/video-interfaces.h | 2 ++ > 2 files changed, 9 insertions(+) > Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
diff --git a/Documentation/devicetree/bindings/media/video-interfaces.yaml b/Documentation/devicetree/bindings/media/video-interfaces.yaml index 26e3e7d7c67b..7bf3a2c09a5b 100644 --- a/Documentation/devicetree/bindings/media/video-interfaces.yaml +++ b/Documentation/devicetree/bindings/media/video-interfaces.yaml @@ -94,6 +94,7 @@ properties: - 5 # Parallel - 6 # BT.656 - 7 # DPI + - 8 # DisplayPort description: Data bus type. @@ -217,4 +218,10 @@ properties: Whether the clock signal is used as clock (0) or strobe (1). Used with CCP2, for instance. + multi-stream-support: + type: boolean + description: + Support transport of multiple independent streams. Used for + DisplayPort MST-capable interfaces. + additionalProperties: true diff --git a/include/dt-bindings/media/video-interfaces.h b/include/dt-bindings/media/video-interfaces.h index 68ac4e05e37f..b236806f4482 100644 --- a/include/dt-bindings/media/video-interfaces.h +++ b/include/dt-bindings/media/video-interfaces.h @@ -12,5 +12,7 @@ #define MEDIA_BUS_TYPE_CSI2_DPHY 4 #define MEDIA_BUS_TYPE_PARALLEL 5 #define MEDIA_BUS_TYPE_BT656 6 +#define MEDIA_BUS_TYPE_DPI 7 +#define MEDIA_BUS_TYPE_DISPLAYPORT 8 #endif /* __DT_BINDINGS_MEDIA_VIDEO_INTERFACES_H__ */