Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1905882rbb; Tue, 27 Feb 2024 05:11:57 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWooW4yl/yMUFPWC+cYcEEUnDjMYE4J0ldAuCukrrcXYGX/6hK/ew4IIHlLvKtcLGbjBw3KjQMLNkB52HH1tLkKQg24VoERxvrwC7xdsA== X-Google-Smtp-Source: AGHT+IFGnh4/fmXQjAkoEc3cGGZHpzBngaJP3SjYcOhE4TgvOtJNfLcFSPnbVrIT70o7qWTej14j X-Received: by 2002:a05:620a:191c:b0:785:d94e:a026 with SMTP id bj28-20020a05620a191c00b00785d94ea026mr2564803qkb.26.1709039517319; Tue, 27 Feb 2024 05:11:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709039517; cv=pass; d=google.com; s=arc-20160816; b=qD3ODbzwe5XpTnbL+vXaDE7xeZiGBI9I3OzsYb8JK+P4hUCBX8QYv7LeBXbBglOKfP xQa0w0OFL5nXo7JJrrcxSVgma1GbZqFITmNlKSengq+Lzj7sywph5SNsy+bU033MQxBk WDuFYEzR/feSEBjZc6j3SMm9w9hFqm/rCBHl0l8jwdwgpLDTrIFZ/8HOPg833zrDYuX1 1q5V7XGf6QFK9oAgl8cNkVPZAZqJ7C2dkItbMvNFaCgNINoa0A7gP0RZ1ImM2YPFI9Ud aKTtAbtsloq/L+3PFILOlfiIy+rRscDB8KRln2FVSH85qslLSeNhRmCdTRKuDc9O1e0q 3tEg== 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=udo8bD1gQZ0TgNyTOs65mIj8/NeIRI7TPXyi6M/72Q4=; fh=ph4qjv1N7EBqTQ3iG8lpK9z+uAdhlJv42GzwlZ3/Dhc=; b=lN/Y2l3lgmJFYeUCJKFJPvHgv86/u/WFuH/r9o4wWTtT4Uosgcqkf3M4aeSU74hbxo x0uoZlVPBZVrM5MO8D6u8SEsNDTekg/kmJjkt3yiFsqybD5T050aNHv9P7J6ffnEtnfZ OkOu9tgp/O0hKRvv4xY04ZkamlVxleR1uc3x5UVUTn4z6J/NFZhwEjUV9xYpZlBv/5Eo rVFX1uGWaRqn3wSnqRE8aTBrrjYX1uZoGyNFm857ZxARBuPFhGeYbRzVzYwSEy4pLKr6 F8u6qszPMVD9bnQ5mJirnvtkwl8s9iuiQ6ApYwzLNfUAdyt9X2SOUV1jGyugXF+T4h0C 9Gjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=tvsnowVK; 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-83292-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83292-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. [147.75.199.223]) by mx.google.com with ESMTPS id i15-20020a05620a0a0f00b007877b56f3b9si7201429qka.592.2024.02.27.05.11.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 05:11:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83292-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=tvsnowVK; 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-83292-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83292-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 0DF1A1C270A3 for ; Tue, 27 Feb 2024 13:11:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A8881EB25; Tue, 27 Feb 2024 13:11:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="tvsnowVK" Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) (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 2CBCF13AA49 for ; Tue, 27 Feb 2024 13:11:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709039501; cv=none; b=FGhyJqaDh8Dhi5xow169fiYYDBRvy1FDptg2kk20owPlVXuxspDOqFjZvLwmyU1rO13wnV1NfesDLh9uZqqQSc/uItbot9IDQOaXnHmbCr7IXxdc9+puwkqVaLsUsirbZZIjiMVsbqgLxRyzq8Kne0KSXqvCrs//V+GbIM7VCyQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709039501; c=relaxed/simple; bh=bAZ3iM58OJ/c+sYIqOEGYcO2YI1AZnqpgNdLdjXcmvg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=sqRDkNbCNOwZLY24GxmqJdn2KwzWMGWi3w/4XGo8H0SLFYUErtl1Cq8Oq3r+HXM1VG+O6xY8c3MGwcRVVIiy/b2nOYjCz+IklhdTw02xVR2tGMjxI0G4dcffWyxELMxH+2QYwrPeeZch0SXIZKGieqDJqS+O9lyaJuHllHs84H4= 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=tvsnowVK; arc=none smtp.client-ip=209.85.166.42 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-io1-f42.google.com with SMTP id ca18e2360f4ac-7c7c983157aso97673039f.3 for ; Tue, 27 Feb 2024 05:11:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709039499; x=1709644299; 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=udo8bD1gQZ0TgNyTOs65mIj8/NeIRI7TPXyi6M/72Q4=; b=tvsnowVK+HdQ/3oyJsC+yItPc89cXzDqP0xkfENlrJci+0g3TmzU6Ayir/FDTZUfrI 8fArkCp2LIIlIKgszr2sUpfVtinWm6wfiUAq33Gpya8d+d8cQZTm8s34g2ExuvuEd6lU TSVRMF076NIUSwQoZPInIH1kELkiCxdvcHOvyIMHjjwd4E67K0mSiWG2G5ET1CvINVs0 ZelU7nOBzfxSXEQA9TMWdkor7aBDmOQ0wOVnbZ42nId2hMORIED159uH/kDXObTafSJ7 kybSfEPnRr5rqhnoPU5xhERt68jrSuuWKNFL8fzOZft19paTlx29N+gd7B3A5fMdyzYJ 9+hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709039499; x=1709644299; 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=udo8bD1gQZ0TgNyTOs65mIj8/NeIRI7TPXyi6M/72Q4=; b=R/fi8ITN6MkWiubUCavx8oEw/il6eG5WkEGFsioiLsHTYfAortk/aZI3PqZFBMwgDG W8Q5RG5swT8LbnEajghnHukaWefEULlmX9/MfQpEy/iX/V2Hx79lxQ5HANIW+x/O5SnF XbAVRKAXjIQWNHK6MbSbur8JBYaqIUI5AZ+KIkDdbylG8ISl2iD4v1sGjYqbC75ZxiNZ rmjjg7JzP3foX3UaST9CQ1Jh/khazzrfYbEXqv980LA2xXRrewkH4JGF5HFTkmXsSKgi Zs/pwrtLH+FmYoGGFQSXmPBqhP+Xp6qUURJtppQfhxSGdIzGZ+mgaa6weXU0lljBHk1G 6XqA== X-Forwarded-Encrypted: i=1; AJvYcCXtEev1V8alHRzxSPI3DaULjsGeYnvAxvTETp+3ucZeij0Mnymi2iBXiLqzw3VbPuMxmX7UAzTRzxfGp87omAhXygXJx5iC7qobCrxl X-Gm-Message-State: AOJu0YxZHZc8BzknejkrIOhE+icPWsZ7AJaZ2W/LiK6RJH1LuJG3/J0H qSwB7hUs134LoZfaCSLmZ4smT5FBIoE4Zp1p5uaS5qMokxILQRHY4Khk9uyCYcSFCyHtZPBJdMn bRrr+Sf8U50/5kFfKTNQ6ajQskiNNfSEiCpNa X-Received: by 2002:a05:6602:14c7:b0:7c7:e2c5:569e with SMTP id b7-20020a05660214c700b007c7e2c5569emr2368172iow.7.1709039499002; Tue, 27 Feb 2024 05:11:39 -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> <890afb05-1b19-47b2-bfd8-5f6de0caeda3@linaro.org> In-Reply-To: <890afb05-1b19-47b2-bfd8-5f6de0caeda3@linaro.org> From: =?UTF-8?Q?Pawe=C5=82_Anikiel?= Date: Tue, 27 Feb 2024 14:11:27 +0100 Message-ID: Subject: Re: [PATCH v2 8/9] media: dt-bindings: Add Intel Displayport RX IP To: Krzysztof Kozlowski Cc: 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, 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 Mon, Feb 26, 2024 at 6:29=E2=80=AFPM Krzysztof Kozlowski wrote: > > On 26/02/2024 13:43, Pawe=C5=82 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 o= ne > >> 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?