Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp38317rbb; Fri, 23 Feb 2024 10:56:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXFmAxhWJuxWnBfULhKNSCUVZOKTOwsVceM35pXkF7Zg+KNYLCa7toUrWxVW7R6CBo9ZO0IqfxJfonyZ9hGRPr9gxxV2Qtvcm6ULJe5Cg== X-Google-Smtp-Source: AGHT+IEGteeHkBY3JV6KiEYqa3lgsZvdeaUSOM+bYL/3hTPptQu1paFT9yRwVqtHboOqgBxm8XIp X-Received: by 2002:ac8:5913:0:b0:42e:1a53:d0b1 with SMTP id 19-20020ac85913000000b0042e1a53d0b1mr51490qty.37.1708714598157; Fri, 23 Feb 2024 10:56:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708714598; cv=pass; d=google.com; s=arc-20160816; b=Eg0tPQ+65WPKacygHn9vVfG7+O/2dJNvdje/eRCiexFvrHyW6NC1OgYA+xa/+ebzlx cY9tz0yCSZL7LOCy+s8h3qA4W8go4AVM4TeqTJllYdf3ii1Sf0pCR8vZb6nsyE8aDVJG oHr1xkROVgRKI0mDXgcrWiny9RUD0TzwLuYMt4cs1T31xgQRttU115MlY0xHhS6FrAxb FeoEK9iv97b5ODbWB7swPUvI2ii+0CYzQl68fF1YdVJ8+26AEEWsjEumgbnJC5lGGcoD OkHYKydB9kTah5BWNXGnVbXjamFFV2GJhgRMXSEW0DOnsSjFoBX7HUcC4MkDpp9jpXO/ BSvA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ItGqusPhDWrFYBLY3qJJ5NzhIja6gsIuGw0/QPI3y/c=; fh=jMn9aN05Vm4XKxVW0kFyo0idEGTUZ5BBH+evt2yyV6U=; b=alqikAi4Kt/iZo4wzP7Ej4M9qpOHeSTGqbwEZcVdy9NklxFgho0tMA8SUm/eeVLaEv aTCJun5n3YzSGNfBXU6Ce+yuFaUd5njzuRtA9FETpYcGECyFitoV+8i+23hMf6fDwkNU Kd3bjgHfWLOUnoEPfuicthyeKW0D+hT8VMbos5ZKaapE8O4+j0u2/dk37v5zHO0AMNah UAQBdqIT1i8JLuSZIFNTsJ1QPp8zTny5y+STUdrSsyADJphimyR7b2wDnA4rCLG4QG5G Nj4QlrOGeN6r3uUGsXPbBdY1D7ljmYJdQ1X/+hybZ10vnCgTE5xGyVZJmUzKN1DIWiqS Ko/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Ma/O6afa"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79009-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79009-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d10-20020ac8544a000000b0042dff25b169si13501791qtq.132.2024.02.23.10.56.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 10:56:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79009-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=@kernel.org header.s=k20201202 header.b="Ma/O6afa"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79009-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79009-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E4AA21C21713 for ; Fri, 23 Feb 2024 18:56:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B5CE9143C59; Fri, 23 Feb 2024 18:56:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ma/O6afa" 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 D587D125D1; Fri, 23 Feb 2024 18:56:26 +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=1708714587; cv=none; b=HzpfUZ3KC1jQkLVzdAJMRS3N/WjfmBWoqzOF2ysp/LkDbG4i/tK/8aMdtAz8+1BDiCEvB9SnS676GVf66duSIqRuPrpwoej5ZBRPY4sXewxztgK53GUfdP34SVDw29+LdD8slYcuth4GREP8eWRXrSJgA/NqhOxeaeXiHCZ4oJw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708714587; c=relaxed/simple; bh=92v8dqYoQe0iX+4jAPOv06DZwhWuz2g6WcnnQUex/Oo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dKtjLV9mI9JPHJ3t/cL+pKbjbfcAXhlGpNFbJ2EdKgz8qs7tLLdzknkuTLnQsbXpMZj5TttdcTlEaCxQXnInQZj0Dd7aShZW2jhQEMWndttSGlvluHi1cg4S7q3jNPZhIHvjbPPqQuun75KHyim3s4DZf/Qg7mC8QHot7uX242o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ma/O6afa; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46E74C433F1; Fri, 23 Feb 2024 18:56:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708714586; bh=92v8dqYoQe0iX+4jAPOv06DZwhWuz2g6WcnnQUex/Oo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ma/O6afag1lu+G6qSE6ZHE/afi7v0njoztfieEfet3YitV2DTYNkMjYA1qjQZMupF e+hP5RGpdKb4LM+Vy/wVzveSW3dh6MzE+Xe9FnNv8eXR4K0LxS9XSXNoNaEht548F5 rQQyjSgd7T3I3gMkIK9K4i1fK0J/D0eHo9Cz+bWhCSvMJXFdJhj/Ojqq0KSFHKcf9O FU2KBVGswGcXVVA++lZxinDtdJDbRHLgoHbf1Q2DwYhR1qqjrYbFa3McRq08oSmm2N vpumBXTlEyECJOeZjLY2YY/5u46jDpM4A3fpec/owucX3QgZT8h/Ha+U/pKnfhrCXO vADUqJtyyhgwA== Date: Fri, 23 Feb 2024 18:56:20 +0000 From: Conor Dooley To: Michael Riesch Cc: Mehdi Djait , =?iso-8859-1?Q?Th=E9o?= Lebrun , Thomas Petazzoni , Laurent Pinchart , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Sakari Ailus , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH 04/14] media: dt-bindings: media: rockchip,px30-vip: allow for different variants Message-ID: <20240223-repose-snuff-54d75755e9f7@spud> References: <20240220-v6-8-topic-rk3568-vicap-v1-0-2680a1fa640b@wolfvision.net> <20240220-v6-8-topic-rk3568-vicap-v1-4-2680a1fa640b@wolfvision.net> <20240220-catchy-cupcake-e600e5af7650@spud> <5bb0b0a9-3d4c-4303-aa43-38789bee286d@wolfvision.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="c2uw00hLgTWLWAIx" Content-Disposition: inline In-Reply-To: <5bb0b0a9-3d4c-4303-aa43-38789bee286d@wolfvision.net> --c2uw00hLgTWLWAIx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 23, 2024 at 08:03:20AM +0100, Michael Riesch wrote: > Hi Conor, >=20 > On 2/20/24 19:58, Conor Dooley wrote: > > Hey, > >=20 > > On Tue, Feb 20, 2024 at 10:39:14AM +0100, Michael Riesch wrote: > >> Move the documentation of clocks and resets to a allOf: structure in o= rder > >> to allow for different variants of the IP block. > >> > >> Signed-off-by: Michael Riesch > >> --- > >> .../bindings/media/rockchip,px30-vip.yaml | 58 +++++++++++++= +-------- > >> 1 file changed, 37 insertions(+), 21 deletions(-) > >> > >> diff --git a/Documentation/devicetree/bindings/media/rockchip,px30-vip= =2Eyaml b/Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml > >> index 675a1ea47210..7168f166798c 100644 > >> --- a/Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml > >> +++ b/Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml > >> @@ -24,32 +24,16 @@ properties: > >> interrupts: > >> maxItems: 1 > >> =20 > >> - clocks: > >> - items: > >> - - description: ACLK > >> - - description: HCLK > >> - - description: PCLK > >> - > >> - clock-names: > >> - items: > >> - - const: aclk > >> - - const: hclk > >> - - const: pclk > >> + clocks: true > >> + > >> + clock-names: true > >=20 > > This is, unfortunately, not how we like multiple soc support to be > > handled. Instead, the widest constraints are added at the top level > > and constrained by the allOf. If none of the names etc are shared, at > > least the widest constraints for minItems and maxItems should be able to > > be here. >=20 > Just to make sure I got it right: >=20 > clocks: > minItems: 3 > maxItems: 4 > items: > - const: aclk > - const: hclk If the names themselves are all different, I wouldn't bother with this, and just constrain the numbers at the top level. Otherwise ye, on the right track here. --c2uw00hLgTWLWAIx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZdjqVAAKCRB4tDGHoIJi 0sgDAP9NYmoVCik3KPzxF03GN7LgK3kwRDne9lST8Qo/eYyBHgD/V//mwx3Ir5bf 1SauEFkTl53Jdn4kpgjw4RAfMwEhDg8= =E6bW -----END PGP SIGNATURE----- --c2uw00hLgTWLWAIx--