Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp428875lqp; Wed, 22 May 2024 08:36:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUaHEg8ih+PYbQC+a7O2vU0EfnXoOYmuTWIdJ+YjpEAU41MXFsUggTIfFj5hXwyVfbY/6QZNp3JjBiUFiJxfGeaw9Sz0u9J/XYgCod6Lg== X-Google-Smtp-Source: AGHT+IEIrFruiYAMwg4SFN5ewZ2CoVOgTAo8WGWbamrX7Cnuczy/tfB3v0OeKYGUXesrdl9Rh6h8 X-Received: by 2002:a17:902:f712:b0:1f3:360f:8947 with SMTP id d9443c01a7336-1f3360f89c0mr1909315ad.68.1716392177409; Wed, 22 May 2024 08:36:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716392177; cv=pass; d=google.com; s=arc-20160816; b=OJBAD9lTA8foV5DH4ex/mpCooXcNemjI/yN0ME+X96AoMvtnAdG5FvJOHJMK/VkayY NKOxeL5LNQvGUbLvl2sKvYPT4R+xnEXwWTSLhrRsSn9Zodss6isz4vD1r/Km3xdk5XLj mnaqbsfpiZzP1I2u1rM9MGxlFjBx7iZ45GWc4QhHNjOXruezsb5bAHZk1nxQjijBwY2Z P0zs/ZgN8IFBNRw7Qs1uA3/en2A5nyEIhJYkreVpG5mRuBdTc2e0BGavnLxWVvW2LmZp aH50XqbdAyTmJ6HHIxTAjTGYHGLkPTPXvNz4QMB30ILaDzLnjtOSPMVhlzONTWll7Zoe dUxA== 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=c0bLNjkFNUzlX9hVZU57On6UONZ0kvvb0UEOPfIpmbA=; fh=f6SwlxcNQO2zlPVFwevtzH1h05WZSTBnsDownTZNfKw=; b=XFWw4LkUUUnpa8wDpgss3ymU1l8Hmc8LoBglAKfFLj2fFdLwP7sK2pz88rx7ercdYi 7Tx39tPwZxBudklm1B/jZUW5Wgblij4vBYDWl56KcCuJaRibpLrRLzNv+nROBPXyyg0H wketK3+olIZFvoXwEJFe/+tDg7oMuLxACt238Bb6h2nhKPfcRCG2JH2E9bZhvGQytnBU DBNN+9rMbk7KHKu9EIMeXTprKXKtqCKfBugNkuB6j5kMjOCnRqKjPSuRR0ktIAcadjlj nB+pbfp4dnnKwUJNNEETouwTaWFA2WpUdA5H4nOWfSFpoYAbKi0PUPWvrmLxQSOwf8Wq XSSQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fJCaiQjL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-186439-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186439-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c039dd4si249028405ad.408.2024.05.22.08.36.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 08:36:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186439-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fJCaiQjL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-186439-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186439-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BD21E2837D7 for ; Wed, 22 May 2024 15:35:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 65B9F7D3E4; Wed, 22 May 2024 15:35:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fJCaiQjL" 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 8DF641171C; Wed, 22 May 2024 15:35:51 +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=1716392151; cv=none; b=R/XJsjpfSIb+DhbURxLVuLz2eYUSZZklCr/lc893q5f4DptHAtqboc5XDQ5wZxM6EhfeWrqpsECqxxq2z16UmaeaNdlTn3Q7adLLhEWoKjFgy0HCjrzKQemt9biNvID+lXhMFnfPpZeKcNtuY3DVassabCNNECQBmN5WUFF/irM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716392151; c=relaxed/simple; bh=Qd+NDxGOZ2bJf9sIDqREHnfFavqyfD7ddBDGDAxcjbk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mF8CuFLubuTp1/qrxU8kZoJrGh1Boqzc+2efiqb1f3z4Co09Fzlp15NDZz9luCREN4DgK84ZJ1qVJWHqZuUHQhiGz1gruWa1znCOM8e2dOsvqEQDI1L7W10KpLfABpybUOVnsf/f5NJ02QI5x9r4VowpepH81vpIMTo9kgHu+HY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fJCaiQjL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6DE9C2BD11; Wed, 22 May 2024 15:35:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716392151; bh=Qd+NDxGOZ2bJf9sIDqREHnfFavqyfD7ddBDGDAxcjbk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fJCaiQjLOSkJeC8737kXYulTF1E8kx+viQmK6R8A79ohnS0Ia2oKO7niWQO25ldGP YcrmWJcjzgvYYamWATddny5NL8foEzHP71g5oKW+oZV2cvD+IbmF/V50RAHLsngVuW 8T6ALDPEmvK1nPQML2+v2HFyWk40+BCuyzs1d7AFmd7wuIRr9poXzP7qvb3kGF5LA7 k3x18K6WyK0m64ECtrMbp0YEnAQ1NR5l1clMI2yrI91yteJvWEX4i9zH6bLxnWIz8d 6yzROBcTARIC05vmq7n0pwnrFEtY8Rk4mGhd5bjzNdXdFWL2JL9AbLdWWc5sMj7OYr 0Q+7VSasTFxdw== Date: Wed, 22 May 2024 16:35:44 +0100 From: Conor Dooley To: Detlev Casanova Cc: Heiko =?iso-8859-1?Q?St=FCbner?= , linux-kernel@vger.kernel.org, Sandy Huang , Andy Yan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Sebastian Reichel , Dragan Simic , Chris Morgan , Diederik de Haas , Boris Brezillon , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org Subject: Re: [PATCH 3/3] dt-bindings: display: vop2: Add VP clock resets Message-ID: <20240522-slimness-dullness-bb807f053c89@spud> References: <20240514152328.21415-1-detlev.casanova@collabora.com> <13628421.uLZWGnKmhe@arisu> <20240521-silver-exciting-bb3725dc495d@spud> <3334403.5fSG56mABF@arisu> 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="O1xKPYmQ4qbvZFbX" Content-Disposition: inline In-Reply-To: <3334403.5fSG56mABF@arisu> --O1xKPYmQ4qbvZFbX Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 22, 2024 at 11:31:36AM -0400, Detlev Casanova wrote: > On Tuesday, May 21, 2024 2:31:51 P.M. EDT Conor Dooley wrote: > > On Tue, May 21, 2024 at 01:15:46PM -0400, Detlev Casanova wrote: > > > On Wednesday, May 15, 2024 12:33:22 P.M. EDT Heiko St=FCbner wrote: > > > > Am Mittwoch, 15. Mai 2024, 18:19:29 CEST schrieb Conor Dooley: > > > > > On Tue, May 14, 2024 at 11:19:47AM -0400, Detlev Casanova wrote: > > > > > > Add the documentation for VOP2 video ports reset clocks. > > > > > > One reset can be set per video port. > > > > > >=20 > > > > > > Signed-off-by: Detlev Casanova > > > > >=20 > > > > > Are these resets valid for all VOPs or just the one on 3588? > > > >=20 > > > > Not in that form. > > > > I.e. rk3588 has 4 video-ports (0-3), while rk3568 has 3 (0-2). > > > >=20 > > > > So the binding should take into account that rk3568 also has the > > > > SRST_VOP0 ... SRST_VOP2. > > >=20 > > > That is what is set in the example and the reason why I set minItems = to 3 > > > in the main bindings. > > > Then, the rk3588 specific part sets it to 4. > > >=20 > > > Isn't that enough ? > >=20 > > Not quite - you need to restrict maxItems to 3 for the other devices if > > the clocks are not valid. What you've got says that 4 clocks are > > possible but not needed on !rk3588. > >=20 > I don't understand what "properties: resets: minItems: 3" means then. I= =20 > thought it means that all devices should have at least 3 resets. Then the= =20 > allOf below specifies the special case of rk3588 which has a minimum of 4= =20 > resets. The change you made to the bindings allows someone to define either 3 (because of minItems 3) or 4 (because there are 4 items in the list) resets for the rk3568. > Do I need to add=20 > resets: > minItems: 3 > reset-names: > minItems: 3 > in the "else:" ? No, you need to add maxItems: 3 to the else. > So in that case, I can remove "properties: resets: minItems: 3" above ? >=20 > Also, what do you mean "If the clocks are not valid" ? s/clocks/resets/ ;) --O1xKPYmQ4qbvZFbX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZk4Q0AAKCRB4tDGHoIJi 0s0DAQDoOkPVLDr+HE00hhznKtcPPj+CcSSPyDVA/6sDIBivXQEAsVedCSlfxbXc k7i+X+yRjsbEqstU9Tavi7c6NTEiuQI= =aFFV -----END PGP SIGNATURE----- --O1xKPYmQ4qbvZFbX--