Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3228826lqo; Tue, 21 May 2024 10:16:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXDFBtqAnDi5tUuyMyT14OZQ2YFEmSOXYbrVQaa7YT0havouXbCPWBqIjITAkzuoDIG6EAoMNWaCbCVTydRbteOAUu8zrwbFfQxu2MZqA== X-Google-Smtp-Source: AGHT+IHkN6vBV3KonsuzSc1xsOZ0LVo3YzVbPTVAR9jNfcfLqnPzb+R9ivfahQ7MLC5XhFhw0LBh X-Received: by 2002:a05:6871:4005:b0:241:9a9e:6b75 with SMTP id 586e51a60fabf-2419a9ee3a3mr33993478fac.56.1716311781973; Tue, 21 May 2024 10:16:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716311781; cv=pass; d=google.com; s=arc-20160816; b=R5ZyZimQtsCo0oe45EY2+pIHKziabIfFX6AH420ianlgtzp/5cEnsE0/+9nl8DSoGt z+9TjIdx4EqBB3yXRXDni+7oS1R6gZlDujX2vfmQJXlyoyOOUmIWXpEkZbBa9lETKaGA DspyTEVkVQv0MrmnEvxjpqa1Y1OqqV7bh+bMqV9cAYgwpJCknUZ0ypkudQfVBGWz9gu1 DvJziRqidTxJRQXlDhnUr5dyYqYiWJWHcUOEDMynLbELy6RPDywFxQKfsZp3ScbTTrAT 0MpSZkuy+nMsu+HFJWRB/YGyBYwURpbXer98fxz6PmpFazcZuboGAd5rm8dAfuC9b2TU BaBQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature; bh=Bw6TsZ0/VNC5xbnaGvTFjNGakyi8QK1JANDH6Xh2a/I=; fh=g5z38TDFG8bM4T05TQM5OWhGJsjO5Fh6Fl1YUEXEReI=; b=lRyhYyZ/5+Gu4TNrEZpWpdcIJHlfLKB5VvqFskvVl6pvtpdESFgpTzdxBc3ieAjVlS m9TK92/oAhcBkZxkXO10S9iGDW4YXwcnIcRWlzAn5OgwFj1OxxIymJd1dlO3cV8hmOwX jFEZdyN+D9d8a5gLudBLdU0PA7f+X3vrOp1yDSdpgfjUpIpodgw1yjrAPxzVX+EgxR75 7PHhS20RgEkIFa+PLvejXYCcdvWjFYoB30o+HJ7RVVXvseeKPdOKaZ4AnQEEmDYIqDVr /CxuwAgvg3SQYyMljpE+gBojm8gVTNd54hC9n7xGEaDNF8VOUErTrj7Jo7TqSCfaaG7m HK+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=fGPJEWC6; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-185246-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185246-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f2ed229si21000106d6.449.2024.05.21.10.16.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 10:16:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185246-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=@collabora.com header.s=mail header.b=fGPJEWC6; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-185246-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185246-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 9D48B1C2188E for ; Tue, 21 May 2024 17:16:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC709147C6F; Tue, 21 May 2024 17:16:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="fGPJEWC6" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 3D1CD17758; Tue, 21 May 2024 17:16:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716311771; cv=none; b=Y1ir7FGQT9GDDq76sZjOzVOrTbH0zf7mGIngy+iZR+mD11G4GiJNJccQJ1/qwUbXKYImkHHBHzz6NewQ2haGf/GZz3kBPMonWZ+e4UKVsjjSMP07KXZsgTk/4xyAiIr0WkCC3/giUieoaLCmULlTgzxFFU3hRDjBAvub4ksGqpQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716311771; c=relaxed/simple; bh=rd/1+9JNdQ/4d4EFXjf5NHg9TeVEP/YikPqrcWyBkmM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=CTbQyUkF1tFll6KXYhoJNQqX34OXJhSTAtDDB749VGGg6+nLBVH4zBDac7EMweEzCdQzzwynF2SJpPmas26zPxBaASC9FCj+WEuciVLjyyWz8OB1HPkk7Uj2ul1iCeHJermabCGjsLVIQNKmcv3deI2xYgGaSkCHyD1Llvl7eQM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=fGPJEWC6; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1716311768; bh=rd/1+9JNdQ/4d4EFXjf5NHg9TeVEP/YikPqrcWyBkmM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fGPJEWC6H/LQ8fIQtmuSll6oJYcCRpHnF0BtiC/fBfC4kMzm1duBMBCbZIn09K7Dx 5T6anJwgNhagVeZanlGhLG1D7xBDs0ofcETveoJFa7HQO0+piRfL9N87Cw9rwXy9+B 5HwHa4Cvqmx5tA/LvNucSCDFufCy4U6KoscmC4fmdiX7rOSfwJNjFdZ9aQpajDXGEG Ym4Mb7NMPUj09hcHVvc/Yj8KFm+IQzosXoYhOKv9/wQM7u87xnu9qPur2G0s3OQAlC H7+QUuRx3vzvbCW30bQdVnVQ79y2Nnursu8e2c+qibS+Y/6q8xHhxUrOPJgaPWnEzF MUn5IuvAm7TEA== Received: from arisu.localnet (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: detlev) by madrid.collaboradmins.com (Postfix) with ESMTPSA id CD52F378107C; Tue, 21 May 2024 17:16:04 +0000 (UTC) From: Detlev Casanova To: Conor Dooley , Heiko =?ISO-8859-1?Q?St=FCbner?= Cc: 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 Date: Tue, 21 May 2024 13:15:46 -0400 Message-ID: <13628421.uLZWGnKmhe@arisu> Organization: Collabora In-Reply-To: <2182693.irdbgypaU6@diego> References: <20240514152328.21415-1-detlev.casanova@collabora.com> <20240515-risk-exes-13db315da6bb@spud> <2182693.irdbgypaU6@diego> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3048022.e9J7NaK4W3"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart3048022.e9J7NaK4W3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1"; protected-headers="v1" From: Detlev Casanova Date: Tue, 21 May 2024 13:15:46 -0400 Message-ID: <13628421.uLZWGnKmhe@arisu> Organization: Collabora In-Reply-To: <2182693.irdbgypaU6@diego> MIME-Version: 1.0 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. That is what is set in the example and the reason why I set minItems to 3 i= n=20 the main bindings. Then, the rk3588 specific part sets it to 4. Isn't that enough ? > Also, I guess we might not want to limit ourself to stuff we use? > I.e. the new VOP-design is one block with multiple video-ports >=20 > So for rk3568 I see > #define SRST_A_VOP > #define SRST_H_VOP > #define SRST_VOP0 > #define SRST_VOP1 > #define SRST_VOP2 >=20 > similarly rk3588 has >=20 > #define SRST_H_VOP > #define SRST_A_VOP > #define SRST_D_VOP0 > #define SRST_D_VOP1 > #define SRST_D_VOP2 > #define SRST_D_VOP3 >=20 > as generalized reset lines. Argh, I added them at first then removed them as they are not used. Will ad= d=20 them again then. Detlev. > > > --- > > >=20 > > > .../display/rockchip/rockchip-vop2.yaml | 27 +++++++++++++++++= ++ > > > 1 file changed, 27 insertions(+) > > >=20 > > > diff --git > > > a/Documentation/devicetree/bindings/display/rockchip/rockchip-vop2.ya= ml > > > b/Documentation/devicetree/bindings/display/rockchip/rockchip-vop2.ya= ml > > > index 2531726af306b..941fd059498d4 100644 > > > --- > > > a/Documentation/devicetree/bindings/display/rockchip/rockchip-vop2.ya= ml > > > +++ > > > b/Documentation/devicetree/bindings/display/rockchip/rockchip-vop2.ya= ml > > >=20 > > > @@ -65,6 +65,22 @@ properties: > > > - const: dclk_vp3 > > > - const: pclk_vop > > >=20 > > > + resets: > > > + minItems: 3 > > > + items: > > > + - description: Pixel clock reset for video port 0. > > > + - description: Pixel clock reset for video port 1. > > > + - description: Pixel clock reset for video port 2. > > > + - description: Pixel clock reset for video port 3. > > > + > > > + reset-names: > > > + minItems: 3 > > > + items: > > > + - const: dclk_vp0 > > > + - const: dclk_vp1 > > > + - const: dclk_vp2 > > > + - const: dclk_vp3 > > > + > > >=20 > > > rockchip,grf: > > > $ref: /schemas/types.yaml#/definitions/phandle > > >=20 > > > description: > > > @@ -128,6 +144,11 @@ allOf: > > > clock-names: > > > minItems: 7 > > >=20 > > > + resets: > > > + minItems: 4 > > > + reset-names: > > > + minItems: 4 > > > + > > >=20 > > > ports: > > > required: > > > - port@0 > > >=20 > > > @@ -183,6 +204,12 @@ examples: > > > "dclk_vp0", > > > "dclk_vp1", > > > "dclk_vp2"; > > >=20 > > > + resets =3D <&cru SRST_VOP0>, > > > + <&cru SRST_VOP1>, > > > + <&cru SRST_VOP2>; > > > + reset-names =3D "dclk_vp0", > > > + "dclk_vp1", > > > + "dclk_vp2"; > > >=20 > > > power-domains =3D <&power RK3568_PD_VO>; > > > iommus =3D <&vop_mmu>; > > > vop_out: ports { --nextPart3048022.e9J7NaK4W3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEonF9IvGrXNkDg+CX5EFKUk4x7bYFAmZM1sIACgkQ5EFKUk4x 7bb5lQf8CxeSuV+asxitEnkW/cVrTz51FbhHD8mO/z1OWW3fMUZXxilF1uNZ+zY4 UUD1+qE15cppWtyxK/qIGYtuytme46Mxlj6cLaI6fX3YikaZQE0y34jgv2OyOTQL eiyKVPCNPk59jEFx1NSu/LqGQpQmemU3wWWL8DPmfesLsOzn866zYNJe7DgR3xfC HkN9DbvGHLgMd4Bh7rH8lFoq9KZ0JbDbkzEkB1T9PpX+zYFGU6afiNaoitntsnXB 12TaLVomcfk/eejcNyxWJAqA2f7RQOgaI5qjz23kaBP9JZ2CJIWkudkSUG+b/BLe dJupu8Sq2+ai63tx131WgNs3iMNz0Q== =yXdu -----END PGP SIGNATURE----- --nextPart3048022.e9J7NaK4W3--