Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp134150lqo; Wed, 15 May 2024 09:34:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXiqd1Q6HOvG9DG40a0xM3SZvHyBQ0giBevLeZsXzsI4ppV1yoegZV1fEgGVue3UWN75M16tkvEHcl6QfXtShsEXRveqrArpUtJVcg00A== X-Google-Smtp-Source: AGHT+IGAmAhMwHqSYRa5+bNAvQNw/XK8oHE6YMVNuRag9uAVKk6SIX2N/8Y1qui3HWuleNHwml0N X-Received: by 2002:a19:6410:0:b0:51a:d5d3:ee52 with SMTP id 2adb3069b0e04-5221006e6f8mr10509429e87.17.1715790851203; Wed, 15 May 2024 09:34:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715790851; cv=pass; d=google.com; s=arc-20160816; b=gDiuw1JS2jHkovTxN2YxHYs3qh6L6jiVkiL8b7Bx062/sSV9K8sib0f8ktkNLdsYYH X44hj7x9bO2Wgq/0KkQOEQ944Oeo0jPhtgteGfmJUt0LE8l6YxMVUxoAYjKlnv66O2BZ eIs9ngAJrPlg7lqRSOu8Ww/wG/XywkHSYmCdrwZUOxCULHQOEKjh7WErNYRu0S112Epg D1qjtebk3nGZdWcdCf810WuVgjhsDDX8AMuv7nYkgjycE28tgc/2zYtmUK+qMK5FDXxr UsweKRBi8/CWOLws3z8fhMcrD0WOF7+n5/BEjcRA4pwfLCbkmgyZsmVlNNh7eouH6HoS 3wOg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=kRxtwpLwsZcYS+r6XORTJb2P8u9KebKWCehjjSUI/d0=; fh=m39RlyMsKSi3qrGEx/4saos4wnDe0wG9gdWGNUttnzE=; b=TVP/NPesdGCdljTqoPU5JG1zgHwkRzBgPCZJw9C7DXHQx7DaxpSia1tBvoaf03Jafw K6uSDIv1N8F7CCnKg/L/vPYqmy0SuYW70gRu0XeSxxDXk6Wr4uLSu51MNuFNevF0XCqc F9jHz6XcSUbFp0OTtoT1nGg4ej0Q6GU0MIC/GqH8tC/yKJFFyCzdq7eojrqz5zR4UCNb wvk/zSFLJNdMSPYJxBEsZFO63ckyGCovF56c9dkGbgC7sOkRU0eCxy+eGMhqqD6Mvj4g Eg9D86bsGaZX6wdUdljUmT66dS/x4XIP5JjAb8hW+NdP56xMGjBU/0Z9uKYzZaE1Rlsg +xng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-180144-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180144-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c2d4cecsi7574361a12.262.2024.05.15.09.34.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 09:34:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180144-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; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-180144-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180144-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de 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 B03911F21D9E for ; Wed, 15 May 2024 16:34:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4EE2D2209B; Wed, 15 May 2024 16:34:03 +0000 (UTC) Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (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 0514F1392; Wed, 15 May 2024 16:33:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715790842; cv=none; b=QCICXFolli57D4HWCrEKxUqPOfC5uNSF6tdvlryzblVHqIqXgqeZgxTF+crJ9ZDAy7MEAeuDb3tl44vkSRgP9/nIzNV1qy5nt2K6V4WkoR4XouDodNxPVlL6F41Cu4RFbMZjdUPMNg0mkLdy4MC5/Xxb7CYR0UnExV10jmeUy3o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715790842; c=relaxed/simple; bh=LstZVtS7mTOW34aC+wGMxQNmFlltAtZihtWnahDgL14=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=b11OlA3Opa0ykECHvka72HJrYz6dfIdcL7JNistCUaiDsS73XhYbGjz9bYFGzEyYBY2bevK7lAnu28+vLvWo+g+2c0AO8qpPyV2oDAHm8R7InPcnaxgPprQ9kFH+le100UF4RdQ+l/tlbJpzWSuTB/930AXwzAfR64SCIxOwUzc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Received: from i53875b5d.versanet.de ([83.135.91.93] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s7HZD-00078Z-Sj; Wed, 15 May 2024 18:33:23 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Detlev Casanova , Conor Dooley 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: Wed, 15 May 2024 18:33:22 +0200 Message-ID: <2182693.irdbgypaU6@diego> In-Reply-To: <20240515-risk-exes-13db315da6bb@spud> References: <20240514152328.21415-1-detlev.casanova@collabora.com> <20240514152328.21415-4-detlev.casanova@collabora.com> <20240515-risk-exes-13db315da6bb@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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. > > > > Signed-off-by: Detlev Casanova > > Are these resets valid for all VOPs or just the one on 3588? Not in that form. I.e. rk3588 has 4 video-ports (0-3), while rk3568 has 3 (0-2). So the binding should take into account that rk3568 also has the SRST_VOP0 ... SRST_VOP2. 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 So for rk3568 I see #define SRST_A_VOP #define SRST_H_VOP #define SRST_VOP0 #define SRST_VOP1 #define SRST_VOP2 similarly rk3588 has #define SRST_H_VOP #define SRST_A_VOP #define SRST_D_VOP0 #define SRST_D_VOP1 #define SRST_D_VOP2 #define SRST_D_VOP3 as generalized reset lines. > > > --- > > .../display/rockchip/rockchip-vop2.yaml | 27 +++++++++++++++++++ > > 1 file changed, 27 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/display/rockchip/rockchip-vop2.yaml b/Documentation/devicetree/bindings/display/rockchip/rockchip-vop2.yaml > > index 2531726af306b..941fd059498d4 100644 > > --- a/Documentation/devicetree/bindings/display/rockchip/rockchip-vop2.yaml > > +++ b/Documentation/devicetree/bindings/display/rockchip/rockchip-vop2.yaml > > @@ -65,6 +65,22 @@ properties: > > - const: dclk_vp3 > > - const: pclk_vop > > > > + 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 > > + > > rockchip,grf: > > $ref: /schemas/types.yaml#/definitions/phandle > > description: > > @@ -128,6 +144,11 @@ allOf: > > clock-names: > > minItems: 7 > > > > + resets: > > + minItems: 4 > > + reset-names: > > + minItems: 4 > > + > > ports: > > required: > > - port@0 > > @@ -183,6 +204,12 @@ examples: > > "dclk_vp0", > > "dclk_vp1", > > "dclk_vp2"; > > + resets = <&cru SRST_VOP0>, > > + <&cru SRST_VOP1>, > > + <&cru SRST_VOP2>; > > + reset-names = "dclk_vp0", > > + "dclk_vp1", > > + "dclk_vp2"; > > power-domains = <&power RK3568_PD_VO>; > > iommus = <&vop_mmu>; > > vop_out: ports { >