From patchwork Tue Dec 31 09:57:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Yan X-Patchwork-Id: 13923754 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 1C11FE7718B for ; Tue, 31 Dec 2024 10:03:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=rKBSuzzP3llRS/S4NZ3REBiVewfsKZ9IqocITugLnEw=; b=x0rConxC8pJvtuuRZ3Y4JdN/ni 3kv1QyIEeg22A3TqDj3Npm86DJORgjrXN5pBUzgm/r78uYyGcbPquQRerCXtu1fHaHTcaG+N6T6nh GX/ioSUCe1LYnnCEnrjIe+X3tWcemJK7AZ55cs4ouJOHbPqVa8Oq3Qt6tBYvy37UAQitmKgJtgv4h 5VNQ/V6NQNjPCytz1f7wE8zmESKb2JzBnpASkgTCU+sDeZRsoxf/bpMQmNeiQ7agck3b/+AUSx+c2 aYSKx7knkuAIPmorX61NpzUbrvFPwUp1XsdG7f27WD8lDabVlHA1u6pnU9BuhlkO4i7rseRU94G41 Y/lLEYYA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tSZ5M-00000007001-1vV0; Tue, 31 Dec 2024 10:02:48 +0000 Received: from m16.mail.163.com ([220.197.31.4]) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tSZ0d-00000006zJA-0Ah6; Tue, 31 Dec 2024 09:57:56 +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=rKBSu zzP3llRS/S4NZ3REBiVewfsKZ9IqocITugLnEw=; b=iuoP9mf1W1a15oac47NgJ ZLOgJK05Cz56DlXJrTTEpmYt3fBXcFrCykhUcsR4RnrmVifS5uUWFGspA8W6Q+f8 COlgHSzxwQwzKQcg1w/7/+D7cMzc0woF66zXTqTCkALi7iAtBLTdOWl2L7O3gMQG /u1cUc1rBUYIPM9Pq2HHKo= Received: from ProDesk.. (unknown []) by gzga-smtp-mtada-g0-0 (Coremail) with SMTP id _____wD3dxsKwHNnTaXlCw--.25571S3; Tue, 31 Dec 2024 17:57:36 +0800 (CST) From: Andy Yan To: heiko@sntech.de Cc: detlev.casanova@collabora.com, krzk+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Andy Yan Subject: [PATCH v3 1/3] arm64: dts: rockchip: Add vop for rk3576 Date: Tue, 31 Dec 2024 17:57:18 +0800 Message-ID: <20241231095728.253943-2-andyshrk@163.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241231095728.253943-1-andyshrk@163.com> References: <20241231095728.253943-1-andyshrk@163.com> MIME-Version: 1.0 X-CM-TRANSID: _____wD3dxsKwHNnTaXlCw--.25571S3 X-Coremail-Antispam: 1Uf129KBjvJXoW7CFy7Aw15tF48ZrWfAFyxZrb_yoW5JrWfp3 ZrCrW8Jr48uF12qa9xK34vyrZ5Jan5Can3KwnxAF18Kr1Skr9rK34Igrn3A3ZrJrW8Ja12 qFs2kry8KFnxXw7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jIc_-UUUUU= X-Originating-IP: [58.22.7.114] X-CM-SenderInfo: 5dqg52xkunqiywtou0bp/xtbB0hbGXmdzt4XXAgABsu X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241231_015755_489734_E0D971B8 X-CRM114-Status: UNSURE ( 9.13 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Andy Yan Add VOP and VOP_MMU found on rk3576. Signed-off-by: Andy Yan --- Changes in v3: - Split from https://lore.kernel.org/linux-rockchip/3330586.aeNJFYEL58@diego/T/#t arch/arm64/boot/dts/rockchip/rk3576.dtsi | 68 ++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3576.dtsi b/arch/arm64/boot/dts/rockchip/rk3576.dtsi index 436232ffe4d1..130d11a2cc89 100644 --- a/arch/arm64/boot/dts/rockchip/rk3576.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3576.dtsi @@ -393,6 +393,11 @@ opp-950000000 { }; }; + display_subsystem: display-subsystem { + compatible = "rockchip,display-subsystem"; + ports = <&vop_out>; + }; + firmware { scmi: scmi { compatible = "arm,scmi-smc"; @@ -826,6 +831,69 @@ gpu: gpu@27800000 { status = "disabled"; }; + vop: vop@27d00000 { + compatible = "rockchip,rk3576-vop"; + reg = <0x0 0x27d00000 0x0 0x3000>, <0x0 0x27d05000 0x0 0x1000>; + reg-names = "vop", "gamma-lut"; + interrupts = , + , + , + ; + interrupt-names = "vop-sys", + "vop-vp0", + "vop-vp1", + "vop-vp2"; + clocks = <&cru ACLK_VOP>, + <&cru HCLK_VOP>, + <&cru DCLK_VP0>, + <&cru DCLK_VP1>, + <&cru DCLK_VP2>; + clock-names = "aclk", + "hclk", + "dclk_vp0", + "dclk_vp1", + "dclk_vp2"; + iommus = <&vop_mmu>; + power-domains = <&power RK3576_PD_VOP>; + rockchip,grf = <&sys_grf>; + rockchip,pmu = <&pmu>; + status = "disabled"; + + vop_out: ports { + #address-cells = <1>; + #size-cells = <0>; + + vp0: port@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + }; + + vp1: port@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + + vp2: port@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + }; + }; + }; + + vop_mmu: iommu@27d07e00 { + compatible = "rockchip,rk3576-iommu", "rockchip,rk3568-iommu"; + reg = <0x0 0x27d07e00 0x0 0x100>, <0x0 0x27d07f00 0x0 0x100>; + interrupts = ; + clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>; + clock-names = "aclk", "iface"; + #iommu-cells = <0>; + power-domains = <&power RK3576_PD_VOP>; + status = "disabled"; + }; + qos_hdcp1: qos@27f02000 { compatible = "rockchip,rk3576-qos", "syscon"; reg = <0x0 0x27f02000 0x0 0x20>;