Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1955730rbb; Tue, 27 Feb 2024 06:33:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV7xThUhw+WBShJQhlgeJr82/q3mG89un1Q1wLQQ92XLieW2vCFdAHE4xBs3a1r62EKnXosqWhSsy9vTj3FzY3NS+THiIqU4AmeCj/TZA== X-Google-Smtp-Source: AGHT+IFLu9Njxyu7422XfH69+fTBzqzhhPAlbwb8NO05jXlXrx05coJkGbz+cO83m0P/mSFZnIXA X-Received: by 2002:aa7:d385:0:b0:565:9b29:ad3e with SMTP id x5-20020aa7d385000000b005659b29ad3emr6582892edq.6.1709044406299; Tue, 27 Feb 2024 06:33:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709044406; cv=pass; d=google.com; s=arc-20160816; b=qv6eSGeWU/sl/mPE3I2L6qQQ5OssW4xGDk9xXlFlvb0ClsO3dhodFquR1ZixU2m3Br 0L06yw4Uk33DQ10mAJbDvJs4KJ8wHry0V3lMlO/n4reXZqHBnArCaqU+eNCuEgx5TURl 89i6l8UqDgDDtAhJFunFiWz56+UOxy/EFVSGXw6x1hnFxv0mYqGmGpMRYD+VdzKTmoFx eZN9YI16p67SWyL7xrRtd7hNpa5P9P8ZrfHKqDdR16MSlh4ek8+vBN/2eP8DwTHOgWaK BTZWRhVq/7W5GvdtB/xEtqvE5lxySySUMldYi1sDIDiSQ2w4Sn4t/cGW+7ge7yDnPnpO 5gmQ== 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=9jqb+I3gvIBGJxmizlFlVp88AotEQWyLcTQ4FAQixP8=; fh=dTncgDdwjJw73jqoVyvmG8XoCY/FOv5+U3tvFWpcJAg=; b=rijHGkqKwBHrL9CJqKRLK7y9EtJbi9RuDwpIbmOj1+FxJJru+SLdxXOIvBn+9ViDFb yfbB5xVBJsjRx6V8JVwJuW/NpB0jDt5dA6Tgh3ivtHHrLMn4GoAimUcB+VMVuvOaRdVe lMqFEeOlVM3+qnOwf0tglEu3YbPehXTwReyFxwF0DldWRE0fqfxMEb9d+ieoS8DWak8l 5+AZM/b28KM1oJnSPVX0frj9zk+Sxir5nHQmaASZekkv4qfBu5f9twbRuCUwJCveAC9R pmpzFDHP+GPcKVZBr5pR0h1w8Fxf7vU4BZRDnCenJmujp5kJR6yWk8HY2wXF+oIG2OdX M3vw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Pm9/YHG6"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-83391-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83391-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g20-20020a0564021ed400b0056631f9b70fsi692874edg.691.2024.02.27.06.33.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 06:33:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83391-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Pm9/YHG6"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-83391-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83391-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 am.mirrors.kernel.org (Postfix) with ESMTPS id CB4F21F2AB2F for ; Tue, 27 Feb 2024 14:25:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B854A145322; Tue, 27 Feb 2024 14:24:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Pm9/YHG6" 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 D6D8413B798; Tue, 27 Feb 2024 14:24:44 +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=1709043885; cv=none; b=OWVq6hMQOV4pmAt2huOOO0oRR4XKOEk/OnqMXMunHM+0LsW/To0riYPj05jkR0ZMMrymodCpR89LoBXdLUnW0y1vRYdirxHU6yEuwlV6o1R6Md+8AkP8fGValaRVP0Zdgp+xJEuhUpZO/MwCvJAaOF38OeDTnsrbcgfA4qvvITo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709043885; c=relaxed/simple; bh=y5hECNS3lW8/P87KlOIBOFLlBqMFwb8pWysds1a84KA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IrJB2Q2nyNEMzGk/egMC0OwvvE6yW6293ZS4QC/MRtMEWAgAaGKi8pb2uNT9hRsUFxCUWVJcreGBH5Uelvsz9T4NDfVr2SEijTiPP9n9DhUvY0SrViKegcoogombDWBLO6Wv0FhoFfYBnz0pLNJU7mo++OmRGKkPcQWKhJK+iMw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Pm9/YHG6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 147B8C433C7; Tue, 27 Feb 2024 14:24:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709043884; bh=y5hECNS3lW8/P87KlOIBOFLlBqMFwb8pWysds1a84KA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Pm9/YHG6O2HDZ0A57Pt97CBOHlsFbQaPxF8FEqHjpkSuGre+5rjKvGzg++0+3YRI8 QZJTpaZ/UkFXGeIJio7C5iC1BkDTSWQ9L16LAdw3gIEBSv6mpWRgzn4l8qQm78jb+1 OeebeBnHKovuG8y8nKOrj7HfBXQmEvCJ01NNyRiQEM38qYV+XKiqdpRmG54g7yT5vB vWzvY4b+M3RDGa6MvgKrIVcd0ThjE8bCn8SFPM1DrvHYyHmfsP/blMci+RO+ZrII+y t4ftu+ERpB5LXLyUUBhX5+ryx619zmo/7itU9BDB/5ha1D5XQ26bIaamxjOL6b+Bpy FkW8Os/vdXLag== Date: Tue, 27 Feb 2024 08:24:40 -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: <20240227142440.GA3863852-robh@kernel.org> References: <20240221160215.484151-1-panikiel@google.com> <20240221160215.484151-9-panikiel@google.com> <13aeb2ff-72f4-49d9-b65e-ddc31569a936@linaro.org> <890afb05-1b19-47b2-bfd8-5f6de0caeda3@linaro.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 Tue, Feb 27, 2024 at 02:11:27PM +0100, Paweł Anikiel wrote: > On Mon, Feb 26, 2024 at 6:29 PM Krzysztof Kozlowski > wrote: > > > > On 26/02/2024 13:43, Paweł Anikiel wrote: > > >>>>> + intel,max-stream-count: > > >>>>> + $ref: /schemas/types.yaml#/definitions/uint32 > > >>>>> + description: Max stream count configuration parameter > > >>>>> + > > >>>>> + port: > > >>>>> + $ref: /schemas/graph.yaml#/properties/port > > >>>>> + description: SST main link > > >>>> > > >>>> I don't understand why you have both port and ports. Shouldn't this be > > >>>> under ports? > > >>> > > >>> I put both so that you can use the shorter port property when the > > >>> device only has one port (i.e. no MST support). It would work fine > > >>> without it. If you think that's unnecessary, I can remove it (and use > > >>> the ports property even if there is only one). > > >> > > >> No, it is fine, but then you need allOf: which will restrict to only one > > >> of them: either port or ports. > > > > > > There already is an allOf below that says that ports is required for > > > MST support and port is required otherwise. Isn't this enough? > > > > Add both port and ports and see if it is enough. > > Ok, I see. I tried and this seems to work: > > oneOf: > - required: > - port > - required: > - ports > > And that would make the if/else with port and ports below not needed. > What do you think? Just always use 'ports' rather than complicate things. Rob