From patchwork Fri Nov 15 16:20:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Detlev Casanova X-Patchwork-Id: 13876544 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6DC9BD68BCB for ; Fri, 15 Nov 2024 16:22:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=uSGMvTgm+WsV2eGGVZiyxQDd8EtkpDp6/Atbr8z1n+Y=; b=QBzUbUhiIQIbqE bsV4XvmNAeZjPVGuVgeCKWLCs81D+viQs7aGLwsN6HDd6OrA5F2j+nXgNHuYCOZp/hETOQg2E3T3P 3cZnuPIXMS3LwRqG3ghJkC8iR9cK8ds8ObTFtx1t0sT4FXH9YUUW4n+WbjWsM/oMRG4lm9V0xxA6c 3MtVl1JRPNBsi/XxOod8kSdgH15fgZR2qkWY+g4tVLLqRiFK/7hhZqvbAxyMv8CMuz9HJETB9dIli J1RAdU1xDh/n6FreNn7Krfb6ytDkqOd+bVWVIShPIkBspokjAecNbDw0gG9KFZcKjCu2D5x94KHT8 h5nzxzXi6dslrvb59HXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tBz5Y-00000003KIN-0ckM; Fri, 15 Nov 2024 16:22:28 +0000 Received: from bali.collaboradmins.com ([2a01:4f8:201:9162::2]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tBz4b-00000003Jzm-2Uu6; Fri, 15 Nov 2024 16:21:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1731687686; bh=qQtgDiPyFIYE/RVlLSKOi/67cZnKV6qJu6S3Iy9AxRU=; h=From:To:Cc:Subject:Date:From; b=hmd/+CVz/rsdlgI3i5EJhKz6xS8+rmVUawAX/d+cBv21FSGnEezB/GgAunwIR1Kgo NKAIejQI+NRC8B0rWdJy3P+JPO0lMR2qw29lyUGn9LsOf4k4UoffIBVafjUXaOgzSP LTlaCA6l/YoDM82smQC6kquhakhPnzSz6EtbEdlACBQFJFpQGvgGhIl37Nt8DD4VkW CnOq7TJI9YpBqDgphKaHKXuGnmAuPFaAj+8NwmnlFySfj7M+lHRyAr8KYQfWvPiRWm 3zNHu7wS/oAVW0uxa/Ap+rkCqkYjskKVIBYdptcGtr0KrHwgriECX4X0ETwu+Am8oG rZFZQpBBXLkrw== Received: from bootstrap.mtl.collabora.ca (mtl.collabora.ca [66.171.169.34]) (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 bali.collaboradmins.com (Postfix) with ESMTPSA id CF98317E36CB; Fri, 15 Nov 2024 17:21:23 +0100 (CET) From: Detlev Casanova To: linux-kernel@vger.kernel.org Subject: [PATCH v4 0/3] drm: rockchip: vop2: Add VP clock resets support Date: Fri, 15 Nov 2024 11:20:39 -0500 Message-ID: <20241115162120.83990-1-detlev.casanova@collabora.com> X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241115_082129_812347_4D42DFBF X-CRM114-Status: UNSURE ( 9.55 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Heiko_St=C3=BCbner?= , dri-devel@lists.freedesktop.org, kernel@collabora.com, David Airlie , Dragan Simic , Simona Vetter , Rob Herring , Sebastian Reichel , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, Conor Dooley , Detlev Casanova , Maarten Lankhorst , Maxime Ripard , Heiko Stuebner , linux-arm-kernel@lists.infradead.org, Jianfeng Liu , Sandy Huang , Alexey Charkov , Thomas Zimmermann , Andy Yan , Krzysztof Kozlowski Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The clock reset must be used when the VOP is configured. Skipping it can put the VOP in an unknown state where the HDMI signal is either lost or not matching the selected mode. This adds support for rk3588(s) based SoCs. Changes since v3: - Rebased on drm-misc-next - Reword first patch subject - Reorder commits for different trees Changes since v2: - Rebase on latest master - Add details on how to reproduce the issue Changes since v1: - Add AXI and AHB clock resets - Set maxItems for !rk3588 in vop2 bindings Detlev Casanova (3): dt-bindings: display: vop2: Add VP clock resets drm/rockchip: vop2: Add clock resets support arm64: dts: rockchip: Add VOP clock resets for rk3588s .../display/rockchip/rockchip-vop2.yaml | 40 +++++++++++++++++++ arch/arm64/boot/dts/rockchip/rk3588-base.dtsi | 12 ++++++ drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 30 ++++++++++++++ 3 files changed, 82 insertions(+)