From patchwork Sat Jan 11 11:25:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Yan X-Patchwork-Id: 13936004 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 670D1E7719A for ; Sat, 11 Jan 2025 11:28:37 +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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :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=Z39xWCU41QWxHoEi+PkPoyZ90bHnKk/PnXz8SdYSC0I=; b=k5KghnTgHcc7I6 s+D8aoNSsUfdDl3t43A/DvcboucdNgLsCuIepH3hBs1Cyn9OG3OesdYEyh22J8FfaqgiWUrQ4EF9M TSjh50PmYjHfxTdRWmag6SgNH/TDJx6LuCG8Wo7SNRpk1EAocInv4DCHPNazqPXwI1KaYpFogaVg0 wsQyZxT0FXCqKdGruGAoPB9IxtWwcgQUVBgZ8S5hKfu8kYgCAQgQcZ/KyTcdXIcLzdlzfCsAOjBuF FGFtgC0xZfaCF7GEiUUnYEQZB8noYcEjOvt48LFjuZ2cRLbv3vGA/l5InbbVdak5jJ9oY0yiJnj1+ 3/5os8jHrWe8MbuXVNKw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tWZfJ-00000000giL-2vxl; Sat, 11 Jan 2025 11:28:29 +0000 Received: from m16.mail.163.com ([117.135.210.5]) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tWZe4-00000000gJ6-1DEE; Sat, 11 Jan 2025 11:27:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=axwj1 a7CY9td4ZxrvElu+4T1mZkP2eLMBnmoeanF1YY=; b=IZ8Bp6y97t05YdKAo3FkW 8+NHlaWeD7Ye1emzbe8zwYf6Yx0hAfnznTOyq2TWryIFY63IVNgmj0DyxmQ8fUZj stV6VSvL2Ju0Q3uDt7jQ1HzTCG30WT1t4BmT3+vZRbo7Pg1lixEfTQe0X16F465t iE1GJW5lGm7dvsN/cCCF2U= Received: from ProDesk.. (unknown []) by gzga-smtp-mtada-g1-2 (Coremail) with SMTP id _____wDn36JYVYJnnIeyFQ--.42561S2; Sat, 11 Jan 2025 19:26:20 +0800 (CST) From: Andy Yan To: heiko@sntech.de Cc: hjc@rock-chips.com, krzk+dt@kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, derek.foreman@collabora.com, detlev.casanova@collabora.com, daniel@fooishbar.org, robh@kernel.org, sebastian.reichel@collabora.com, Andy Yan Subject: [PATCH v11 00/11] VOP Support for rk3576 Date: Sat, 11 Jan 2025 19:25:58 +0800 Message-ID: <20250111112614.432247-1-andyshrk@163.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CM-TRANSID: _____wDn36JYVYJnnIeyFQ--.42561S2 X-Coremail-Antispam: 1Uf129KBjvJXoWxGw1xuryUGryxXrW3Zr4xZwb_yoW5uryrp3 95C3s8XrWxGF1jqr4kJw1DCr1SqanIyFWfK34fKw13Ja4qyFyIkrWa9r1Yvr9xX3W8Zr4j 9F4Sya1UKanFvF7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UkrchUUUUU= X-Originating-IP: [103.29.142.67] X-CM-SenderInfo: 5dqg52xkunqiywtou0bp/xtbB0gzRXmeCTmhtaAAAsX X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250111_032712_718585_27EF84BC X-CRM114-Status: GOOD ( 12.34 ) 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: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org From: Andy Yan Patches that have already been merged in drm-misc-next are dropped. PATCH 1~9 are preparations for rk3576 support PATCH 10~11 are real support for rk376 I test it with a 1080P/4K HDMI output with modetest and weston output. If there are some one want to have a try, I have a tree based on Linux 6.13-rc6 here[0] [0]https://github.com/andyshrk/linux/tree/rk3576-vop2-upstream-v10 Links to V10: https://lore.kernel.org/linux-rockchip/20250110100832.27551-1-andyshrk@163.com/ Changes in v11: - Remove redundant min/maxItems constraint Changes in v10: - Move interrupt-names back to top level - Add constraint of interrupts for all platform - Add constraint for all grf phandles - Reorder some properties Changes in v9: - Drop 'vop-' prefix of interrupt-names. - Add blank line between DT properties - Remove list interrupt-names in top level - Drop 'vop-' prefix of interrupt-names. Changes in v8: - Remove redundant blank line before drm_bus_format_enum_list - Add a blank line before DRM_ENUM_NAME_FN - Fix dt_binding_check errors - ordered by soc name - Link to the previous version: https://lore.kernel.org/linux-rockchip/6pn3qjxotdtpzucpul24yro7ppddezwuizneovqvmgdwyv2j7p@ztg4mqyiqmjf/T/#u Changes in v7: - Fix rk3588 dp+dsi maxclk verification Changes in v6: - Add a blank line after hardware version check code - More specific explanation about the AXI_BUS_ID register bit of cluster window. Changes in v5: - Add axi id configuration - Remove the non-existent CBCR scale register. Changes in v4: - Typo fix: selet->select - describe constraint SOC by SOC, as interrupts of rk3576 is very different from others - Drop Krzysztof's Reviewed-by, as this version changed a lot. Changes in v3: - Add comments for why we should treat rk3566 with special care. - Add hardware version check - Add comments for why we should treat rk3566 with special care. - ordered by soc name - Add description for newly added interrupt - Share the alpha setup function with rk3568 - recoder the code block by soc Changes in v2: - Add platform specific callback - Introduce vop hardware version - Add dt bindings - Add platform specific callback Andy Yan (10): drm/rockchip: vop2: Rename TRANSFORM_OFFSET to TRANSFORM_OFFS drm/rockchip: vop2: Add platform specific callback drm/rockchip: vop2: Merge vop2_cluster/esmart_init function drm/rockchip: vop2: Support for different layer select configuration between VPs drm/rockchip: vop2: Introduce vop hardware version drm/rockchip: vop2: Register the primary plane and overlay plane separately drm/rockchip: vop2: Set plane possible crtcs by possible vp mask drm/rockchip: vop2: Add uv swap for cluster window dt-bindings: display: vop2: Add rk3576 support drm/rockchip: vop2: Add support for rk3576 Heiko Stuebner (1): drm/rockchip: vop2: use devm_regmap_field_alloc for cluster-regs .../display/rockchip/rockchip-vop2.yaml | 97 +- drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 1473 +++----------- drivers/gpu/drm/rockchip/rockchip_drm_vop2.h | 275 ++- drivers/gpu/drm/rockchip/rockchip_vop2_reg.c | 1798 ++++++++++++++++- 4 files changed, 2377 insertions(+), 1266 deletions(-)